Skip to content

Instantly share code, notes, and snippets.

@davehorton
davehorton / gist:4bb59672dc6affbd6e6456e7bb5fd8a2
Created June 26, 2023 11:13
jaeger results when querying using /api/traces/${traceId}
{
"level": 30,
"time": "2023-06-26T11:06:52.080Z",
"pid": 896066,
"hostname": "ip-10-0-214-82",
"obj": {
"data": [{
"traceID": "979f2c6ea8f04f270df888652d134510",
"spans": [{
"traceID": "979f2c6ea8f04f270df888652d134510",
@davehorton
davehorton / gist:8defdf5ad2abf2fbc5b6ee0e12a1b592
Created June 26, 2023 11:12
jaeger api results when querying using /api/v3/traces/${traceId}
{
"level": 30,
"time": "2023-06-26T11:08:33.161Z",
"pid": 896175,
"hostname": "ip-10-0-214-82",
"obj": {
"result": {
"resourceSpans": [{
"resource": {
"attributes": [{
> [email protected] start
> node index.js
[252 ms] Received: {"result":null}
[257 ms] Received: {"result":null}
[257 ms] Received: {"result":null}
[257 ms] Received: {"result":null}
[257 ms] Received: {"result":null}
[258 ms] Received: {"result":null}
*** initial incoming INVITE
2023-04-13 01:38:28.348836 recv 2766 bytes from wss/[14.226.234.176]:38262 at 01:38:28.348251:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/WSS h0o5l0z436xc.invalid;branch=z9hG4bK143787
Max-Forwards: 69
To: <sip:[email protected]>
From: "Support 2" <sip:[email protected]>;tag=jhejii8snp
Call-ID: 7k1fvm5etfipnostv38j
CSeq: 6577 INVITE
@davehorton
davehorton / rtpengine.log
Created April 13, 2023 02:50
rtpengine log for re-invite failure with missing ice-ufrag and ice-pwd
This file has been truncated, but you can view the full file.
Apr 13 01:38:28 ip-10-0-214-82 rtpengine[1823136]: INFO: [7k1fvm5etfipnostv38j]: [control] Received command 'offer' from 127.0.0.1:7000
Apr 13 01:38:28 ip-10-0-214-82 rtpengine[1823136]: DEBUG: [7k1fvm5etfipnostv38j]: [control] Dump for 'offer' from 127.0.0.1:7000: { "DTLS": "off", "ICE": "remove", "SDES": "off", "call-id": "7k1fvm5etfipnostv38j", "command": "offer", "direction": [ "public", "private" ], "flags": [ "media handover", "port latching", "inject DTMF" ], "from-tag": "jhejii8snp", "record call": "no", "replace": [ "origin", "session-connection" ], "rtcp-mux": [ "accept" ], "sdp": "v=0#015#012o=- 1522571160374005432 2 IN IP4 127.0.0.1#015#012s=-#015#012t=0 0#015#012a=group:BUNDLE 0#015#012a=extmap-allow-mixed#015#012a=msid-semantic: W ...
Apr 13 01:38:28 ip-10-0-214-82 rtpengine[1823136]: DEBUG: [7k1fvm5etfipnostv38j]: ... MS e0f2774c-65ab-4cae-90ed-3b0235395c4d#015#012m=audio 59099 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126#015#012c=IN IP4 14.226.234.176#015#012a=rtcp:9 IN IP4 0.0.0.0#015#012a=candi
==196252== Mismatched free() / delete / delete []
==196252== at 0x48399AB: free (vg_replace_malloc.c:538)
==196252== by 0x4FF08D2: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28)
==196252== by 0x4FF1E7A: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28)
==196252== by 0x4CE6519: MallocExtension::Initialize() (in /usr/lib/x86_64-linux-gnu/libtcmalloc.so.4.5.6)
==196252== by 0x4CD0362: ??? (in /usr/lib/x86_64-linux-gnu/libtcmalloc.so.4.5.6)
==196252== by 0x400FFE1: call_init.part.0 (dl-init.c:72)
==196252== by 0x40100E8: call_init (dl-init.c:30)
==196252== by 0x40100E8: _dl_init (dl-init.c:119)
==196252== by 0x40010C9: ??? (in /usr/lib/x86_64-linux-gnu/ld-2.31.so)
==195511== Mismatched free() / delete / delete []
==195511== at 0x48399AB: free (vg_replace_malloc.c:538)
==195511== by 0x4FF08D2: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28)
==195511== by 0x4FF1E7A: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28)
==195511== by 0x4CE6519: MallocExtension::Initialize() (in /usr/lib/x86_64-linux-gnu/libtcmalloc.so.4.5.6)
==195511== by 0x4CD0362: ??? (in /usr/lib/x86_64-linux-gnu/libtcmalloc.so.4.5.6)
==195511== by 0x400FFE1: call_init.part.0 (dl-init.c:72)
==195511== by 0x40100E8: call_init (dl-init.c:30)
==195511== by 0x40100E8: _dl_init (dl-init.c:119)
==195511== by 0x40010C9: ??? (in /usr/lib/x86_64-linux-gnu/ld-2.31.so)
@davehorton
davehorton / gist:bd35eafe1e0ad6467e417630f020a533
Created January 8, 2023 21:12
example nginx config for jambonz using https
# more /etc/nginx/sites-available/default
server {
server_name jambonz.net;
location /api/ {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://localhost:3002;
proxy_set_header Host $host;
}
location / {
proxy_pass http://localhost:3001;
@davehorton
davehorton / voicelist.json
Created November 25, 2022 13:40
ibm watson tts voices
[{
"gender": "female",
"supported_features": {
"custom_pronunciation": true,
"voice_transformation": false
},
"name": "es-US_SofiaV3Voice",
"customizable": true,
"description": "Sofia: North American Spanish (español norteamericano) female voice. Dnn technology.",
"language": "es-US",
@davehorton
davehorton / agent-assist.js
Created November 3, 2022 01:17
agent assist webhook
const router = require('express').Router();
const WebhookResponse = require('@jambonz/node-client').WebhookResponse;
const axios = require('axios');
router.post('/', (req, res) => {
const {logger} = req.app.locals;
const {call_sid} = req.body;
logger.debug({payload: req.body, call_sid}, 'POST /agent-assist');
try {
const app = new WebhookResponse();