Skip to content

Instantly share code, notes, and snippets.

@arafasen
Last active December 22, 2018 02:51
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 arafasen/ce0dfb812c8f8453f9632248c4818aec to your computer and use it in GitHub Desktop.
Save arafasen/ce0dfb812c8f8453f9632248c4818aec to your computer and use it in GitHub Desktop.
[ PJSIP.CONF ]
[webrtc](!)
transport=transport-wss
context=default
direct_media=no
dtls_cert_file=/etc/asterisk/keys2/asterisk.pem
dtls_private_key=/etc/asterisk/keys2/asterisk.pem
media_encryption=dtls
dtls_verify=fingerprint
dtls_setup=actpass
media_use_received_transport=yes
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
ice_support=yes
rtcp_mux=yes
max_audio_streams=5
max_video_streams=5
webrtc=yes
allow=!all,opus,vp8
[transport-wss]
type=transport
protocol=wss
bind=0.0.0.0
----- caller log --------
INVITE sip:6001@192.168.8.200 SIP/2.0
Via: SIP/2.0/WSS 192.0.2.149;branch=z9hG4bK3307593
Max-Forwards: 70
To: <sip:6001@192.168.8.200>
From: <sip:webrtc_client@192.168.8.200>;tag=pv1lfuqgr6
Call-ID: v5073m8qel4b0tes4mk5
CSeq: 8904 INVITE
Authorization: Digest algorithm=MD5, username="webrtc_client", realm="asterisk", nonce="1545446005/07b73bac0dd7e076434361fc8ba4da22", uri="sip:6001@192.168.8.200", response="addc2f257dbf398705a69be53fe80966", opaque="1e087f4b6e7f2a13", qop=auth, cnonce="n5k87htmfg5r", nc=00000001
allooservice: 4
alloouser: 1
Contact: <sip:fejd7v1b@192.0.2.149;transport=wss;ob>
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound
User-Agent: SIP.js/0.12.0
Content-Type: application/sdp
Content-Length: 5302
v=0
o=- 740237328134131480 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS o9colMDvS6QjKYiJz1IbkueaxnCMcQB9XHXz
m=audio 61750 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4 192.168.8.102
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:115579896 1 udp 2122260223 192.168.8.102 61750 typ host generation 0 network-id 1 network-cost 10
a=candidate:1214277384 1 tcp 1518280447 192.168.8.102 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:yAp1
a=ice-pwd:OVpHuRa8shK5/NB5gJuhkkH5
a=ice-options:trickle
a=fingerprint:sha-256 D8:79:7C:25:39:F2:F3:84:D7:4E:53:E2:D0:7A:4C:44:29:80:66:F0:89:F4:3E:2D:27:A1:57:9F:D7:1D:95:58
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:1117607678 cname:IAD2Snw6Nn0ZhWkQ
a=ssrc:1117607678 msid:o9colMDvS6QjKYiJz1IbkueaxnCMcQB9XHXz 0d6326c4-6ba3-46fb-a360-73ac25938dde
a=ssrc:1117607678 mslabel:o9colMDvS6QjKYiJz1IbkueaxnCMcQB9XHXz
a=ssrc:1117607678 label:0d6326c4-6ba3-46fb-a360-73ac25938dde
m=video 57910 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 122 127 121 125 107 108 109 124 120 123 119 114
c=IN IP4 192.168.8.102
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:115579896 1 udp 2122260223 192.168.8.102 57910 typ host generation 0 network-id 1 network-cost 10
a=candidate:1214277384 1 tcp 1518280447 192.168.8.102 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:yAp1
a=ice-pwd:OVpHuRa8shK5/NB5gJuhkkH5
a=ice-options:trickle
a=fingerprint:sha-256 D8:79:7C:25:39:F2:F3:84:D7:4E:53:E2:D0:7A:4C:44:29:80:66:F0:89:F4:3E:2D:27:A1:57:9F:D7:1D:95:58
a=setup:actpass
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 url
a=extmap:4 urn:3gpp:video-orientation
a=extmap:5 url
a=extmap:6 url
a=extmap:7 url
a=extmap:8 ur
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 x-google-profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 H264/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:122 rtx/90000
a=fmtp:122 apt=102
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:121 rtx/90000
a=fmtp:121 apt=127
a=rtpmap:125 H264/90000
a=rtcp-fb:125 goog-remb
a=rtcp-fb:125 transport-cc
a=rtcp-fb:125 ccm fir
a=rtcp-fb:125 nack
a=rtcp-fb:125 nack pli
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=125
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d0032
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:124 H264/90000
a=rtcp-fb:124 goog-remb
a=rtcp-fb:124 transport-cc
a=rtcp-fb:124 ccm fir
a=rtcp-fb:124 nack
a=rtcp-fb:124 nack pli
a=fmtp:124 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640032
a=rtpmap:120 rtx/90000
a=fmtp:120 apt=124
a=rtpmap:123 red/90000
a=rtpmap:119 rtx/90000
a=fmtp:119 apt=123
a=rtpmap:114 ulpfec/90000
a=ssrc-group:FID 3092464784 3412524546
a=ssrc:3092464784 cname:IAD2Snw6Nn0ZhWkQ
a=ssrc:3092464784 msid:o9colMDvS6QjKYiJz1IbkueaxnCMcQB9XHXz efc77ab2-4f2c-453b-b2d4-a37ac6cef198
a=ssrc:3092464784 mslabel:o9colMDvS6QjKYiJz1IbkueaxnCMcQB9XHXz
a=ssrc:3092464784 label:efc77ab2-4f2c-453b-b2d4-a37ac6cef198
a=ssrc:3412524546 cname:IAD2Snw6Nn0ZhWkQ
a=ssrc:3412524546 msid:o9colMDvS6QjKYiJz1IbkueaxnCMcQB9XHXz efc77ab2-4f2c-453b-b2d4-a37ac6cef198
a=ssrc:3412524546 mslabel:o9colMDvS6QjKYiJz1IbkueaxnCMcQB9XHXz
a=ssrc:3412524546 label:efc77ab2-4f2c-453b-b2d4-a37ac6cef198
----------------
SIP/2.0 200 OK
Via: SIP/2.0/WSS 192.0.2.149;rport=61590;received=192.168.8.102;branch=z9hG4bK3307593
Call-ID: v5073m8qel4b0tes4mk5
From: <sip:webrtc_client@192.168.8.200>;tag=pv1lfuqgr6
To: <sip:6001@192.168.8.200>;tag=621dc94a-509c-48c2-a5da-32cf5f807edb
CSeq: 8904 INVITE
Server: Asterisk PBX 16.1.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Contact: <sip:192.168.8.200:8089;transport=ws>
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 1419
v=0
o=- 2431340312 4 IN IP4 192.168.8.200
s=Asterisk
c=IN IP4 192.168.8.200
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE audio video
m=audio 11146 UDP/TLS/RTP/SAVPF 111 126
a=connection:new
a=setup:active
a=fingerprint:SHA-256 B1:04:70:23:73:5C:4F:6F:A2:83:A6:6F:FA:F9:1A:F7:EA:25:95:5E:30:7E:D1:B0:4A:6F:51:7E:AE:80:B1:05
a=ice-ufrag:58ccd7092c5cca370bfd812116dd1bc1
a=ice-pwd:39f0c600023dc09c23355192447dec31
a=candidate:Hc0a808c8 1 UDP 2130706431 192.168.8.200 11146 typ host
a=rtpmap:111 opus/48000/2
a=fmtp:111 useinbandfec=1
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
a=rtcp-mux
a=ssrc:245730783 cname:44ca64b7-a755-444a-890b-376b5665d686
a=msid:8869f7e2-2b2d-4ef0-977b-1c293f9b831a 9bd86509-4566-4bf2-9fb9-326ea6882579
a=mid:audio
m=video 11146 UDP/TLS/RTP/SAVPF 96
a=connection:new
a=setup:active
a=fingerprint:SHA-256 B1:04:70:23:73:5C:4F:6F:A2:83:A6:6F:FA:F9:1A:F7:EA:25:95:5E:30:7E:D1:B0:4A:6F:51:7E:AE:80:B1:05
a=ice-ufrag:58ccd7092c5cca370bfd812116dd1bc1
a=ice-pwd:39f0c600023dc09c23355192447dec31
a=rtpmap:96 VP8/90000
a=sendrecv
a=rtcp-mux
a=ssrc:954978289 cname:8ad29676-c2c3-4159-82a4-4b6017251e3b
a=msid:8869f7e2-2b2d-4ef0-977b-1c293f9b831a 1694bcdc-e9d0-494d-be23-7ce6b5a2cf48
a=rtcp-fb:* ccm fir
a=rtcp-fb:* goog-remb
a=rtcp-fb:* nack
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=mid:video
------------------ callee logs -----------------------
INVITE sip:12d5rl0u@192.168.8.102:61523;transport=ws SIP/2.0
Via: SIP/2.0/WSS 192.168.8.200:8089;rport;branch=z9hG4bKPja66c8994-87a7-461f-8968-3ac6f20759bd;alias
From: <sip:webrtc_client@farra-VirtualBox>;tag=13bad7f8-5b83-489d-9cc7-0dfdd34d7ca0
To: <sip:12d5rl0u@192.168.8.102>
Contact: <sip:asterisk@farra-VirtualBox:5060;transport=ws>
Call-ID: 493fe020-8cef-4d2c-a26e-2fe7cefc33dd
CSeq: 22191 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: Asterisk PBX 16.1.0
Content-Type: application/sdp
Content-Length: 1439
v=0
o=- 201082508 201082508 IN IP4 192.168.8.200
s=Asterisk
c=IN IP4 192.168.8.200
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE audio-0 video-1
m=audio 18684 UDP/TLS/RTP/SAVPF 107 101
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 B1:04:70:23:73:5C:4F:6F:A2:83:A6:6F:FA:F9:1A:F7:EA:25:95:5E:30:7E:D1:B0:4A:6F:51:7E:AE:80:B1:05
a=ice-ufrag:40c92cd32badf7503b3629a80f5c00b1
a=ice-pwd:2c20546f0b1dfe2a37b411a8775ea669
a=candidate:Hc0a808c8 1 UDP 2130706431 192.168.8.200 18684 typ host
a=rtpmap:107 opus/48000/2
a=fmtp:107 useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
a=rtcp-mux
a=ssrc:670615601 cname:ddebcf6d-329c-4eba-a417-ea87f877e7f9
a=msid:fdae3e0d-34e2-4c61-a6ec-d4f72aca0586 43db1aa0-7e03-4db8-b5d8-91b091361a05
a=mid:audio-0
m=video 18684 UDP/TLS/RTP/SAVPF 100
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 B1:04:70:23:73:5C:4F:6F:A2:83:A6:6F:FA:F9:1A:F7:EA:25:95:5E:30:7E:D1:B0:4A:6F:51:7E:AE:80:B1:05
a=ice-ufrag:40c92cd32badf7503b3629a80f5c00b1
a=ice-pwd:2c20546f0b1dfe2a37b411a8775ea669
a=rtpmap:100 VP8/90000
a=sendrecv
a=rtcp-mux
a=ssrc:1770317340 cname:81753af0-6820-4098-91f6-7d3511aa1716
a=msid:8146892d-2289-4826-885f-da45db11eee6 a3430a44-5e89-4a0c-916f-7270a34367be
a=rtcp-fb:* ccm fir
a=rtcp-fb:* goog-remb
a=rtcp-fb:* nack
a=extmap:1 'http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time'
a=mid:video-1
------------
SIP/2.0 200 OK
Via: SIP/2.0/WSS 192.168.8.200:8089;rport;branch=z9hG4bKPja66c8994-87a7-461f-8968-3ac6f20759bd;alias
To: <sip:12d5rl0u@192.168.8.102>;tag=0cbo31lso4
From: <sip:webrtc_client@farra-VirtualBox>;tag=13bad7f8-5b83-489d-9cc7-0dfdd34d7ca0
Call-ID: 493fe020-8cef-4d2c-a26e-2fe7cefc33dd
CSeq: 22191 INVITE
Contact: <sip:12d5rl0u@192.0.2.219;transport=wss>
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound
User-Agent: SIP.js/0.12.0
Content-Type: application/sdp
Content-Length: 1846
v=0
o=- 3783533407929329526 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio-0 video-1
a=msid-semantic: WMS vI9WLHS0dkP7SavUmIcoTu8rIfRaJegNZzh1
m=audio 63191 UDP/TLS/RTP/SAVPF 107 101
c=IN IP4 192.168.8.102
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:115579896 1 udp 2122260223 192.168.8.102 63191 typ host generation 0 network-id 1 network-cost 10
a=candidate:1214277384 1 tcp 1518280447 192.168.8.102 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=ice-ufrag:aRnn
a=ice-pwd:iivF1iPVcTTFIP/ebyETi/HU
a=ice-options:trickle
a=fingerprint:sha-256 66:77:25:1C:56:B9:D4:40:23:5C:30:2D:E0:5C:45:B2:7C:90:4A:E4:16:2E:51:7E:8C:E7:22:60:8E:A8:69:A0
a=setup:active
a=mid:audio-0
a=sendrecv
a=rtcp-mux
a=rtpmap:107 opus/48000/2
a=fmtp:107 minptime=10;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=ssrc:811479234 cname:DPqElkdqOJI26smF
a=ssrc:811479234 msid:vI9WLHS0dkP7SavUmIcoTu8rIfRaJegNZzh1 a49933a2-85ae-4dc3-9ad7-1b900e9e1dd6
a=ssrc:811479234 mslabel:vI9WLHS0dkP7SavUmIcoTu8rIfRaJegNZzh1
a=ssrc:811479234 label:a49933a2-85ae-4dc3-9ad7-1b900e9e1dd6
m=video 9 UDP/TLS/RTP/SAVPF 100
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:aRnn
a=ice-pwd:iivF1iPVcTTFIP/ebyETi/HU
a=ice-options:trickle
a=fingerprint:sha-256 66:77:25:1C:56:B9:D4:40:23:5C:30:2D:E0:5C:45:B2:7C:90:4A:E4:16:2E:51:7E:8C:E7:22:60:8E:A8:69:A0
a=setup:active
a=mid:video-1
a=extmap:1 'http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time'
a=sendrecv
a=rtcp-mux
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=ssrc:1713142496 cname:DPqElkdqOJI26smF
a=ssrc:1713142496 msid:vI9WLHS0dkP7SavUmIcoTu8rIfRaJegNZzh1 15ce6421-63f1-4d19-ab9f-79c134e58847
a=ssrc:1713142496 mslabel:vI9WLHS0dkP7SavUmIcoTu8rIfRaJegNZzh1
a=ssrc:1713142496 label:15ce6421-63f1-4d19-ab9f-79c134e58847
----- RTP DEBUG ON ----------
Got RTP packet from 192.168.8.102:63191 (type 100, seq 033790, ts 199639729, len 000985)
Sent RTP packet to 192.168.8.102:61750 (via ICE) (type 96, seq 042282, ts 199639729, len 000976)
Sent RTP packet to 192.168.8.102:61750 (via ICE) (type 96, seq 042283, ts 199639729, len 000977)
Got RTP packet from 192.168.8.102:61750 (type 111, seq 005715, ts 1639373156, len 000065)
Sent RTP packet to 192.168.8.102:63191 (via ICE) (type 107, seq 065250, ts 1639373136, len 000065)
Got RTP packet from 192.168.8.102:63191 (type 107, seq 051437, ts 55696164, len 000076)
Sent RTP packet to 192.168.8.102:61750 (via ICE) (type 111, seq 061985, ts 55696128, len 000076)
Got RTP packet from 192.168.8.102:61750 (type 111, seq 005716, ts 1639374116, len 000066)
Sent RTP packet to 192.168.8.102:63191 (via ICE) (type 107, seq 065251, ts 1639374096, len 000066)
Got RTP packet from 192.168.8.102:63191 (type 107, seq 051438, ts 55697124, len 000071)
Sent RTP packet to 192.168.8.102:61750 (via ICE) (type 111, seq 061986, ts 55697088, len 000071)
Got RTP packet from 192.168.8.102:63191 (type 100, seq 033791, ts 199642699, len 000974)
Got RTP packet from 192.168.8.102:63191 (type 100, seq 033792, ts 199642699, len 000975)
Sent RTP packet to 192.168.8.102:61750 (via ICE) (type 96, seq 042284, ts 199642699, len 000966)
Sent RTP packet to 192.168.8.102:61750 (via ICE) (type 96, seq 042285, ts 199642699, len 000967)
Got RTP packet from 192.168.8.102:61750 (type 111, seq 005717, ts 1639375076, len 000062)
Sent RTP packet to 192.168.8.102:63191 (via ICE) (type 107, seq 065252, ts 1639375056, len 000062)
Got RTP packet from 192.168.8.102:63191 (type 107, seq 051439, ts 55698084, len 000064)
Sent RTP packet to 192.168.8.102:61750 (via ICE) (type 111, seq 061987, ts 55698048, len 000064)
Got RTP packet from 192.168.8.102:61750 (type 111, seq 005718, ts 1639376036, len 000067)
Sent RTP packet to 192.168.8.102:63191 (via ICE) (type 107, seq 065253, ts 1639376016, len 000067)
Got RTP packet from 192.168.8.102:63191 (type 100, seq 033793, ts 199645759, len 001101)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment