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
new-host-5:sipua dhorton$ node test.js | |
27 Jun 01:09:42 - [object SipUserAgent] | |
{} | |
sip port is: undefined |
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
{ | |
"connected": false, //final result -- was the call connected or not? | |
"responses": [ //all responses received from all destinations | |
{ | |
"address": "192.168.100.129", | |
"port": 49579, | |
"msgs": [{ | |
"time": "18:04:50.978089", | |
"status": 404, | |
"msg": { |
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
0 info it worked if it ends with ok | |
1 verbose cli [ 'node', '/usr/local/bin/npm', 'publish' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose node symlink /usr/local/bin/node | |
5 verbose publish [ '.' ] | |
6 silly cache add args [ '.', null ] | |
7 verbose cache add spec . | |
8 silly cache add parsed spec { raw: '.', | |
8 silly cache add scope: null, |
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
0 info it worked if it ends with ok | |
1 verbose cli [ 'node', '/usr/local/bin/npm', 'publish' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose node symlink /usr/local/bin/node | |
5 verbose publish [ '.' ] | |
6 silly cache add args [ '.', null ] | |
7 verbose cache add spec . | |
8 silly cache add parsed spec { raw: '.', | |
8 silly cache add scope: null, |
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
The drachtio server is controlled by one or more drachtio-srf applications over a tcp connection. This gist provides some | |
notes on the messaging protocol, in case anyone wants to take a **shot** |
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
2018-08-06 11:17:43.410747 SipProxyController::doSendRequestOutsideDialog attempting to determine transport tport for request-uri sip:[email protected] proto: udp | |
2018-08-06 11:17:43.410761 SipTransport::findAppropriateTransport: searching for a transport to reach udp/sip:[email protected] | |
2018-08-06 11:17:43.410800 SipTransport::findAppropriateTransport: host parsed as sip.linphone.org | |
2018-08-06 11:17:43.410811 SipTransport::findAppropriateTransport - after filtering for transport we have 6 candidates | |
2018-08-06 11:17:43.410817 SipTransport::findAppropriateTransport - after filtering for protocol we have 3 candidates | |
2018-08-06 11:17:43.410865 SipTransport::findAppropriateTransport: - returning the best match 0x24c2f10: udp/10.196.160.34:5060 | |
2018-08-06 11:17:43.410875 SipTransport::getContactUri - created Contact header: sip:10.196.160.34:5060 | |
2018-08-06 11:17:43.410882 SipProxyController::doSendRequestOutsideDialog selected transport 0x24c2f10 | |
2018-08-06 11:17:43.410905 makeTags - Adding wel |
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
#include <libwebsockets.h> | |
#include <string.h> | |
#include <signal.h> | |
#include <inttypes.h> | |
#include "read_wav.h" | |
#define LWS_PLUGIN_STATIC | |
struct vhd_asapp { | |
struct lws_context *context; |
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
2019-01-15 12:37:53.268753 [DEBUG] lws_glue.cpp:26 addPendingConnect - after adding there are now 1 pending | |
2019-01-15 12:37:53.268753 [INFO] lws_glue.cpp:239 lws_cancel_service | |
2019-01-15 12:37:53.268753 [DEBUG] lws_glue.cpp:92 lws_callback wsi: 0x7fffef014570, vhost: default | |
2019-01-15 12:37:53.268753 [DEBUG] lws_glue.cpp:106 lws_callback LWS_CALLBACK_EVENT_WAIT_CANCELLED wsi: 0x7fffef014570, vhost | |
2019-01-15 12:37:53.268753 [INFO] lws_glue.cpp:239 lws_vhost_bind_wsi: vh default: count_bound_wsi 1 | |
2019-01-15 12:37:53.268753 [DEBUG] lws_glue.cpp:239 lws_role_transition: 0x911a40: wsistate 0x10000200, ops h1 | |
2019-01-15 12:37:53.268753 [INFO] lws_glue.cpp:239 lws_client_connect_via_info: protocol binding to audiostream.drachtio.org | |
2019-01-15 12:37:53.268753 [DEBUG] lws_glue.cpp:92 lws_callback wsi: 0x911a40, vhost: default | |
2019-01-15 12:37:53.268753 [DEBUG] lws_glue.cpp:211 lws_callback unhandled reason: 85 wsi: 0x911a40 | |
2019-01-15 12:37:53.268753 [INFO] lws_glue.cpp:239 lws_header_table_attach: wsi 0x911a40: |
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
# more /etc/systemd/system/rtpengine.service | |
[Unit] | |
Description=rtpengine | |
After=syslog.target network.target local-fs.target | |
[Service] | |
; service | |
Type=forking | |
ExecStart=/usr/local/bin/rtpengine \ |
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 calls = require('./calls'); | |
srf.invite(async(req, res) => { | |
const ms = req.app.locals.ms; | |
const to_number = calls.convertToE164(req.calledNumber); | |
let ep, dlg; | |
try { | |
const {endpoint, dialog} = await ms.connectCaller(req, res); | |
ep = endpoint; | |
dlg = dialog; |
OlderNewer