Hi, I don’t get it. My Asterisk configuration files aren’t planned to work with STUN, TURN or NAT. Why should blockage of ICE servers impact on audio transmission?
I explicitly set ‘nat=no’, and Dialplan syntax seems ok:
sip.conf:
[general]
context=public
allowguest=yes
nat=no
transport=ws
srvlookup=yes
[abc]
type=friend
host=dynamic
secret=123
context=public
allow=all
encryption=yes
avpf=yes
icesupport=no
extensions.conf:
[general]
static=yes
writeprotect=no
clearglobalvars=no
[public]
exten => 123,1,Answer ; Answer the line
exten => 123,2,Playback(beep)
exten => 123,3,MP3Player(/home/pierri/knees.mp3)
exten => 123,4,Hangup ; Hang them up.
Last run log:
[code][Sep 6 15:46:27] VERBOSE[1854] pbx.c: == Registered custom function ‘QUEUE_WAITING_COUNT’
[Sep 6 15:46:27] VERBOSE[1854] pbx.c: == Registered custom function ‘QUEUE_MEMBER_PENALTY’
[Sep 6 15:46:27] VERBOSE[1854] loader.c: app_queue.so => (True Call Queueing)
[Sep 6 15:46:27] VERBOSE[1854] config.c: == Parsing ‘/etc/asterisk/cli_permissions.conf’: Found
[Sep 6 15:46:27] VERBOSE[1854] asterisk.c: Asterisk Ready.
[Sep 6 15:46:27] VERBOSE[1854] config.c: == Parsing ‘/etc/asterisk/cli.conf’: Found
[Sep 6 15:46:28] VERBOSE[1899] res_http_websocket.c: == WebSocket connection from ‘192.168.220.92:52291’ for protocol ‘sip’ accepted using version ‘13’
[Sep 6 15:46:28] VERBOSE[1899] chan_sip.c: – Registered SIP ‘abc’ at 192.168.220.92:52291
[Sep 6 15:46:37] VERBOSE[1858] asterisk.c: – Remote UNIX connection
[Sep 6 15:46:37] VERBOSE[1902] asterisk.c: – Remote UNIX connection disconnected
[Sep 6 15:46:56] VERBOSE[1899] chan_sip.c:
<— SIP read from WS:192.168.220.92:52291 —>
INVITE sip:123@mordor SIP/2.0
Via: SIP/2.0/WS n49g1ekmnn6e.invalid;branch=z9hG4bK6859483
Max-Forwards: 69
To: sip:123@mordor
From: “abc” sip:abc@mordor;tag=dnj5ufvbim
Call-ID: 1hcha52vcjhf1p7e0o2n
CSeq: 6376 INVITE
Contact: sip:0i41lb7q@n49g1ekmnn6e.invalid;transport=ws;ob
Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGE
Content-Type: application/sdp
Supported: path, outbound, gruu
User-Agent: JsSIP 0.3.0
Content-Length: 1616
v=0
o=- 8739426064175944428 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS bjZwoNO9c9j8mHRcNW3uN7nj733QO5jWDNiw
m=audio 32798 RTP/SAVPF 111 103 104 0 8 107 106 105 13 126
c=IN IP4 192.168.220.92
a=rtcp:32798 IN IP4 192.168.220.92
a=candidate:1387236902 1 udp 2113937151 192.168.220.92 32798 typ host generation 0
a=candidate:1387236902 2 udp 2113937151 192.168.220.92 32798 typ host generation 0
a=candidate:472675030 1 tcp 1509957375 192.168.220.92 0 typ host generation 0
a=candidate:472675030 2 tcp 1509957375 192.168.220.92 0 typ host generation 0
a=ice-ufrag:AkPB2Hq5nbOQlaJU
a=ice-pwd:3hhzAJE85fprYRJofAUgqNNq
a=ice-options:google-ice
a=fingerprint:sha-256 05:91:C6:DB:BA:5D:AA:17:E2:AE:BF:20:CB:CA:C3:9B:0A:63:73:4C:77:E1:DB:F5:B5:06:75:24:D4:67:FA:E1
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=mid:audio
a=rtcp-mux
a=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:bk5LlKThe9Frc17KBemlkO9TadIkdYqkqkLUocqO
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:huh2HSt6padWVQL/PnZWEjgGr+CP5Yykb/27hDKb
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:107 CN/48000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:3622034717 cname:h/fGmo/Z1Wwlriua
a=ssrc:3622034717 msid:bjZwoNO9c9j8mHRcNW3uN7nj733QO5jWDNiw bjZwoNO9c9j8mHRcNW3uN7nj733QO5jWDNiwa0
a=ssrc:3622034717 mslabel:bjZwoNO9c9j8mHRcNW3uN7nj733QO5jWDNiw
a=ssrc:3622034717 label:bjZwoNO9c9j8mHRcNW3uN7nj733QO5jWDNiwa0
<------------->
[Sep 6 15:46:56] VERBOSE[1899] chan_sip.c: — (13 headers 39 lines) —
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Using INVITE request as basis request - 1hcha52vcjhf1p7e0o2n
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found peer ‘abc’ for ‘abc’ from 192.168.220.92:52291
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c:
<— Reliably Transmitting (no NAT) to 192.168.220.92:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WS n49g1ekmnn6e.invalid;branch=z9hG4bK6859483;received=192.168.220.92
From: “abc” sip:abc@mordor;tag=dnj5ufvbim
To: sip:123@mordor;tag=as76d93fa0
Call-ID: 1hcha52vcjhf1p7e0o2n
CSeq: 6376 INVITE
Server: Asterisk PBX 11.5.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="2b6cb439"
Content-Length: 0
<------------>
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Scheduling destruction of SIP dialog ‘1hcha52vcjhf1p7e0o2n’ in 32000 ms (Method: INVITE)
[Sep 6 15:46:56] VERBOSE[1899] chan_sip.c:
<— SIP read from WS:192.168.220.92:52291 —>
ACK sip:123@mordor SIP/2.0
Via: SIP/2.0/WS n49g1ekmnn6e.invalid;branch=z9hG4bK6859483
To: sip:123@mordor;tag=as76d93fa0
From: “abc” sip:abc@mordor;tag=dnj5ufvbim
Call-ID: 1hcha52vcjhf1p7e0o2n
CSeq: 6376 ACK
<------------->
[Sep 6 15:46:56] VERBOSE[1899] chan_sip.c: — (6 headers 0 lines) —
[Sep 6 15:46:56] VERBOSE[1899] chan_sip.c:
<— SIP read from WS:192.168.220.92:52291 —>
INVITE sip:123@mordor SIP/2.0
Via: SIP/2.0/WS n49g1ekmnn6e.invalid;branch=z9hG4bK7660857
Max-Forwards: 69
To: sip:123@mordor
From: “abc” sip:abc@mordor;tag=dnj5ufvbim
Call-ID: 1hcha52vcjhf1p7e0o2n
CSeq: 6377 INVITE
Authorization: Digest algorithm=MD5, username=“abc”, realm=“asterisk”, nonce=“2b6cb439”, uri=“sip:123@mordor”, response="f2ab463dc22c8f3072fdc7417ca75cb4"
Contact: sip:0i41lb7q@n49g1ekmnn6e.invalid;transport=ws;ob
Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGE
Content-Type: application/sdp
Supported: path, outbound, gruu
User-Agent: JsSIP 0.3.0
Content-Length: 1616
v=0
o=- 8739426064175944428 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS bjZwoNO9c9j8mHRcNW3uN7nj733QO5jWDNiw
m=audio 32798 RTP/SAVPF 111 103 104 0 8 107 106 105 13 126
c=IN IP4 192.168.220.92
a=rtcp:32798 IN IP4 192.168.220.92
a=candidate:1387236902 1 udp 2113937151 192.168.220.92 32798 typ host generation 0
a=candidate:1387236902 2 udp 2113937151 192.168.220.92 32798 typ host generation 0
a=candidate:472675030 1 tcp 1509957375 192.168.220.92 0 typ host generation 0
a=candidate:472675030 2 tcp 1509957375 192.168.220.92 0 typ host generation 0
a=ice-ufrag:AkPB2Hq5nbOQlaJU
a=ice-pwd:3hhzAJE85fprYRJofAUgqNNq
a=ice-options:google-ice
a=fingerprint:sha-256 05:91:C6:DB:BA:5D:AA:17:E2:AE:BF:20:CB:CA:C3:9B:0A:63:73:4C:77:E1:DB:F5:B5:06:75:24:D4:67:FA:E1
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=mid:audio
a=rtcp-mux
a=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:bk5LlKThe9Frc17KBemlkO9TadIkdYqkqkLUocqO
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:huh2HSt6padWVQL/PnZWEjgGr+CP5Yykb/27hDKb
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:107 CN/48000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:3622034717 cname:h/fGmo/Z1Wwlriua
a=ssrc:3622034717 msid:bjZwoNO9c9j8mHRcNW3uN7nj733QO5jWDNiw bjZwoNO9c9j8mHRcNW3uN7nj733QO5jWDNiwa0
a=ssrc:3622034717 mslabel:bjZwoNO9c9j8mHRcNW3uN7nj733QO5jWDNiw
a=ssrc:3622034717 label:bjZwoNO9c9j8mHRcNW3uN7nj733QO5jWDNiwa0
<------------->
[Sep 6 15:46:56] VERBOSE[1899] chan_sip.c: — (14 headers 39 lines) —
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Using INVITE request as basis request - 1hcha52vcjhf1p7e0o2n
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found peer ‘abc’ for ‘abc’ from 192.168.220.92:52291
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] netsock2.c: == Using SIP RTP CoS mark 5
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found RTP audio format 111
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found RTP audio format 103
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found RTP audio format 104
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found RTP audio format 0
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found RTP audio format 8
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found RTP audio format 107
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found RTP audio format 106
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found RTP audio format 105
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found RTP audio format 13
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found RTP audio format 126
[Sep 6 15:46:56] DEBUG[1899][C-00000000] sip/sdp_crypto.c: Accepting crypto tag 0
[Sep 6 15:46:56] DEBUG[1899][C-00000000] sip/sdp_crypto.c: Crypto line: a=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:kE9i++03djnEQFWij5UO4/BlWap6Qrb3MAhDWgJ9
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found unknown media description format opus for ID 111
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found unknown media description format ISAC for ID 103
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found unknown media description format ISAC for ID 104
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found audio description format PCMU for ID 0
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found audio description format PCMA for ID 8
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found unknown media description format CN for ID 107
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found unknown media description format CN for ID 106
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found unknown media description format CN for ID 105
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found audio description format CN for ID 13
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Found audio description format telephone-event for ID 126
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Capabilities: us - (g723|gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g729|speex|speex16|ilbc|g726aal2|g722|slin16|jpeg|png|h261|h263|h263p|h264|mpeg4|red|t140|siren7|siren14|testlaw|g719|speex32|slin12|slin24|slin32|slin44|slin48|slin96|slin192|silk8|silk12|silk16|silk24), peer - audio=(ulaw|alaw)/video=(nothing)/text=(nothing), combined - (ulaw|alaw)
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x3 (telephone-event|CN|), combined - 0x1 (telephone-event|)
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Peer audio RTP is at port 192.168.220.92:32798
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: Looking for 123 in public (domain mordor)
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c: list_route: hop: sip:0i41lb7q@n49g1ekmnn6e.invalid;transport=ws;ob
[Sep 6 15:46:56] VERBOSE[1899][C-00000000] chan_sip.c:
<— Transmitting (no NAT) to 192.168.220.92:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/WS n49g1ekmnn6e.invalid;branch=z9hG4bK7660857;received=192.168.220.92
From: “abc” sip:abc@mordor;tag=dnj5ufvbim
To: sip:123@mordor
Call-ID: 1hcha52vcjhf1p7e0o2n
CSeq: 6377 INVITE
Server: Asterisk PBX 11.5.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: sip:123@192.168.220.69:5060;transport=WS
Content-Length: 0
<------------>
[Sep 6 15:46:56] VERBOSE[1904][C-00000000] pbx.c: – Executing [123@public:1] Answer(“SIP/abc-00000000”, “”) in new stack
[Sep 6 15:46:56] VERBOSE[1904][C-00000000] chan_sip.c: Audio is at 11476
[Sep 6 15:46:56] DEBUG[1904][C-00000000] sip/sdp_crypto.c: Crypto line: a=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:kE9i++03djnEQFWij5UO4/BlWap6Qrb3MAhDWgJ9
[Sep 6 15:46:56] VERBOSE[1904][C-00000000] chan_sip.c: Adding codec 100003 (ulaw) to SDP
[Sep 6 15:46:56] VERBOSE[1904][C-00000000] chan_sip.c: Adding codec 100003 (ulaw) to SDP
[Sep 6 15:46:56] VERBOSE[1904][C-00000000] chan_sip.c: Adding codec 100004 (alaw) to SDP
[Sep 6 15:46:56] VERBOSE[1904][C-00000000] chan_sip.c: Adding codec 100004 (alaw) to SDP
[Sep 6 15:46:56] VERBOSE[1904][C-00000000] chan_sip.c: Adding non-codec 0x1 (telephone-event) to SDP
[Sep 6 15:46:56] VERBOSE[1904][C-00000000] chan_sip.c:
<— Reliably Transmitting (no NAT) to 192.168.220.92:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/WS n49g1ekmnn6e.invalid;branch=z9hG4bK7660857;received=192.168.220.92
From: “abc” sip:abc@mordor;tag=dnj5ufvbim
To: sip:123@mordor;tag=as594058a1
Call-ID: 1hcha52vcjhf1p7e0o2n
CSeq: 6377 INVITE
Server: Asterisk PBX 11.5.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: sip:123@192.168.220.69:5060;transport=WS
Content-Type: application/sdp
Content-Length: 393
v=0
o=root 21988095 21988095 IN IP4 192.168.220.69
s=Asterisk PBX 11.5.1
c=IN IP4 192.168.220.69
t=0 0
m=audio 11476 RTP/SAVPF 0 0 8 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
a=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:kE9i++03djnEQFWij5UO4/BlWap6Qrb3MAhDWgJ9
<------------>
[Sep 6 15:46:56] VERBOSE[1899] chan_sip.c:
<— SIP read from WS:192.168.220.92:52291 —>
ACK sip:123@192.168.220.69:5060;transport=ws SIP/2.0
Via: SIP/2.0/WS n49g1ekmnn6e.invalid;branch=z9hG4bK6814754
Max-Forwards: 69
To: sip:123@mordor;tag=as594058a1
From: “abc” sip:abc@mordor;tag=dnj5ufvbim
Call-ID: 1hcha52vcjhf1p7e0o2n
CSeq: 6377 ACK
Supported: path, outbound, gruu
User-Agent: JsSIP 0.3.0
Content-Length: 0
<------------->
[Sep 6 15:46:56] VERBOSE[1899] chan_sip.c: — (10 headers 0 lines) —
[Sep 6 15:46:56] VERBOSE[1904][C-00000000] pbx.c: – Executing [123@public:2] Playback(“SIP/abc-00000000”, “beep”) in new stack
[Sep 6 15:46:56] VERBOSE[1904][C-00000000] file.c: – <SIP/abc-00000000> Playing ‘beep.gsm’ (language ‘en’)
[Sep 6 15:46:57] VERBOSE[1904][C-00000000] pbx.c: – Executing [123@public:3] MP3Player(“SIP/abc-00000000”, “/home/pierri/knees.mp3”) in new stack
[Sep 6 15:47:00] VERBOSE[1872] chan_sip.c: Really destroying SIP dialog ‘4visbn478u3fphnmhql3m5’ Method: REGISTER
[/code]