I’m using Asterisk 13 and everything works fine except WebRTC. I’m able to place calls and answer them.
But when I try to answer a call placed from my WebRTC peer, it gets disconnected immediately. 100 is my WebRTC peer and 200 is a normal soft phone.
---
-- SIP/200-00000009 answered SIP/100-00000008
Audio is at 16408
Adding codec ulaw to SDP
Adding codec alaw to SDP
Adding non-codec 0x1 (telephone-event) to SDP
<--- Reliably Transmitting (NAT) to 157.46.170.163:56499 --->
SIP/2.0 200 OK
Via: SIP/2.0/WSS d67s9mhmu8hc.invalid;branch=z9hG4bK2414880;received=157.46.170.163;rport=56499
From: <sip:100@therydcompany.in>;tag=dp7uiphikt
To: <sip:100@therydcompany.in>;tag=as569dd66b
Call-ID: fea552shleqheuenqr18
CSeq: 479 INVITE
Server: Asterisk PBX 13.35.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 90;refresher=uas
Contact: <sip:100@15.207.46.9:0;transport=ws>
Content-Type: application/sdp
Require: timer
Content-Length: 429
v=0
o=root 1788438354 1788438354 IN IP4 15.207.46.9
s=Asterisk PBX 13.35.0
c=IN IP4 15.207.46.9
t=0 0
m=audio 16408 RTP/SAVPF 0 8 126
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-16
a=maxptime:150
a=connection:new
a=setup:active
a=fingerprint:SHA-256 27:C3:2A:35:C7:2E:D4:40:64:11:CF:53:D8:C8:FD:6F:DA:88:34:E0:E0:9D:65:D0:0F:13:4A:EA:00:D3:33:E9
a=rtcp-mux
a=sendrecv
<------------>
-- Channel SIP/200-00000009 joined 'simple_bridge' basic-bridge <9eae2370-17b2-4489-9527-bd97e7c882d8>
-- Channel SIP/100-00000008 joined 'simple_bridge' basic-bridge <9eae2370-17b2-4489-9527-bd97e7c882d8>
<--- SIP read from UDP:157.46.170.163:41117 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 15.207.46.9:5060;branch=z9hG4bK21f76c8e;rport=5060
Contact: <sip:192.168.43.67:41117>
To: <sip:300@157.46.170.163:41117;transport=UDP;rinstance=8ec091c26cade62d>;tag=ff69723d
From: "asterisk" <sip:asterisk@15.207.46.9>;tag=as10f3e274
Call-ID: 61adb87446136306338aefd6389314f6@15.207.46.9:5060
CSeq: 102 OPTIONS
Accept: application/sdp, application/sdp
Accept-Language: en
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco-serviceuri
User-Agent: Z 5.4.5 rv2.10.9.0
Allow-Events: presence, kpml, talk
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
Really destroying SIP dialog '61adb87446136306338aefd6389314f6@15.207.46.9:5060' Method: OPTIONS
<--- SIP read from UDP:157.46.170.163:33230 --->
REGISTER sip:therydcompany.in;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 157.46.170.163:33230;branch=z9hG4bK-524287-1---ccdd0abde5e82bae;rport
Max-Forwards: 70
Contact: <sip:200@157.46.170.163:33230;rinstance=a60e2bc804fea608;transport=UDP>
To: <sip:200@therydcompany.in;transport=UDP>
From: <sip:200@therydcompany.in;transport=UDP>;tag=4f042453
Call-ID: SPfJXzsIMIypMLOpWxtWeA..
CSeq: 255 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
User-Agent: Zoiper rv2.10.8.4
Authorization: Digest username="200",realm="asterisk",nonce="7b5fb69a",uri="sip:therydcompany.in;transport=UDP",response="559c95be5f947b9bc0bc3b7048f56b73",algorithm=MD5
Allow-Events: presence, kpml, talk
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
Sending to 157.46.170.163:33230 (NAT)
Sending to 157.46.170.163:33230 (NAT)
<--- Transmitting (NAT) to 157.46.170.163:33230 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 157.46.170.163:33230;branch=z9hG4bK-524287-1---ccdd0abde5e82bae;received=157.46.170.163;rport=33230
From: <sip:200@therydcompany.in;transport=UDP>;tag=4f042453
To: <sip:200@therydcompany.in;transport=UDP>;tag=as313c0f5e
Call-ID: SPfJXzsIMIypMLOpWxtWeA..
CSeq: 255 REGISTER
Server: Asterisk PBX 13.35.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="4c0aa4c1"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'SPfJXzsIMIypMLOpWxtWeA..' in 32000 ms (Method: REGISTER)
<--- SIP read from WS:157.46.170.163:56499 --->
ACK sip:100@15.207.46.9:0;transport=ws SIP/2.0
Via: SIP/2.0/WSS d67s9mhmu8hc.invalid;branch=z9hG4bK2903460
Max-Forwards: 69
To: <sip:100@therydcompany.in>;tag=as569dd66b
From: <sip:100@therydcompany.in>;tag=dp7uiphikt
Call-ID: fea552shleqheuenqr18
CSeq: 479 ACK
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: outbound
User-Agent: JsSIP 3.4.2
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
<--- SIP read from WS:157.46.170.163:56499 --->
BYE sip:100@15.207.46.9:0;transport=ws SIP/2.0
Via: SIP/2.0/WSS d67s9mhmu8hc.invalid;branch=z9hG4bK2638347
Max-Forwards: 69
To: <sip:100@therydcompany.in>;tag=as569dd66b
From: <sip:100@therydcompany.in>;tag=dp7uiphikt
Call-ID: fea552shleqheuenqr18
CSeq: 480 BYE
Reason: SIP ;cause=488; text="Not Acceptable Here"
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: outbound
User-Agent: JsSIP 3.4.2
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Scheduling destruction of SIP dialog 'fea552shleqheuenqr18' in 6400 ms (Method: BYE)
<--- Transmitting (NAT) to 157.46.170.163:56499 --->
SIP/2.0 200 OK
Via: SIP/2.0/WSS d67s9mhmu8hc.invalid;branch=z9hG4bK2638347;received=157.46.170.163;rport=56499
From: <sip:100@therydcompany.in>;tag=dp7uiphikt
To: <sip:100@therydcompany.in>;tag=as569dd66b
Call-ID: fea552shleqheuenqr18
CSeq: 480 BYE
Server: Asterisk PBX 13.35.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
<------------>
-- Channel SIP/100-00000008 left 'simple_bridge' basic-bridge <9eae2370-17b2-4489-9527-bd97e7c882d8>
== Spawn extension (wrtc, 100, 3) exited non-zero on 'SIP/100-00000008'
-- Channel SIP/200-00000009 left 'simple_bridge' basic-bridge <9eae2370-17b2-4489-9527-bd97e7c882d8>
Scheduling destruction of SIP dialog '2b29c17a76a956955079bfaf369905e1@15.207.46.9:5060' in 6400 ms (Method: INVITE)
Reliably Transmitting (NAT) to 157.46.170.163:33230:
BYE sip:200@157.46.170.163:33230 SIP/2.0
Via: SIP/2.0/UDP 15.207.46.9:5060;branch=z9hG4bK498d70c2;rport
Max-Forwards: 70
From: <sip:100@15.207.46.9>;tag=as6284be95
To: <sip:200@157.46.170.163:33230;rinstance=a60e2bc804fea608;transport=UDP>;tag=3229844a
Call-ID: 2b29c17a76a956955079bfaf369905e1@15.207.46.9:5060
CSeq: 103 BYE
User-Agent: Asterisk PBX 13.35.0
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
---
Retransmitting #1 (NAT) to 157.46.170.163:33230:
BYE sip:200@157.46.170.163:33230 SIP/2.0
Via: SIP/2.0/UDP 15.207.46.9:5060;branch=z9hG4bK498d70c2;rport
Max-Forwards: 70
From: <sip:100@15.207.46.9>;tag=as6284be95
To: <sip:200@157.46.170.163:33230;rinstance=a60e2bc804fea608;transport=UDP>;tag=3229844a
Call-ID: 2b29c17a76a956955079bfaf369905e1@15.207.46.9:5060
CSeq: 103 BYE
User-Agent: Asterisk PBX 13.35.0
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
---
Retransmitting #2 (NAT) to 157.46.170.163:33230:
BYE sip:200@157.46.170.163:33230 SIP/2.0
Via: SIP/2.0/UDP 15.207.46.9:5060;branch=z9hG4bK498d70c2;rport
Max-Forwards: 70
From: <sip:100@15.207.46.9>;tag=as6284be95
To: <sip:200@157.46.170.163:33230;rinstance=a60e2bc804fea608;transport=UDP>;tag=3229844a
Call-ID: 2b29c17a76a956955079bfaf369905e1@15.207.46.9:5060
CSeq: 103 BYE
User-Agent: Asterisk PBX 13.35.0
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
---
<--- SIP read from UDP:157.46.170.163:33230 --->
REGISTER sip:therydcompany.in;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 157.46.170.163:33230;branch=z9hG4bK-524287-1---60aade204be918e6;rport
Max-Forwards: 70
Contact: <sip:200@157.46.170.163:33230;rinstance=a60e2bc804fea608;transport=UDP>
To: <sip:200@therydcompany.in;transport=UDP>
From: <sip:200@therydcompany.in;transport=UDP>;tag=4f042453
Call-ID: SPfJXzsIMIypMLOpWxtWeA..
CSeq: 256 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
User-Agent: Zoiper rv2.10.8.4
Authorization: Digest username="200",realm="asterisk",nonce="4c0aa4c1",uri="sip:therydcompany.in;transport=UDP",response="47ea8c53b75e847c285cef28ab4312d9",algorithm=MD5
Allow-Events: presence, kpml, talk
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
Sending to 157.46.170.163:33230 (NAT)
Reliably Transmitting (NAT) to 157.46.170.163:33230:
OPTIONS sip:200@157.46.170.163:33230;rinstance=a60e2bc804fea608;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 15.207.46.9:5060;branch=z9hG4bK26a51801;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@15.207.46.9>;tag=as54886910
To: <sip:200@157.46.170.163:33230;rinstance=a60e2bc804fea608;transport=UDP>
Contact: <sip:asterisk@15.207.46.9:5060>
Call-ID: 4a0869f47656453678f4f0a722100856@15.207.46.9:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.35.0
Date: Thu, 30 Jul 2020 12:30:15 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
<--- Transmitting (NAT) to 157.46.170.163:33230 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 157.46.170.163:33230;branch=z9hG4bK-524287-1---60aade204be918e6;received=157.46.170.163;rport=33230
From: <sip:200@therydcompany.in;transport=UDP>;tag=4f042453
To: <sip:200@therydcompany.in;transport=UDP>;tag=as313c0f5e
Call-ID: SPfJXzsIMIypMLOpWxtWeA..
CSeq: 256 REGISTER
Server: Asterisk PBX 13.35.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 60
Contact: <sip:200@157.46.170.163:33230;rinstance=a60e2bc804fea608;transport=UDP>;expires=60
Date: Thu, 30 Jul 2020 12:30:15 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'SPfJXzsIMIypMLOpWxtWeA..' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:157.46.170.163:33230 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 15.207.46.9:5060;branch=z9hG4bK498d70c2;rport=5060
Contact: <sip:200@157.46.170.163:33230>
To: <sip:200@157.46.170.163:33230;rinstance=a60e2bc804fea608;transport=UDP>;tag=3229844a
From: <sip:100@15.207.46.9>;tag=as6284be95
Call-ID: 2b29c17a76a956955079bfaf369905e1@15.207.46.9:5060
CSeq: 103 BYE
User-Agent: Zoiper rv2.10.8.4
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Really destroying SIP dialog '2b29c17a76a956955079bfaf369905e1@15.207.46.9:5060' Method: INVITE
<--- SIP read from UDP:157.46.170.163:33230 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 15.207.46.9:5060;branch=z9hG4bK498d70c2;rport=5060
Contact: <sip:200@157.46.170.163:33230>
To: <sip:200@157.46.170.163:33230;rinstance=a60e2bc804fea608;transport=UDP>;tag=3229844a
From: <sip:100@15.207.46.9>;tag=as6284be95
Call-ID: 2b29c17a76a956955079bfaf369905e1@15.207.46.9:5060
CSeq: 103 BYE
User-Agent: Zoiper rv2.10.8.4
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
<--- SIP read from UDP:157.46.170.163:33230 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 15.207.46.9:5060;branch=z9hG4bK498d70c2;rport=5060
Contact: <sip:200@157.46.170.163:33230>
To: <sip:200@157.46.170.163:33230;rinstance=a60e2bc804fea608;transport=UDP>;tag=3229844a
From: <sip:100@15.207.46.9>;tag=as6284be95
Call-ID: 2b29c17a76a956955079bfaf369905e1@15.207.46.9:5060
CSeq: 103 BYE
User-Agent: Zoiper rv2.10.8.4
Content-Length: 0
Also, I keep getting this error periodically.
ERROR[2795]: chan_sip.c:4294 __sip_reliable_xmit: Serious Network Trouble; __sip_xmit returns error for pkt data
Please guide.