Skip to content

Instantly share code, notes, and snippets.

@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 ...
==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();
@davehorton
davehorton / nuance-tts-voice.json
Last active October 26, 2022 22:49
Nuance TTS languages and voices
[{
"language": "ar-ww",
"name": "Laila",
"model": "standard",
"gender": "female"
}, {
"language": "ar-ww",
"name": "Tarik",
"model": "standard",
"gender": "male"
@davehorton
davehorton / gist:dc6380feda1a16502f9a13b5cb73acfb
Created October 26, 2022 15:19
jambonz rest API example: adding a carrier
## Add a carrier
POST http://jambonz.one/api/v1/ServiceProviders/2708b1b3-2736-40ea-b502-c53d8396247f/VoipCarriers
Authorization: Bearer <api-key>
{
"name": "test",
"e164_leading_plus": 1,
"application_sid": null,
"account_sid": null,
"requires_register": 1,
$ npm run watch
> @nextiva/platform-ui__browser-softphone@5.12.0-dev watch /Users/dhorton/beachdog-enterprises/beachdog-networks/git/nextiva/browser-softphone-ui
> webpack --watch --mode=development --config ./config/webpack.config.base.js
src/components/CallAnsweredWidget/components/CallInfo/CallerDisplayName.tsx:2:8 - error TS1259: Module '"/Users/dhorton/beachdog-enterprises/beachdog-networks/git/nextiva/browser-softphone-ui/node_modules/@types/react/index"' can only be default-imported using the 'esModuleInterop' flag
2 import React, { ReactElement, useRef } from 'react';
~~~~~
MacBook-Pro-3:nextiva-connect-spa dhorton$ npm start
> @nextiva/nextiva-connect-spa@1.49.0-dev start /Users/dhorton/beachdog-enterprises/beachdog-networks/git/nextiva/nextiva-connect-spa
> cross-env NODE_ENV=development webpack serve --config ./config/webpack.dev.js
NEXTIVA We are proxying modules from your env file, Please be sure to run them locally.
<i> [webpack-dev-server] [HPM] Proxy created: /apps/nextiva-connect-analytics/ -> https://connectm4.dev.nextiva.xyz
<i> [webpack-dev-server] [HPM] Proxy created: /apps/nextiva-browser-softphone/ -> http://localhost:3008
<i> [webpack-dev-server] [HPM] Proxy rewrite rule created: "^/apps/nextiva-browser-softphone/" ~> "/"