Skip to content

Instantly share code, notes, and snippets.

@davehorton
Last active November 6, 2019 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davehorton/e8345d0fd5b286c718076867df99c952 to your computer and use it in GitHub Desktop.
Save davehorton/e8345d0fd5b286c718076867df99c952 to your computer and use it in GitHub Desktop.
rtpengine commands -- trying to transcoding RFC 2833 => PCMU with audio tones and back again
[1573055112.558183] INFO: [604876896_63863282@23.29.25.54]: Received command 'offer' from 10.11.3.48:45637
[1573055112.558298] DEBUG: [604876896_63863282@23.29.25.54]: Dump for 'offer' from 10.11.3.48:45637: { "ICE": "remove", "call-id": "604876896_63863282@23.29.25.54", "codec": { "offer": [ "PCMU" ], "strip": [ "all" ] }, "command": "offer", "flags": [ "asymmetric", "always transcode" ], "from-tag": "gK0d45e2f1", "sdp": "v=0^M
o=- 26743 31458 IN IP4 23.29.25.59^M
s=-^M
c=IN IP4 23.29.25.59^M
t=0 0^M
m=audio 24768 RTP/AVP 0 18 101^M
a=rtpmap:18 G729/8000^M
a=fmtp:18 annexb=no^M
a=rtpmap:101 telephone-event/8000^M
a=fmtp:101 0-15^M
a=maxptime:20^M
", "via-branch": "z9hG4bK7644.56824a70bd3d5731fa063bc65f93f903.0" }
[1573055112.558406] NOTICE: [604876896_63863282@23.29.25.54]: Creating new call
[1573055112.559061] DEBUG: [604876896_63863282@23.29.25.54]: Stripping codec 'PCMU/8000'
[1573055112.559086] DEBUG: [604876896_63863282@23.29.25.54]: Stripping codec 'G729/8000'
[1573055112.559091] DEBUG: [604876896_63863282@23.29.25.54]: Stripping codec 'telephone-event/8000'
[1573055112.559100] DEBUG: [604876896_63863282@23.29.25.54]: Restoring codec 'PCMU' from stripped codecs (1 payload types)
[1573055112.559118] DEBUG: [604876896_63863282@23.29.25.54]: Default sink codec is PCMU/8000
[1573055112.559126] DEBUG: [604876896_63863282@23.29.25.54]: 0 DTMF sink entries
[1573055112.559131] DEBUG: [604876896_63863282@23.29.25.54]: Creating codec handler for PCMU/8000
[1573055112.559135] DEBUG: [604876896_63863282@23.29.25.54]: Sink does not support codec PCMU/8000
[1573055112.559140] DEBUG: [604876896_63863282@23.29.25.54]: Created transcode context for PCMU/8000 -> PCMU/8000 with DTMF output -1
[1573055112.559147] DEBUG: [604876896_63863282@23.29.25.54]: Creating SSRC transcoder from PCMU/8000/1 to PCMU/8000/1
[1573055112.559226] DEBUG: [604876896_63863282@23.29.25.54]: Initialized encoder with frame size 160 samples
[1573055112.559251] DEBUG: [604876896_63863282@23.29.25.54]: Encoder created with clockrate 8000, 1 channels, using sample format 1 (ptime 20 for 160 samples per frame and 160 samples (160 bytes) per packet, bitrate 0)
[1573055112.559256] INFO: [604876896_63863282@23.29.25.54]: Enabling transcoding engine
[1573055112.559369] DEBUG: [604876896_63863282@23.29.25.54]: creating send_timer
[1573055112.559385] DEBUG: [604876896_63863282@23.29.25.54]: creating send_timer
[1573055112.559394] DEBUG: [604876896_63863282@23.29.25.54]: creating send_timer
[1573055112.559399] DEBUG: [604876896_63863282@23.29.25.54]: creating send_timer
[1573055112.559444] DEBUG: [604876896_63863282@23.29.25.54]: set FILLED flag for stream 23.29.25.59:24768
[1573055112.559454] DEBUG: [604876896_63863282@23.29.25.54]: set FILLED flag for stream 23.29.25.59:24769
[1573055112.559482] INFO: [604876896_63863282@23.29.25.54]: Replying to 'offer' from 10.11.3.48:45637 (elapsed time 0.001168 sec)
[1573055112.559497] DEBUG: [604876896_63863282@23.29.25.54]: Response dump for 'offer' to 10.11.3.48:45637: { "sdp": "v=0^M
o=- 26743 31458 IN IP4 23.29.25.59^M
s=-^M
c=IN IP4 104.198.72.91^M
t=0 0^M
m=audio 24116 RTP/AVP 0^M
a=maxptime:20^M
a=rtpmap:0 PCMU/8000^M
a=sendrecv^M
a=rtcp:24117^M
", "result": "ok" }
[1573055112.703138] INFO: [604876896_63863282@23.29.25.54]: Received command 'answer' from 10.11.3.48:45637
[1573055112.703208] DEBUG: [604876896_63863282@23.29.25.54]: Dump for 'answer' from 10.11.3.48:45637: { "ICE": "remove", "call-id": "604876896_63863282@23.29.25.54", "codec": { "offer": [ "PCMU", "telephone-event" ], "transcode": [ "telephone-event" ] }, "command": "answer", "flags": [ "asymmetric" ], "from-tag": "gK0d45e2f1", "sdp": "v=0^M
o=FreeSWITCH 1573028396 1573028397 IN IP4 10.11.3.45^M
s=FreeSWITCH^M
c=IN IP4 10.11.3.45^M
t=0 0^M
m=audio 26716 RTP/AVP 0^M
a=rtpmap:0 PCMU/8000^M
a=ptime:20^M
a=sendrecv^M
a=rtcp:26717 IN IP4 10.11.3.45^M
", "to-tag": "U44DSXN546vKe", "via-branch": "z9hG4bK7644.56824a70bd3d5731fa063bc65f93f903.0" }
[1573055112.703282] DEBUG: [604876896_63863282@23.29.25.54]: Default sink codec is PCMU/8000
[1573055112.703295] DEBUG: [604876896_63863282@23.29.25.54]: 0 DTMF sink entries
[1573055112.703375] DEBUG: [604876896_63863282@23.29.25.54]: Creating codec handler for PCMU/8000
[1573055112.703761] DEBUG: [604876896_63863282@23.29.25.54]: Sink supports codec PCMU/8000
[1573055112.703847] DEBUG: [604876896_63863282@23.29.25.54]: Using passthrough handler for PCMU/8000
[1573055112.703947] DEBUG: [604876896_63863282@23.29.25.54]: set FILLED flag for stream 10.11.3.45:26716
[1573055112.704045] DEBUG: [604876896_63863282@23.29.25.54]: set FILLED flag for stream 10.11.3.45:26717
[1573055112.704243] INFO: [604876896_63863282@23.29.25.54]: Replying to 'answer' from 10.11.3.48:45637 (elapsed time 0.001017 sec)
[1573055112.704372] DEBUG: [604876896_63863282@23.29.25.54]: Response dump for 'answer' to 10.11.3.48:45637: { "sdp": "v=0^M
o=FreeSWITCH 1573028396 1573028397 IN IP4 10.11.3.45^M
s=FreeSWITCH^M
c=IN IP4 104.198.72.91^M
t=0 0^M
m=audio 24128 RTP/AVP 0^M
a=rtpmap:0 PCMU/8000^M
a=sendrecv^M
a=rtcp:24129^M
a=ptime:20^M
", "result": "ok" }
1573057776.464135] INFO: [604430689_120444740@23.29.25.54]: Received command 'offer' from 10.11.4.48:56755
[1573057776.464189] DEBUG: [604430689_120444740@23.29.25.54]: Dump for 'offer' from 10.11.4.48:56755: { "ICE": "remove", "call-id": "604430689_120444740@23.29.25.54", "codec": { "mask": [ "all" ], "offer": [ "PCMU" ] }, "command": "offer", "flags": [ "asymmetric", "always transcode" ], "from-tag": "gK06682d28", "sdp": "v=0^M
o=- 15946 3647 IN IP4 23.29.25.59^M
s=-^M
c=IN IP4 23.29.25.59^M
t=0 0^M
m=audio 32868 RTP/AVP 0 18 101^M
a=rtpmap:18 G729/8000^M
a=fmtp:18 annexb=no^M
a=rtpmap:101 telephone-event/8000^M
a=fmtp:101 0-15^M
a=maxptime:20^M
", "via-branch": "z9hG4bKca03.69c5e5432a2584539b9101257c2f32e6.0" }
[1573057776.464253] NOTICE: [604430689_120444740@23.29.25.54]: Creating new call
[1573057776.464329] DEBUG: [604430689_120444740@23.29.25.54]: Default sink codec is PCMU/8000
[1573057776.464337] DEBUG: [604430689_120444740@23.29.25.54]: 1 DTMF sink entries
[1573057776.464340] DEBUG: [604430689_120444740@23.29.25.54]: Output DTMF payload type is 101
[1573057776.464449] DEBUG: [604430689_120444740@23.29.25.54]: creating send_timer
[1573057776.464456] DEBUG: [604430689_120444740@23.29.25.54]: creating send_timer
[1573057776.464462] DEBUG: [604430689_120444740@23.29.25.54]: creating send_timer
[1573057776.464466] DEBUG: [604430689_120444740@23.29.25.54]: creating send_timer
[1573057776.464507] DEBUG: [604430689_120444740@23.29.25.54]: set FILLED flag for stream 23.29.25.59:32868
[1573057776.464511] DEBUG: [604430689_120444740@23.29.25.54]: set FILLED flag for stream 23.29.25.59:32869
[1573057776.464534] INFO: [604430689_120444740@23.29.25.54]: Replying to 'offer' from 10.11.4.48:56755 (elapsed time 0.000335 sec)
[1573057776.464544] DEBUG: [604430689_120444740@23.29.25.54]: Response dump for 'offer' to 10.11.4.48:56755: { "sdp": "v=0^M
o=- 15946 3647 IN IP4 23.29.25.59^M
s=-^M
c=IN IP4 104.198.72.91^M
t=0 0^M
m=audio 24420 RTP/AVP 0 18 101^M
a=rtpmap:18 G729/8000^M
a=fmtp:18 annexb=no^M
a=rtpmap:101 telephone-event/8000^M
a=fmtp:101 0-15^M
a=maxptime:20^M
a=sendrecv^M
a=rtcp:24421^M
", "result": "ok" }
[1573057776.606243] INFO: [604430689_120444740@23.29.25.54]: Received command 'answer' from 10.11.4.48:56755
[1573057776.606359] DEBUG: [604430689_120444740@23.29.25.54]: Dump for 'answer' from 10.11.4.48:56755: { "ICE": "remove", "call-id": "604430689_120444740@23.29.25.54", "codec": { "offer": [ "PCMU", "telephone-event" ], "transcode": [ "telephone-event" ] }, "command": "answer", "flags": [ "asymmetric" ], "from-tag": "gK06682d28", "sdp": "v=0^M
o=FreeSWITCH 1573030224 1573030225 IN IP4 10.11.4.44^M
s=FreeSWITCH^M
c=IN IP4 10.11.4.44^M
t=0 0^M
m=audio 27552 RTP/AVP 0^M
a=rtpmap:0 PCMU/8000^M
a=ptime:20^M
a=sendrecv^M
a=rtcp:27553 IN IP4 10.11.4.44^M
", "to-tag": "eFFH5FF6y0y3H", "via-branch": "z9hG4bKca03.69c5e5432a2584539b9101257c2f32e6.0" }
[1573057776.606433] DEBUG: [604430689_120444740@23.29.25.54]: Default sink codec is PCMU/8000
[1573057776.606442] DEBUG: [604430689_120444740@23.29.25.54]: 0 DTMF sink entries
[1573057776.606447] DEBUG: [604430689_120444740@23.29.25.54]: Eliminating asymmetric outbound codec G729/8000
[1573057776.606454] DEBUG: [604430689_120444740@23.29.25.54]: Eliminating asymmetric outbound codec telephone-event/8000
[1573057776.606463] DEBUG: [604430689_120444740@23.29.25.54]: Creating codec handler for PCMU/8000
[1573057776.606474] DEBUG: [604430689_120444740@23.29.25.54]: Sink supports codec PCMU/8000
[1573057776.606478] DEBUG: [604430689_120444740@23.29.25.54]: Using passthrough handler for PCMU/8000
[1573057776.606491] DEBUG: [604430689_120444740@23.29.25.54]: set FILLED flag for stream 10.11.4.44:27552
[1573057776.606499] DEBUG: [604430689_120444740@23.29.25.54]: set FILLED flag for stream 10.11.4.44:27553
[1573057776.606521] INFO: [604430689_120444740@23.29.25.54]: Replying to 'answer' from 10.11.4.48:56755 (elapsed time 0.000147 sec)
[1573057776.606532] DEBUG: [604430689_120444740@23.29.25.54]: Response dump for 'answer' to 10.11.4.48:56755: { "sdp": "v=0^M
o=FreeSWITCH 1573030224 1573030225 IN IP4 10.11.4.44^M
s=FreeSWITCH^M
c=IN IP4 104.198.72.91^M
t=0 0^M
m=audio 24436 RTP/AVP 0^M
a=rtpmap:0 PCMU/8000^M
a=sendrecv^M
a=rtcp:24437^M
a=ptime:20^M
", "result": "ok" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment