This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; CompanyID is a channel variable always present when calling someFunction,s,1 | |
[someFunction] | |
exten => s,1,WaitExten(10) | |
exten => _X,1,... ; standard handling of 1,2,3,4,5 - common for any company ID | |
; ... | |
eswitch => Loopback/${EXTEN}@someFunction_custom_${CompanyID} | |
[someFunction_custom_1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const client = require('ari-client'); | |
const url = "http://localhost:8088"; | |
const [username, password] = ["test", "test"]; | |
async function main() | |
{ | |
try { | |
const ari = await client.connect(url, username, password); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[multifon] | |
type=wizard | |
sends_auth=yes | |
sends_registrations=yes | |
transport=transport-udp | |
remote_hosts=sbc.megafon.ru | |
outbound_auth/username=7926xxxxxxx | |
outbound_auth/password=xxxxxxxxxxxxxxxx | |
registration/contact_user=7926xxxxxxx | |
server_uri_pattern=sip:multifon.ru |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/docker.gogs.service | |
[Unit] | |
Description=Gogs container | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Restart=always | |
ExecStart=/usr/bin/docker run --name=gogs -p 10022:22 -p 127.0.0.1:10080:3000 -v /var/gogs:/data gogs/gogs | |
ExecStop=/usr/bin/docker stop -t 2 gogs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const fs = require('fs'); | |
const _ = require('lodash'); | |
if (process.argv.length !== 3) { | |
console.log(`Usage: node ${process.argv[1]} FILENAME`); | |
process.exit(1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/channels/chan_sip.c b/channels/chan_sip.c | |
index f648454..d6be92b 100644 | |
--- a/channels/chan_sip.c | |
+++ b/channels/chan_sip.c | |
@@ -19266,6 +19266,33 @@ static int set_message_vars_from_req(struct ast_msg *msg, struct sip_request *re | |
return res; | |
} | |
+static void fill_sip_headers_hash(struct ast_channel *channel, struct sip_request *req) | |
+{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[irontec] | |
name=Irontec RPMs repository | |
baseurl=http://packages.irontec.com/centos/$releasever/$basearch/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* System requirements: | |
* - lame | |
* - sox | |
* | |
* Usage: | |
* exten => ...,AGI(agi://localhost:3000/?text=${URIENCODE(Hello, world)}) | |
*/ | |
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# i3lock blurred screen inspired by /u/patopop007 and the blog post | |
# http://plankenau.com/blog/post-10/gaussianlock | |
# Timings are on an Intel i7-2630QM @ 2.00GHz | |
# Dependencies: | |
# imagemagick | |
# i3lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Build for production: | |
* $ NODE_ENV=production webpack | |
* | |
* Build for staging or development mode | |
* $ webpack | |
* | |
* Run app server in dev mode and use Hot Module Replacement | |
* $ NODE_ENV=webpack nodemon --watch ./app index.js | |
* |
NewerOlder