Skip to content

Instantly share code, notes, and snippets.

@davehorton
davehorton / ms-teams-inbound-hold-resume.txt
Last active May 22, 2020 12:22
ms teams: inbound from teams - hold - resume
*** inbound invite from teams
2020-05-22 11:55:37.907073 recv 2051 bytes from tls/[52.114.76.76]:5128 at 11:55:37.906732:
INVITE sip:+441273652000@tenant1.customers.adatum.biz:5061;user=phone;transport=tls SIP/2.0
FROM: John Doe<sip:+441273652002@sip.pstnhub.microsoft.com:5061;user=phone>;tag=240cd735c3464a168493fb4a5cc574e2
TO: <sip:+441273652000@tenant1.customers.adatum.biz:5061;user=phone>
CSEQ: 1 INVITE
CALL-ID: 64ce308b2417594d8bd91a8ade8aa77d
MAX-FORWARDS: 70
VIA: SIP/2.0/TLS 52.114.76.76:5061;branch=z9hG4bK58735f38
@davehorton
davehorton / ms-teams-inbound-blind-transfer.txt
Created May 22, 2020 13:10
ms teams: inbound call - blind transfer
*** initial invite from teams
2020-05-22 12:58:57.386891 recv 2048 bytes from tls/[52.114.76.76]:1088 at 12:58:57.386550:
INVITE sip:+441273652000@tenant1.customers.adatum.biz:5061;user=phone;transport=tls SIP/2.0
FROM: John Doe<sip:+441273652002@sip.pstnhub.microsoft.com:5061;user=phone>;tag=6dfc92bea7c34a088da543836621d85e
TO: <sip:+441273652000@tenant1.customers.adatum.biz:5061;user=phone>
CSEQ: 1 INVITE
CALL-ID: 19233e6b7ee459728d084c407e6fcd91
MAX-FORWARDS: 70
VIA: SIP/2.0/TLS 52.114.76.76:5061;branch=z9hG4bK98ed9760
@davehorton
davehorton / ms-teams-inbound-attended-transfer.txt
Created May 22, 2020 13:35
ms teams: inbound call - attended transfer
*** initial inbound call from teams
2020-05-22 13:24:52.120346 recv 2041 bytes from tls/[52.114.76.76]:5065 at 13:24:52.120006:
INVITE sip:+441273652000@tenant1.customers.adatum.biz:5061;user=phone;transport=tls SIP/2.0
FROM: John Doe<sip:+441273652002@sip.pstnhub.microsoft.com:5061;user=phone>;tag=2ece0f1028864f08bd25c8eec9dc8278
TO: <sip:+441273652000@tenant1.customers.adatum.biz:5061;user=phone>
CSEQ: 1 INVITE
CALL-ID: bd7df9c5ccd355c7bb3a526def859f00
MAX-FORWARDS: 70
VIA: SIP/2.0/TLS 52.114.76.76:5061;branch=z9hG4bK3f72ae61
@davehorton
davehorton / ms-teams-inbound-attended-transfer-to-PSTN.txt
Created May 22, 2020 14:19
ms teams: inbound attended transfer to PSTN
** initial invite from teams
2020-05-22 13:57:36.112184 recv 2047 bytes from tls/[52.114.76.76]:5128 at 13:57:36.111845:
INVITE sip:+441273652000@tenant1.customers.adatum.biz:5061;user=phone;transport=tls SIP/2.0
FROM: John Doe<sip:+441273652002@sip.pstnhub.microsoft.com:5061;user=phone>;tag=9866360381794774b705783863e1d4fb
TO: <sip:+441273652000@tenant1.customers.adatum.biz:5061;user=phone>
CSEQ: 1 INVITE
CALL-ID: 59c80abf43fc5817a9b3e7679fbde9e6
MAX-FORWARDS: 70
VIA: SIP/2.0/TLS 52.114.76.76:5061;branch=z9hG4bK65fe9343
@davehorton
davehorton / ms-teams-outbound-blind-transfer.txt
Created May 22, 2020 15:35
ms teams: outbound - blind transfer to teams user
** outbound call to teams user
2020-05-22 15:26:06.409877 send 1865 bytes to tls/[52.114.75.24]:5061 at 15:26:06.409433:
INVITE sip:+441273652002@sip.pstnhub.microsoft.com SIP/2.0
Via: SIP/2.0/TLS 15.216.66.78;branch=z9hG4bK36eFmeapgrFDN
Max-Forwards: 70
From: <sip:+15085710838@tenant1.customers.adatum.biz>;tag=2Qj5trHSNgaDS
To: <sip:+441273652002@tenant1.customers.adatum.biz>
Call-ID: 65715830-16e3-1239-ae93-061513c9979a
CSeq: 20526791 INVITE
** initial invite to teams
2020-05-22 15:51:09.572300 send 1865 bytes to tls/[52.114.75.24]:5061 at 15:51:09.571870:
INVITE sip:+441273652002@sip.pstnhub.microsoft.com SIP/2.0
Via: SIP/2.0/TLS 15.216.66.78;branch=z9hG4bK64N534DKjaD8F
Max-Forwards: 70
From: <sip:+15085710838@tenant1.customers.adatum.biz>;tag=HBt8y3jrmK3gQ
To: <sip:+441273652002@tenant1.customers.adatum.biz>
Call-ID: e5667c1f-16e6-1239-ae93-061513c9979a
CSeq: 20527542 INVITE
@davehorton
davehorton / ms-teams-outbound-attended-transfer-to-PSTN.txt
Created May 22, 2020 16:36
ms teams: outbound call - attended transfer to PSTN
** 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
@davehorton
davehorton / rtpengine.service
Last active May 27, 2020 01:11
example systemd file for rtpengine
# 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 \
@davehorton
davehorton / telegraf.conf
Created October 30, 2020 16:04
telegraf install for jambonz
# 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 / rtpenginelog
Created April 23, 2021 20:34
rtpengine log of reinvite failure
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#