Skip to content

Instantly share code, notes, and snippets.

@davehorton
davehorton / sbc-sip-daemonset.yaml
Created Nov 4, 2021
Daemonset configuration of jambonz sbc sip processing element, which will run in a special NodePool with hostnetwork
View sbc-sip-daemonset.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: drachtio-sbc-sip
labels:
app: drachtio-sbc-sip
spec:
selector:
matchLabels:
app: drachtio-sbc-sip
@davehorton
davehorton / rtpengine.log
Created Oct 11, 2021
rtpengine log with re-offer to drop freeswitch from media path, resulting in no audio
View rtpengine.log
*** call leg A
Oct 11 13:53:58 ip-10-0-0-13 rtpengine[754]: INFO: [99260N2ZhOTI4Njk1NzRjYzVhYmNmMzZkNDljNjhlOGZlNzU]: [control] Received command 'offer' from 127.0.0.1:58403
Oct 11 13:53:58 ip-10-0-0-13 rtpengine[754]: DEBUG: [99260N2ZhOTI4Njk1NzRjYzVhYmNmMzZkNDljNjhlOGZlNzU]: [control] Dump for 'offer' from 127.0.0.1:58403: { "DTLS": "off", "ICE": "remove", "SDES": "off", "call-id": "99260N2ZhOTI4Njk1NzRjYzVhYmNmMzZkNDljNjhlOGZlNzU", "command": "offer", "direction": [ "public", "private" ], "flags": [ "media handover", "port latching" ], "from-tag": "7db6df6f", "replace": [ "origin", "session-connection" ], "rtcp-mux": [ "accept" ], "sdp": "v=0#015#012o=- 1633960438143677 1 IN IP4 192.168.0.111#015#012s=Bria 5 release 5.6.2 stamp 99260#015#012c=IN IP4 192.168.0.111#015#012t=0 0#015#012m=audio 100 ...
Oct 11 13:53:58 ip-10-0-0-13 rtpengine[754]: DEBUG: [99260N2ZhOTI4Njk1NzRjYzVhYmNmMzZkNDljNjhlOGZlNzU]: ... 00 RTP/AVP 0 101#015#012a=rtcp:10001#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101 0-15#0
View uac.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<!-- This program is free software; you can redistribute it and/or -->
<!-- modify it under the terms of the GNU General Public License as -->
<!-- published by the Free Software Foundation; either version 2 of the -->
<!-- License, or (at your option) any later version. -->
<!-- -->
<!-- This program is distributed in the hope that it will be useful, -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
@davehorton
davehorton / dialogflow-regional-auth-failure.log
Created Aug 24, 2021
grpc trace file showing auth failure invoking dialogflow agent in europe-west1
View dialogflow-regional-auth-failure.log
D0824 11:53:50.239085731 11051 ev_posix.cc:173] Using polling engine: epollex
D0824 11:53:50.246649179 11051 lb_policy_registry.cc:42] registering LB policy factory for "grpclb"
D0824 11:53:50.246670908 11051 lb_policy_registry.cc:42] registering LB policy factory for "priority_experimental"
D0824 11:53:50.247460470 11051 lb_policy_registry.cc:42] registering LB policy factory for "weighted_target_experimental"
D0824 11:53:50.247480970 11051 lb_policy_registry.cc:42] registering LB policy factory for "pick_first"
D0824 11:53:50.247489103 11051 lb_policy_registry.cc:42] registering LB policy factory for "round_robin"
D0824 11:53:50.247492783 11051 lb_policy_registry.cc:42] registering LB policy factory for "ring_hash_experimental"
D0824 11:53:50.247504085 11051 dns_resolver_ares.cc:497] Using ares dns resolver
D0824 11:53:50.248445702 11051 certificate_provider_registry.cc:33] registering certificate provider factory for "file_watcher"
D0824 11:53:50.248462348 11051
View gist:176536e3f955817769f41db4d74c64c1
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
@davehorton
davehorton / file.cpp
Created May 19, 2021
StartStreamTranscriptionAsync example
View file.cpp
Aws::String key(awsAccessKeyId);
Aws::String secret(awsSecretAccessKey);
Aws::Client::ClientConfiguration config;
if (region != nullptr && strlen(region) > 0) config.region = region;
if (*awsAccessKeyId && *awsSecretAccessKey) {
m_client = Aws::MakeUnique<TranscribeStreamingServiceClient>(ALLOC_TAG, AWSCredentials(awsAccessKeyId, awsSecretAccessKey), config);
}
else {
m_client = Aws::MakeUnique<TranscribeStreamingServiceClient>(ALLOC_TAG, config);
View gist:7d5553e786c4b07107ffcc34f5ca25ee
SIP Trace
*** Initial INVITE to SRTP client (public)
2021-04-23 20:08:39.923590 send 1336 bytes to wss/[96.67.37.126]:41662 at 20:08:39.923509:
INVITE sip:qrjn6m7m@t3eov3t62ia5.invalid;transport=ws SIP/2.0^M
Via: SIP/2.0/WSS 54.74.169.84:8443;branch=z9hG4bK6vcFv8avpj8Qe^M
Max-Forwards: 70^M
From: <sip:+15083084809@96.67.37.126:41662>;tag=Zp1ee8yZU001Q^M
To: <sip:mti.2002@96.67.37.126:41662>^M
@davehorton
davehorton / rtpenginelog
Created Apr 23, 2021
rtpengine log of reinvite failure
View rtpenginelog
rtp engine logs
*** initial call setup works
*** call direction is 'private' (RTP) => 'public' (SRTP)
Apr 23 20:08:39 ip-172-31-0-20 rtpengine[24367]: INFO: [8957589d-1f12-123a-269a-0a1d0f3877f3]: Received command 'offer' from 172.31.1.10:34912
Apr 23 20:08:39 ip-172-31-0-20 rtpengine[24367]: DEBUG: [8957589d-1f12-123a-269a-0a1d0f3877f3]: Dump for 'offer' from 172.31.1.10:34912: { "ICE": "force", "SDES": "off", "call-id": "8957589d-1f12-123a-269a-0a1d0f3877f3", "command": "offer", "direction": [ "private", "public" ], "flags": [ "generate mid", "SDES-no", "media handover", "port-latching" ], "from-tag": "UUKF63KS2e06H", "replace": [ "origin", "session-connection" ], "rtcp-mux": [ "require" ], "sdp": "v=0#015#012o=FreeSWITCH 1619174241 1619174242 IN IP4 172.31.1.243#015#012s=FreeSWITCH#015#012c=IN IP4 172.31.1.243#015#012t=0 0#015#012m=audio 34278 RTP/AVP 0 8 ...
Apr 23 20:08:39 ip-172-31-0-20 rtpengine[24367]: DEBUG: [8957589d-1f12-123a-269a-0a1d0f3877f3]: ... 102 9 101 103#015#012a=rtpmap:0 PCMU/8000#015#
@davehorton
davehorton / telegraf.conf
Created Oct 30, 2020
telegraf install for jambonz
View telegraf.conf
# Telegraf Configuration
#
# Telegraf is entirely plugin driven. All metrics are gathered from the
# declared inputs, and sent to the declared outputs.
#
# Plugins must be declared in here to be active.
# To deactivate a plugin, comment out the name and any variables.
#
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config
# file would generate.
@davehorton
davehorton / ms-teams-outbound-attended-transfer-to-PSTN.txt
Created May 22, 2020
ms teams: outbound call - attended transfer to PSTN
View ms-teams-outbound-attended-transfer-to-PSTN.txt
** initial invite to teams
2020-05-22 16:05:04.247723 send 1865 bytes to tls/[52.114.75.24]:5061 at 16:05:04.247310:
INVITE sip:+441273652002@sip.pstnhub.microsoft.com SIP/2.0
Via: SIP/2.0/TLS 15.216.66.78;branch=z9hG4bK222mev064059p
Max-Forwards: 70
From: <sip:+15085710838@tenant1.customers.adatum.biz>;tag=g9Z0aNZagpBte
To: <sip:+441273652002@tenant1.customers.adatum.biz>
Call-ID: d6e5bb53-16e8-1239-ae93-061513c9979a