Hi ,
First of all I would appoliogise for being not able to debug the sip flows from history to debug my issue.
I have a setup where one of the device registered as 141 is on a 4G cellular network. when my dialplan is activated I place a call to local devices and after a delay of about 6 seconds dial the 141 devices.
If I pick the call at 141 then there is two way audio but now video . Can someone help in debugging why is there no audio
Below are the logs
-- Called Local/mobilephones@default
-- Executing [mobilephones@default:1] Ringing("Local/mobilephones@default-00000000;2", "") in new stack
-- Local/mobilephones@default-00000000;1 is ringing
<--- Transmitting SIP response (473 bytes) to UDP:192.168.1.163:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.1.163:5060;rport=5060;received=192.168.1.163;branch=z9hG4bK494062518
Call-ID: 1574771622
From: "F-1-1-001" <sip:161@192.168.1.17>;tag=761291098
To: <sip:601@192.168.1.17>;tag=794e99f9-d347-4408-9d03-3b2d8606dd67
CSeq: 21 INVITE
Server: SHAULA-001(7.4.0)
Contact: <sip:192.168.1.17:5060>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Content-Length: 0
-- Executing [mobilephones@default:2] System("Local/mobilephones@default-00000000;2", "/bin/sleep 6") in new stack
-- Executing [mobilephones@default:3] Dial("Local/mobilephones@default-00000000;2", "&PJSIP/141/sip:141@188.66.182.161:60760;transport=TLS;x-ast-orig-host=10.184.189.62:46450") in new stack
-- Called PJSIP/141/sip:141@188.66.182.161:60760;transport=TLS;x-ast-orig-host=10.184.189.62:46450
<--- Transmitting SIP request (727 bytes) to TLS:188.66.182.161:60760 --->
INVITE sip:141@188.66.182.161:60760;transport=TLS SIP/2.0
Via: SIP/2.0/TLS 82.178.154.154:5061;rport;branch=z9hG4bKPjfc09c0ed-dc87-4c8a-a3a9-f5ceb2173884;alias
From: "161" <sip:Door_1@192.168.1.17>;tag=9c2c56c3-28c2-4fc6-963c-bd16a982f03d
To: <sip:141@188.66.182.161>
Contact: <sip:asterisk@82.178.154.154:5061;transport=TLS>
Call-ID: a62b55a1-4e5b-42ec-8f05-8aa4a5bbde62
CSeq: 20162 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
P-Asserted-Identity: "161" <sip:Door_1@192.168.1.17>
Max-Forwards: 70
User-Agent: SHAULA-001(7.4.0)
Content-Length: 0
<--- Received SIP response (494 bytes) from TLS:188.66.182.161:60760 --->
SIP/2.0 100 Trying
Via: SIP/2.0/TLS 82.178.154.154:5061;rport=5061;branch=z9hG4bKPjfc09c0ed-dc87-4c8a-a3a9-f5ceb2173884;alias
From: "161" <sip:Door_1@192.168.1.17>;tag=9c2c56c3-28c2-4fc6-963c-bd16a982f03d
To: <sip:141@188.66.182.161>
Call-ID: a62b55a1-4e5b-42ec-8f05-8aa4a5bbde62
CSeq: 20162 INVITE
Supported: replaces, path, eventlist
User-Agent: Grandstream Wave 1.0.3.34
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
<--- Received SIP response (595 bytes) from TLS:188.66.182.161:60760 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/TLS 82.178.154.154:5061;rport=5061;branch=z9hG4bKPjfc09c0ed-dc87-4c8a-a3a9-f5ceb2173884;alias
From: "161" <sip:Door_1@192.168.1.17>;tag=9c2c56c3-28c2-4fc6-963c-bd16a982f03d
To: <sip:141@188.66.182.161>;tag=12444390
Call-ID: a62b55a1-4e5b-42ec-8f05-8aa4a5bbde62
CSeq: 20162 INVITE
Contact: <sip:141@10.184.189.62:46450;transport=tls>
Supported: replaces, path, timer, eventlist
User-Agent: Grandstream Wave 1.0.3.34
Allow-Events: talk, hold
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
-- PJSIP/141-00000001 is ringing
-- Local/mobilephones@default-00000000;1 is ringing
<--- Received SIP response (2141 bytes) from TLS:188.66.182.161:60760 --->
SIP/2.0 200 OK
Via: SIP/2.0/TLS 82.178.154.154:5061;rport=5061;branch=z9hG4bKPjfc09c0ed-dc87-4c8a-a3a9-f5ceb2173884;alias
From: "161" <sip:Door_1@192.168.1.17>;tag=9c2c56c3-28c2-4fc6-963c-bd16a982f03d
To: <sip:141@188.66.182.161>;tag=12444390
Call-ID: a62b55a1-4e5b-42ec-8f05-8aa4a5bbde62
CSeq: 20162 INVITE
Contact: <sip:141@10.184.189.62:46450;transport=tls>
Supported: replaces, path, timer, eventlist
User-Agent: Grandstream Wave 1.0.3.34
Session-Expires: 1800;refresher=uac
Require: timer
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/sdp
Content-Length: 1489
v=0
o=141 8000 8000 IN IP4 10.184.189.62
s=SIP Call
c=IN IP4 10.184.189.62
t=0 0
m=audio 16758 RTP/SAVP 0 8 9 123 2 97 3 18 101
a=sendrecv
a=rtcp:16759 IN IP4 10.184.189.62
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap > 0x17cc610 -- Strict RTP learning after remote address set to: 10.184.189.62:16758
> 0x179ae20 -- Strict RTP learning after remote address set to: 10.184.189.62:37218
<--- Transmitting SIP request (1355 bytes) to TLS:188.66.182.161:60760 --->
ACK sip:141@188.66.182.161:60760;transport=TLS SIP/2.0
Via: SIP/2.0/TLS 82.178.154.154:5061;rport;branch=z9hG4bKPjfa7af291-22de-4131-9d68-eff9713ac66b;alias
From: "161" <sip:Door_1@192.168.1.17>;tag=9c2c56c3-28c2-4fc6-963c-bd16a982f03d
To: <sip:141@188.66.182.161>;tag=12444390
Call-ID: a62b55a1-4e5b-42ec-8f05-8aa4a5bbde62
CSeq: 20162 ACK
Max-Forwards: 70
User-Agent: SHAULA-001(7.4.0)
Content-Type: application/sdp
Content-Length: 904
v=0
o=- 8000 8002 IN IP4 82.178.154.154
s=Asterisk
c=IN IP4 82.178.154.154
t=0 0
a=msid-semantic:WMS *
m=audio 37220 RTP/SAVP 0
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 12:17:EF:77:F6:9D:57:03:42:0B:17:CD:C6:85:2E:4E:1A:E2:50:FD:04:7F:85:FA:0D:DA:9B:DB:D7:00:99:6A
a=rtpmap:0 PCMU/8000
a=ptime:20
a=maxptime:20
a=sendrecv
a=msid:38ccff69-7f29-4de0-adb8-a73746d96821 deab48f6-c433-4660-b89f-dffe394caabd
a=rtcp-fb:* transport-cc
m=video 3 -- PJSIP/141-00000001 answered Local/mobilephones@default-00000000;2
-- Local/mobilephones@default-00000000;1 answered PJSIP/161-00000000
-- Channel PJSIP/141-00000001 joined 'simple_bridge' basic-bridge <83953fc1-2842-4163-b61d-baa9a08acbfc>
-- Channel Local/mobilephones@default-00000000;2 joined 'simple_bridge' basic-bridge <83953fc1-2842-4163-b61d-baa9a08acbfc>
> 0x17f0c80 -- Strict RTP learning after remote address set to: 82.178.154.154:6000
> 0x177c310 -- Strict RTP learning after remote address set to: 82.178.154.154:6200
<--- Transmitting SIP response (992 bytes) to UDP:192.168.1.163:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.163:5060;rport=5060;received=192.168.1.163;branch=z9hG4bK494062518
Call-ID: 1574771622
From: "F-1-1-001" <sip:161@192.168.1.17>;tag=761291098
To: <sip:601@192.168.1.17>;tag=794e99f9-d347-4408-9d03-3b2d8606dd67
CSeq: 21 INVITE
Server: SHAULA-001(7.4.0)
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Contact: <sip:192.168.1.17:5060>
Supported: 100rel, timer, replaces, norefersub
P-Asserted-Identity: "141" <sip:MobileExten141@192.168.1.17>
Content-Type: application/sdp
Content-Length: 380
v=0
o=- 700760678 700760680 IN IP4 192.168.1.17
s=Asterisk
c=IN IP4 192.168.1.17
t=0 0
m=audio 33190 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
m=video 39348 RTP/AVP 102
a=rtpmap:102 H264/900 -- Channel Local/mobilephones@default-00000000;1 joined 'simple_bridge' basic-bridge <39daf2de-cfa7-4dd2-891f-673b38781f6b>
-- Channel PJSIP/161-00000000 joined 'simple_bridge' basic-bridge <39daf2de-cfa7-4dd2-891f-673b38781f6b>
<--- Received SIP request (369 bytes) from UDP:192.168.1.163:5060 --->
ACK sip:192.168.1.17:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.163:5060;rport;branch=z9hG4bK1224752597
From: "F-1-1-001" <sip:161@192.168.1.17>;tag=761291098
To: <sip:601@192.168.1.17>;tag=794e99f9-d347-4408-9d03-3b2d8606dd67
Call-ID: 1574771622
CSeq: 21 ACK
Contact: <sip:161@192.168.1.163:5060>
Max-Forwards: 70
User-Agent: DnakeVoip v1.0
Content-Length: 0
<--- Received SIP request (801 bytes) from TLS:188.66.182.161:60760 --->
INFO sip:asterisk@82.178.154.154:5061;transport=TLS SIP/2.0
Via: SIP/2.0/TLS 10.184.189.62:46450;branch=z9hG4bK1048656949;rport
From: <sip:141@188.66.182.161>;tag=12444390
To: <sip:Door_1@192.168.1.17>;tag=9c2c56c3-28c2-4fc6-963c-bd16a982f03d
Call-ID: a62b55a1-4e5b-42ec-8f05-8aa4a5bbde62
CSeq: 20163 INFO
Contact: <sip:141@10.184.189.62:46450;transport=tls>
Max-Forwards: 70
Supported: replaces, path, timer, 100rel, eventlist
User-Agent: Grandstream Wave 1.0.3.34
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/media_control+xml
Content-Length: 164
<?xml version="1.0" encoding="utf-8" ?><media_control> <vc_primitive> <to_encoder> <picture_fast_update/> </to_encoder> </vc_primitive></media_control>
<--- Transmitting SIP request (597 bytes) to UDP:192.168.1.163:5060 --->
INFO sip:161@192.168.1.163:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.17:5060;rport;branch=z9hG4bKPje04d48ca-e1e5-4d5b-9362-714af8b292be
From: <sip:601@192.168.1.17>;tag=794e99f9-d347-4408-9d03-3b2d8606dd67
To: "F-1-1-001" <sip:161@192.168.1.17>;tag=761291098
Call-ID: 1574771622
CSeq: 32672 INFO
Max-Forwards: 70
User-Agent: SHAULA-001(7.4.0)
Content-Type: application/media_control+xml
Content-Length: 178
<?xml version="1.0" encoding="utf-8" ?>
<media_control>
<vc_primitive>
<to_encoder>
<picture_fast_update/>
</to_encoder>
</vc_primitive>
</media_control>
<--- Transmitting SIP response (346 bytes) to TLS:188.66.182.161:60760 --->
SIP/2.0 200 OK
Via: SIP/2.0/TLS 10.184.189.62:46450;rport=60760;received=188.66.182.161;branch=z9hG4bK1048656949
Call-ID: a62b55a1-4e5b-42ec-8f05-8aa4a5bbde62
From: <sip:141@188.66.182.161>;tag=12444390
To: <sip:Door_1@192.168.1.17>;tag=9c2c56c3-28c2-4fc6-963c-bd16a982f03d
CSeq: 20163 INFO
Server: SHAULA-001(7.4.0)
Content-Length: 0
<--- Received SIP response (368 bytes) from UDP:192.168.1.163:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.17:5060;rport=5060;branch=z9hG4bKPje04d48ca-e1e5-4d5b-9362-714af8b292be
From: <sip:601@192.168.1.17>;tag=794e99f9-d347-4408-9d03-3b2d8606dd67
To: "F-1-1-001" <sip:161@192.168.1.17>;tag=761291098
Call-ID: 1574771622
CSeq: 32672 INFO
Contact: <sip:161@192.168.1.163:5060>
User-Agent: DnakeVoip v1.0
Content-Length: 0
> 0x177c310 -- Strict RTP qualifying stream type: video
> 0x177c310 -- Strict RTP switching source address to 192.168.1.163:6200
> Move-swap optimizing Local/mobilephones@default-00000000;2 <-- PJSIP/161-00000000.
-- Channel PJSIP/161-00000000 left 'simple_bridge' basic-bridge <39daf2de-cfa7-4dd2-891f-673b38781f6b>
-- Channel Local/mobilephones@default-00000000;2 left 'simple_bridge' basic-bridge <83953fc1-2842-4163-b61d-baa9a08acbfc>
-- Channel PJSIP/161-00000000 swapped with Local/mobilephones@default-00000000;2 into 'simple_bridge' basic-bridge <83953fc1-2842-4163-b61d-baa9a08acbfc>
-- Channel Local/mobilephones@default-00000000;1 left 'simple_bridge' basic-bridge <39daf2de-cfa7-4dd2-891f-673b38781f6b>
== Spawn extension (default, mobilephones, 3) exited non-zero on 'Local/mobilephones@default-00000000;2'
> 0x17f0c80 -- Strict RTP qualifying stream type: audio
> 0x17f0c80 -- Strict RTP switching source address to 192.168.1.163:6000
> 0x17cc610 -- Strict RTP qualifying stream type: audio
> 0x17cc610 -- Strict RTP switching source address to 188.66.182.161:60761
> 0x179ae20 -- Strict RTP qualifying stream type: video
> 0x179ae20 -- Strict RTP switching source address to 188.66.182.161:60763
> 0x17cc610 -- Strict RTP learning complete - Locking on source address 188.66.182.161:60761
> 0x177c310 -- Strict RTP learning complete - Locking on source address 192.168.1.163:6200
> 0x179ae20 -- Strict RTP learning complete - Locking on source address 188.66.182.161:60763
> 0x17f0c80 -- Strict RTP learning complete - Locking on source address 192.168.1.163:6000
<--- Received SIP request (586 bytes) from TLS:188.66.182.161:60760 --->
BYE sip:asterisk@82.178.154.154:5061;transport=TLS SIP/2.0
Via: SIP/2.0/TLS 10.184.189.62:46450;branch=z9hG4bK1621882673;rport
From: <sip:141@188.66.182.161>;tag=12444390
To: <sip:Door_1@192.168.1.17>;tag=9c2c56c3-28c2-4fc6-963c-bd16a982f03d
Call-ID: a62b55a1-4e5b-42ec-8f05-8aa4a5bbde62
CSeq: 20164 BYE
Contact: <sip:141@10.184.189.62:46450;transport=tls>
Max-Forwards: 70
Supported: replaces, path, timer, 100rel, eventlist
User-Agent: Grandstream Wave 1.0.3.34
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
<--- Transmitting SIP response (345 bytes) to TLS:188.66.182.161:60760 --->
SIP/2.0 200 OK
Via: SIP/2.0/TLS 10.184.189.62:46450;rport=60760;received=188.66.182.161;branch=z9hG4bK1621882673
Call-ID: a62b55a1-4e5b-42ec-8f05-8aa4a5bbde62
From: <sip:141@188.66.182.161>;tag=12444390
To: <sip:Door_1@192.168.1.17>;tag=9c2c56c3-28c2-4fc6-963c-bd16a982f03d
CSeq: 20164 BYE
Server: SHAULA-001(7.4.0)
Content-Length: 0
-- Channel PJSIP/141-00000001 left 'simple_bridge' basic-bridge <83953fc1-2842-4163-b61d-baa9a08acbfc>
-- Channel PJSIP/161-00000000 left 'simple_bridge' basic-bridge <83953fc1-2842-4163-b61d-baa9a08acbfc>
== Spawn extension (fullrights, 601, 3) exited non-zero on 'PJSIP/161-00000000'
<--- Transmitting SIP request (393 bytes) to UDP:192.168.1.163:5060 --->
BYE sip:161@192.168.1.163:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.17:5060;rport;branch=z9hG4bKPj15af4b81-dbb9-4610-87a2-c9e9ce619796
From: <sip:601@192.168.1.17>;tag=794e99f9-d347-4408-9d03-3b2d8606dd67
To: "F-1-1-001" <sip:161@192.168.1.17>;tag=761291098
Call-ID: 1574771622
CSeq: 32673 BYE
Reason: Q.850;cause=16
Max-Forwards: 70
User-Agent: SHAULA-001(7.4.0)
Content-Length: 0
<--- Received SIP response (328 bytes) from UDP:192.168.1.163:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.17:5060;rport=5060;branch=z9hG4bKPj15af4b81-dbb9-4610-87a2-c9e9ce619796
From: <sip:601@192.168.1.17>;tag=794e99f9-d347-4408-9d03-3b2d8606dd67
To: "F-1-1-001" <sip:161@192.168.1.17>;tag=761291098
Call-ID: 1574771622
CSeq: 32673 BYE
User-Agent: DnakeVoip v1.0
Content-Length: 0
<--- Received SIP request (300 bytes) from UDP:192.168.1.163:5060 --->
OPTIONS sip:192.168.1.17 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.163:5060;rport;branch=z9hG4bK218572494
From: <sip:161@192.168.1.17>;tag=1548433885
To: <sip:192.168.1.17>
Call-ID: 184183705
CSeq: 20 OPTIONS
Accept: application/sdp
Max-Forwards: 70
User-Agent: DnakeVoip v1.0
Content-Length: 0
<--- Transmitting SIP response (444 bytes) to UDP:192.168.1.163:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.163:5060;rport=5060;received=192.168.1.163;branch=z9hG4bK218572494
Call-ID: 184183705
From: <sip:161@192.168.1.17>;tag=1548433885
To: <sip:192.168.1.17>;tag=z9hG4bK218572494
CSeq: 20 OPTIONS
WWW-Authenticate: Digest realm="asterisk",nonce="1648471715/659906ab1182dbc347d1023d4f485e2c",opaque="060e4e84711d63b0",algorithm=md5,qop="auth"
Server: SHAULA-001(7.4.0)
Content-Length: 0
<--- Received SIP request (562 bytes) from UDP:192.168.1.163:5060 --->
OPTIONS sip:192.168.1.17 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.163:5060;rport;branch=z9hG4bK324437058
From: <sip:161@192.168.1.17>;tag=1548433885
To: <sip:192.168.1.17>
Call-ID: 184183705
CSeq: 21 OPTIONS
Authorization: Digest username="161", realm="asterisk", nonce="1648471715/659906ab1182dbc347d1023d4f485e2c", uri="sip:192.168.1.17", response="9bdf4b2b663a3aac49bca837a08c3f3c", algorithm=MD5, cnonce="0a4f113b", opaque="060e4e84711d63b0", qop=auth, nc=00000001
Accept: application/sdp
Max-Forwards: 70
User-Agent: DnakeVoip v1.0
Content-Length: 0
<--- Transmitting SIP response (773 bytes) to UDP:192.168.1.163:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.163:5060;rport=5060;received=192.168.1.163;branch=z9hG4bK324437058
Call-ID: 184183705
From: <sip:161@192.168.1.17>;tag=1548433885
To: <sip:192.168.1.17>;tag=z9hG4bK324437058
CSeq: 21 OPTIONS
Accept: application/xpidf+xml, application/cpim-pidf+xml, application/dialog-info+xml, application/simple-message-summary, application/pidf+xml, application/pidf+xml, application/dialog-info+xml, application/simple-message-summary, application/sdp, message/sipfrag;version=2.0
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Accept-Encoding: identity
Accept-Language: en
Server: SHAULA-001(7.4.0)
Content-Length: 0