Hi david,
I have tried sending call to the number using calls file and landing him in demo context. Call is sent and it seems its being answered immediately by the switch. Then dialplan executes and while demo-congrats plays for couple of seconds, BYE is received and call disconnect.
Please see the latest log below…
[May 16 20:53:42] – Attempting call on SIP/provider/0060127822792 for s@demo:1 (Retry 1)
[May 16 20:53:42] == Using SIP RTP CoS mark 5
[May 16 20:53:42] Audio is at 10648
[May 16 20:53:42] Adding codec 100003 (ulaw) to SDP
[May 16 20:53:42] Adding codec 100004 (alaw) to SDP
[May 16 20:53:42] Adding codec 100002 (gsm) to SDP
[May 16 20:53:42] Adding non-codec 0x1 (telephone-event) to SDP
[May 16 20:53:42] Reliably Transmitting (NAT) to 110.75.185.23:5060:
[May 16 20:53:42] INVITE sip:0060127822792@sip3.providervoip.com:5060 SIP/2.0
[May 16 20:53:42] Via: SIP/2.0/UDP 103.215.222.185:5261;branch=z9hG4bK637d4baf;rport
[May 16 20:53:42] Max-Forwards: 70
[May 16 20:53:42] From: “asterisk” sip:605605778@103.215.222.185:5261;tag=as773339b6
[May 16 20:53:42] To: sip:0060127822792@sip3.providervoip.com:5060
[May 16 20:53:42] Contact: sip:605605778@103.215.222.185:5261
[May 16 20:53:42] Call-ID: 041eb2785ecec39558c5600368368f24@103.215.222.185:5261
[May 16 20:53:42] CSeq: 102 INVITE
[May 16 20:53:42] User-Agent: Asterisk PBX 11.13.1~dfsg-2+deb8u1
[May 16 20:53:42] Date: Tue, 16 May 2017 12:53:42 GMT
[May 16 20:53:42] Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
[May 16 20:53:42] Supported: replaces, timer
[May 16 20:53:42] Content-Type: application/sdp
[May 16 20:53:42] Content-Length: 301
[May 16 20:53:42]
[May 16 20:53:42] v=0
[May 16 20:53:42] o=root 1791291458 1791291458 IN IP4 103.215.222.185
[May 16 20:53:42] s=Asterisk PBX 11.13.1~dfsg-2+deb8u1
[May 16 20:53:42] c=IN IP4 103.215.222.185
[May 16 20:53:42] t=0 0
[May 16 20:53:42] m=audio 10648 RTP/AVP 0 8 3 101
[May 16 20:53:42] a=rtpmap:0 PCMU/8000
[May 16 20:53:42] a=rtpmap:8 PCMA/8000
[May 16 20:53:42] a=rtpmap:3 GSM/8000
[May 16 20:53:42] a=rtpmap:101 telephone-event/8000
[May 16 20:53:42] a=fmtp:101 0-16
[May 16 20:53:42] a=ptime:20
[May 16 20:53:42] a=sendrecv
[May 16 20:53:42]
[May 16 20:53:42] —
[May 16 20:53:42]
[May 16 20:53:42] <— SIP read from UDP:110.75.185.23:5060 —>
[May 16 20:53:42] SIP/2.0 100 Giving a try
[May 16 20:53:42] Via: SIP/2.0/UDP 103.215.222.185:5261;received=103.215.222.185;branch=z9hG4bK637d4baf;rport=5261
[May 16 20:53:42] From: “asterisk” sip:605605778@103.215.222.185:5261;tag=as773339b6
[May 16 20:53:42] To: sip:0060127822792@sip3.providervoip.com:5060
[May 16 20:53:42] Call-ID: 041eb2785ecec39558c5600368368f24@103.215.222.185:5261
[May 16 20:53:42] CSeq: 102 INVITE
[May 16 20:53:42] Server: OpenSIPS (1.10.0beta-notls (x86_64/linux))
[May 16 20:53:42] Content-Length: 0
[May 16 20:53:42]
[May 16 20:53:42] <------------->
[May 16 20:53:42] — (8 headers 0 lines) —
[May 16 20:53:42]
[May 16 20:53:42] <— SIP read from UDP:110.75.185.23:5060 —>
[May 16 20:53:42] SIP/2.0 200 OK
[May 16 20:53:42] Via: SIP/2.0/UDP 103.215.222.185:5261;received=103.215.222.185;branch=z9hG4bK637d4baf;rport=5261
[May 16 20:53:42] Record-Route: sip:110.75.185.23;lr;ftag=as773339b6;did=dcc.29422d2
[May 16 20:53:42] From: “asterisk” sip:605605778@103.215.222.185:5261;tag=as773339b6
[May 16 20:53:42] To: sip:0060127822792@sip3.providervoip.com:5060;tag=as1643e4b0
[May 16 20:53:42] Call-ID: 041eb2785ecec39558c5600368368f24@103.215.222.185:5261
[May 16 20:53:42] CSeq: 102 INVITE
[May 16 20:53:42] User-Agent: SoftSwitch
[May 16 20:53:42] Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
[May 16 20:53:42] Supported: replaces
[May 16 20:53:42] Contact: sip:0060127822792@103.246.89.131
[May 16 20:53:42] Content-Type: application/sdp
[May 16 20:53:42] Content-Length: 267
[May 16 20:53:42]
[May 16 20:53:42] v=0
[May 16 20:53:42] o=root 31107 31107 IN IP4 103.246.89.131
[May 16 20:53:42] s=session
[May 16 20:53:42] c=IN IP4 103.246.89.131
[May 16 20:53:42] t=0 0
[May 16 20:53:42] m=audio 14886 RTP/AVP 0 3 101
[May 16 20:53:42] a=rtpmap:0 PCMU/8000
[May 16 20:53:42] a=rtpmap:3 GSM/8000
[May 16 20:53:42] a=rtpmap:101 telephone-event/8000
[May 16 20:53:42] a=fmtp:101 0-16
[May 16 20:53:42] a=silenceSupp:off - - - -
[May 16 20:53:42] a=ptime:20
[May 16 20:53:42] a=sendrecv
[May 16 20:53:42] <------------->
[May 16 20:53:42] — (13 headers 13 lines) —
[May 16 20:53:42] Found RTP audio format 0
[May 16 20:53:42] Found RTP audio format 3
[May 16 20:53:42] Found RTP audio format 101
[May 16 20:53:42] Found audio description format PCMU for ID 0
[May 16 20:53:42] Found audio description format GSM for ID 3
[May 16 20:53:42] Found audio description format telephone-event for ID 101
[May 16 20:53:42] Capabilities: us - (gsm|ulaw|alaw), peer - audio=(gsm|ulaw)/video=(nothing)/text=(nothing), combined - (gsm|ulaw)
[May 16 20:53:42] Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
[May 16 20:53:42] Peer audio RTP is at port 103.246.89.131:14886
[May 16 20:53:42] list_route: hop: sip:110.75.185.23;lr;ftag=as773339b6;did=dcc.29422d2
[May 16 20:53:42] set_destination: Parsing sip:110.75.185.23;lr;ftag=as773339b6;did=dcc.29422d2 for address/port to send to
[May 16 20:53:42] set_destination: set destination to 110.75.185.23:5060
[May 16 20:53:42] Transmitting (NAT) to 110.75.185.23:5060:
[May 16 20:53:42] ACK sip:0060127822792@103.246.89.131 SIP/2.0
[May 16 20:53:42] Via: SIP/2.0/UDP 103.215.222.185:5261;branch=z9hG4bK1483bc5f;rport
[May 16 20:53:42] Route: sip:110.75.185.23;lr;ftag=as773339b6;did=dcc.29422d2
[May 16 20:53:42] Max-Forwards: 70
[May 16 20:53:42] From: “asterisk” sip:605605778@103.215.222.185:5261;tag=as773339b6
[May 16 20:53:42] To: sip:0060127822792@sip3.providervoip.com:5060;tag=as1643e4b0
[May 16 20:53:42] Contact: sip:605605778@103.215.222.185:5261
[May 16 20:53:42] Call-ID: 041eb2785ecec39558c5600368368f24@103.215.222.185:5261
[May 16 20:53:42] CSeq: 102 ACK
[May 16 20:53:42] User-Agent: Asterisk PBX 11.13.1~dfsg-2+deb8u1
[May 16 20:53:42] Content-Length: 0
[May 16 20:53:42]
[May 16 20:53:42]
[May 16 20:53:42] —
[May 16 20:53:42] – Executing [s@demo:1] Wait(“SIP/provider-00000021”, “1”) in new stack
[May 16 20:53:43] – Executing [s@demo:2] Answer(“SIP/provider-00000021”, “”) in new stack
[May 16 20:53:43] – Executing [s@demo:3] Set(“SIP/provider-00000021”, “TIMEOUT(digit)=5”) in new stack
[May 16 20:53:43] – Digit timeout set to 5.000
[May 16 20:53:43] – Executing [s@demo:4] Set(“SIP/provider-00000021”, “TIMEOUT(response)=10”) in new stack
[May 16 20:53:43] – Response timeout set to 10.000
[May 16 20:53:43] – Executing [s@demo:5] BackGround(“SIP/provider-00000021”, “demo-congrats”) in new stack
[May 16 20:53:43] – <SIP/provider-00000021> Playing ‘demo-congrats.gsm’ (language ‘en’)
[May 16 20:53:44]
[May 16 20:53:44] <— SIP read from UDP:175.140.228.39:56904 —>
[May 16 20:53:44]
[May 16 20:53:44]
[May 16 20:53:44] <------------->
[May 16 20:53:45]
[May 16 20:53:45] <— SIP read from UDP:110.75.185.23:5060 —>
[May 16 20:53:45] BYE sip:605605778@103.215.222.185:5261 SIP/2.0
[May 16 20:53:45] Via: SIP/2.0/UDP 110.75.185.23:5060;branch=z9hG4bKb9b.a4cd3f35.0
[May 16 20:53:45] Via: SIP/2.0/UDP 103.246.89.131:5060;received=103.246.89.131;branch=z9hG4bK6749e57f;rport=5060
[May 16 20:53:45] From: sip:0060127822792@sip3.providervoip.com:5060;tag=as1643e4b0
[May 16 20:53:45] To: “asterisk” sip:605605778@103.215.222.185:5261;tag=as773339b6
[May 16 20:53:45] Call-ID: 041eb2785ecec39558c5600368368f24@103.215.222.185:5261
[May 16 20:53:45] CSeq: 102 BYE
[May 16 20:53:45] User-Agent: SoftSwitch
[May 16 20:53:45] Max-Forwards: 69
[May 16 20:53:45] X-Asterisk-HangupCause: Unknown
[May 16 20:53:45] X-Asterisk-HangupCauseCode: 0
[May 16 20:53:45] Content-Length: 0
[May 16 20:53:45]
[May 16 20:53:45] <------------->
[May 16 20:53:45] — (12 headers 0 lines) —
[May 16 20:53:45] Sending to 110.75.185.23:5060 (NAT)
[May 16 20:53:45] Scheduling destruction of SIP dialog ‘041eb2785ecec39558c5600368368f24@103.215.222.185:5261’ in 6400 ms (Method: BYE)
[May 16 20:53:45]
[May 16 20:53:45] <— Transmitting (NAT) to 110.75.185.23:5060 —>
[May 16 20:53:45] SIP/2.0 200 OK
[May 16 20:53:45] Via: SIP/2.0/UDP 110.75.185.23:5060;branch=z9hG4bKb9b.a4cd3f35.0;received=110.75.185.23;rport=5060
[May 16 20:53:45] Via: SIP/2.0/UDP 103.246.89.131:5060;received=103.246.89.131;branch=z9hG4bK6749e57f;rport=5060
[May 16 20:53:45] From: sip:0060127822792@sip3.providervoip.com:5060;tag=as1643e4b0
[May 16 20:53:45] To: “asterisk” sip:605605778@103.215.222.185:5261;tag=as773339b6
[May 16 20:53:45] Call-ID: 041eb2785ecec39558c5600368368f24@103.215.222.185:5261
[May 16 20:53:45] CSeq: 102 BYE
[May 16 20:53:45] Server: Asterisk PBX 11.13.1~dfsg-2+deb8u1
[May 16 20:53:45] Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
[May 16 20:53:45] Supported: replaces, timer
[May 16 20:53:45] Content-Length: 0
[May 16 20:53:45]
[May 16 20:53:45]
[May 16 20:53:45] <------------>
[May 16 20:53:45] == Spawn extension (demo, s, 5) exited non-zero on ‘SIP/provider-00000021’
[May 16 20:53:45] NOTICE[21131]: pbx_spool.c:402 attempt_thread: Call completed to SIP/provider/0060127822792
Debian-81-64b*CLI>
Thanks.