*13.4-SIP- no early media even after 183 Session Progress

General discussions about Asterisk.

Moderators: Moderator, Support

*13.4-SIP- no early media even after 183 Session Progress

Postby usmanbaiga » Mon Aug 24, 2015 3:31 pm

Hello,

RTP does not flows-out after I get Progress on the channel, but as soon as the channel is answered RTP starts flowing-out.

I have "Asterisk 13.4.0" and I am trying to playback a prompt without answering the call, but unable to achieve that.

Code: Select all
[default]
exten => 99966,1,Goto(noanswer_demo,s,1)

[noanswer_demo]
exten => s,1,Progress()
exten => s,n,Monitor(wav,testCall-${STRFTIME(${EPOCH},GMT+3,%C%y%m%d%H%M)})
exten => s,n,Background(hello-world, n) ; ----> 1
exten => s,n,WaitExten(1)
exten => s,n(cont),Playback(hello-world, noanswer) ; ----> 2
exten => s,n,Wait(1)
exten => s,n,Playback(hello-world) ; ----> 3
exten => s,n,Playback(demo-instruct)
exten => s,n,Playback(hello-world)
exten => s,n,Playback(demo-instruct)
exten => s,n,Hangup()


NOTE: the recorded file (testCall-201508241206.wav in this case) has all the prompts in it (starting from 1,2,3 ...)
BUT called-party only hears from 3 onward, after call get answered.

here are the logs of verbose, SIP debug and RTP debug
Code: Select all

usman@my-PBX01:~$ sudo asterisk -r
Asterisk 13.4.0, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 13.4.0 currently running on my-PBX01 (pid = 13817)


<--- SIP read from UDP:far_end_ip:5060 --->
INVITE tel:99966;phone-context=unknown SIP/2.0
Content-Length:1060
From:<tel:+96597834852>;tag=CWCA8fBX1Y6h8902
To:<tel:99966;phone-context=unknown>
Via:SIP/2.0/UDP far_end_domain:5060;branch=z9hG4bKYDZcf.ZZ307DDajg
Call-ID:712DFF13385DB12F5FD6136D@6443ffffffff
CSeq:1 INVITE
Max-Forwards:70
Route:<sip:my_ast_ip:5060;lr>
Record-Route:<sip:AAQAAZK5DAAAvAAAAvQAAfHoK@far_end_ip:5060;lr>
Request-Disposition:no-fork
P-Asserted-Identity:<sip:+96597834852@kw.zain.com;user=phone>,<tel:+96597834852>
Session-Expires:1800;refresher=uac
Contact:sip:far_end_ip:5060
Supported:100rel,timer
Allow:ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,UPDATE
P-Charging-Vector:icid-value=aZWWkCSMvZAYAAAAEKDMBWRD3BA-;icid-generated-at=far_end_ip;orig-ioi=kw.zain.com
P-Early-Media:supported
Content-Type:multipart/mixed;boundary=A0383941CB9FEB5DB7944D9B
MIME-Version:1.0

--A0383941CB9FEB5DB7944D9B
Content-Type:application/sdp
Content-Disposition:session;handling=required

v=0
o=- 0 0 IN IP4 far_end_owner_ip
s=-
c=IN IP4 far_end_media_plan_ip
t=0 0
m=audio 8682 RTP/AVP 96 97 98 99 100 101 102 8 103
b=AS:80
a=rtpmap:96 AMR/8000
a=fmtp:96 mode-set=0,2,4,7; mode-change-period=2; mode-change-neighbor=1; max-red=0
a=rtpmap:97 AMR/8000
a=fmtp:97 mode-set=7; max-red=0
a=rtpmap:98 AMR/8000
a=fmtp:98 mode-set=0,2; mode-change-period=2; mode-change-neighbor=1; max-red=0
a=rtpmap:99 AMR/8000
a=fmtp:99 mode-set=4; max-red=0
a=rtpmap:100 AMR/8000
a=fmtp:100 mode-set=2; max-red=0
a=rtpmap:101 AMR/8000
a=fmtp:101 mode-set=0; max-red=0
a=rtpmap:102 GSM-EFR/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:103 telephone-event/8000
a=ptime:20
a=maxptime:20
a=3gOoBTC

--A0383941CB9FEB5DB7944D9B
Content-Type:application/ISUP;base=itu-t92+;version=itu-t92+
Content-Disposition:signal;handling=required
Content-Transfer-Encoding:binary

 
<------------->
--- (20 headers 36 lines) ---
Sending to far_end_ip:5060 (no NAT)
Sending to far_end_ip:5060 (no NAT)
Using INVITE request as basis request - 712DFF13385DB12F5FD6136D@6443ffffffff
No matching peer for '+96597834852' from 'far_end_ip:5060'
  == Using SIP RTP CoS mark 5
Looking for 99966 in default (domain )
sip_route_dump: route/path hop: <sip:AAQAAZK5DAAAvAAAAvQAAfHoK@far_end_ip:5060;lr>

<--- Transmitting (no NAT) to far_end_ip:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP far_end_domain:5060;branch=z9hG4bKYDZcf.ZZ307DDajg;received=far_end_ip
Record-Route: <sip:AAQAAZK5DAAAvAAAAvQAAfHoK@far_end_ip:5060;lr>
From: <tel:+96597834852>;tag=CWCA8fBX1Y6h8902
To: <tel:99966;phone-context=unknown>
Call-ID: 712DFF13385DB12F5FD6136D@6443ffffffff
CSeq: 1 INVITE
Server: RVT_DN_PBX_01
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: <sip:99966@my_ast_ip:5060>
Content-Length: 0


<------------>
    -- Executing [99966@default:1] GotoIf("SIP/+96597834852-00000000", "0?dblookup") in new stack
    -- Executing [99966@default:2] Goto("SIP/+96597834852-00000000", "noanswer_demo,s,1") in new stack
    -- Goto (noanswer_demo,s,1)
    -- Executing [s@noanswer_demo:1] Progress("SIP/+96597834852-00000000", "") in new stack
Audio is at 11646
Adding codec alaw to SDP
Adding codec ulaw to SDP
Adding codec gsm to SDP

<--- Transmitting (no NAT) to far_end_ip:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP far_end_domain:5060;branch=z9hG4bKYDZcf.ZZ307DDajg;received=far_end_ip
Record-Route: <sip:AAQAAZK5DAAAvAAAAvQAAfHoK@far_end_ip:5060;lr>
From: <tel:+96597834852>;tag=CWCA8fBX1Y6h8902
To: <tel:99966;phone-context=unknown>;tag=as2dfd8460
Call-ID: 712DFF13385DB12F5FD6136D@6443ffffffff
CSeq: 1 INVITE
Server: RVT_DN_PBX_01
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: <sip:99966@my_ast_ip:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 230

v=0
o=DN01 1371445892 1371445892 IN IP4 my_media_plan_ip
s=DNIVR01
c=IN IP4 my_media_plan_ip
t=0 0
m=audio 11646 RTP/AVP 8 0 3
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=ptime:20
a=maxptime:150
a=sendrecv

<------------>
    -- Executing [s@noanswer_demo:2] Monitor("SIP/+96597834852-00000000", "wav,testCall-201508241206") in new stack
    -- Executing [s@noanswer_demo:3] BackGround("SIP/+96597834852-00000000", "hello-world, n") in new stack
    -- <SIP/+96597834852-00000000> Playing 'hello-world.gsm' (language 'en')
    -- Executing [s@noanswer_demo:4] WaitExten("SIP/+96597834852-00000000", "1") in new stack
    -- Timeout on SIP/+96597834852-00000000, continuing...
    -- Executing [s@noanswer_demo:5] Playback("SIP/+96597834852-00000000", "hello-world, noanswer") in new stack
    -- <SIP/+96597834852-00000000> Playing 'hello-world.gsm' (language 'en')
    -- Executing [s@noanswer_demo:6] Wait("SIP/+96597834852-00000000", "1") in new stack
    -- Executing [s@noanswer_demo:7] Playback("SIP/+96597834852-00000000", "hello-world") in new stack
Audio is at 11646
Adding codec alaw to SDP
Adding codec ulaw to SDP
Adding codec gsm to SDP

<--- Reliably Transmitting (no NAT) to far_end_ip:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP far_end_domain:5060;branch=z9hG4bKYDZcf.ZZ307DDajg;received=far_end_ip
Record-Route: <sip:AAQAAZK5DAAAvAAAAvQAAfHoK@far_end_ip:5060;lr>
From: <tel:+96597834852>;tag=CWCA8fBX1Y6h8902
To: <tel:99966;phone-context=unknown>;tag=as2dfd8460
Call-ID: 712DFF13385DB12F5FD6136D@6443ffffffff
CSeq: 1 INVITE
Server: RVT_DN_PBX_01
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: <sip:99966@my_ast_ip:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 230

v=0
o=DN01 1371445892 1371445892 IN IP4 my_media_plan_ip
s=DNIVR01
c=IN IP4 my_media_plan_ip
t=0 0
m=audio 11646 RTP/AVP 8 0 3
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=ptime:20
a=maxptime:150
a=sendrecv

<------------>

<--- SIP read from UDP:far_end_ip:5060 --->
ACK sip:99966@my_ast_ip:5060 SIP/2.0
Content-Length:0
From:<tel:+96597834852>;tag=CWCA8fBX1Y6h8902
To:<tel:99966;phone-context=unknown>;tag=as2dfd8460
Via:SIP/2.0/UDP far_end_domain:5060;branch=z9hG4bK_d23V1VhgXa76_Y1
Call-ID:712DFF13385DB12F5FD6136D@6443ffffffff
CSeq:1 ACK
Max-Forwards:70
Request-Disposition:no-fork

<------------->
--- (9 headers 0 lines) ---

<--- SIP read from UDP:far_end_ip:5060 --->
INVITE sip:99966@my_ast_ip:5060 SIP/2.0
Content-Length:149
From:<tel:+96597834852>;tag=CWCA8fBX1Y6h8902
To:<tel:99966;phone-context=unknown>;tag=as2dfd8460
Via:SIP/2.0/UDP far_end_domain:5060;branch=z9hG4bKYXiWaj0BXZ.U4ece
Call-ID:712DFF13385DB12F5FD6136D@6443ffffffff
CSeq:2 INVITE
Max-Forwards:70
Record-Route:<sip:AAQAAZK5DAAAvAAAAvQAAfHoK@far_end_ip:5060;lr>
Request-Disposition:no-fork
Session-Expires:1800;refresher=uac
Contact:sip:far_end_ip:5060
Supported:timer
Allow:ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,UPDATE
P-Charging-Vector:icid-value=aZWWkCSMvZAYAAAAEKDMBWRD3BA-;icid-generated-at=far_end_ip;orig-ioi=kw.zain.com
Content-Type:application/sdp
Content-Disposition:session;handling=required

v=0
o=- 0 1 IN IP4 far_end_owner_ip
s=-
c=IN IP4 far_end_media_plan_ip
t=0 0
m=audio 8682 RTP/AVP 8
b=AS:80
a=rtpmap:8 PCMA/8000
a=ptime:20
a=maxptime:20
<------------->
--- (17 headers 10 lines) ---
Sending to far_end_ip:5060 (no NAT)
Found RTP audio format 8
Found audio description format PCMA for ID 8
Capabilities: us - (alaw|ulaw|gsm), peer - audio=(alaw)/video=(nothing)/text=(nothing), combined - (alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x0 (nothing), combined - 0x0 (nothing)
Peer audio RTP is at port far_end_media_plan_ip:8682

<--- Transmitting (no NAT) to far_end_ip:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP far_end_domain:5060;branch=z9hG4bKYXiWaj0BXZ.U4ece;received=far_end_ip
Record-Route: <sip:AAQAAZK5DAAAvAAAAvQAAfHoK@far_end_ip:5060;lr>
From: <tel:+96597834852>;tag=CWCA8fBX1Y6h8902
To: <tel:99966;phone-context=unknown>;tag=as2dfd8460
Call-ID: 712DFF13385DB12F5FD6136D@6443ffffffff
CSeq: 2 INVITE
Server: RVT_DN_PBX_01
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: <sip:99966@my_ast_ip:5060>
Content-Length: 0


<------------>
Audio is at 11646
Adding codec alaw to SDP
Adding codec ulaw to SDP
Adding codec gsm to SDP

<--- Reliably Transmitting (no NAT) to far_end_ip:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP far_end_domain:5060;branch=z9hG4bKYXiWaj0BXZ.U4ece;received=far_end_ip
Record-Route: <sip:AAQAAZK5DAAAvAAAAvQAAfHoK@far_end_ip:5060;lr>
From: <tel:+96597834852>;tag=CWCA8fBX1Y6h8902
To: <tel:99966;phone-context=unknown>;tag=as2dfd8460
Call-ID: 712DFF13385DB12F5FD6136D@6443ffffffff
CSeq: 2 INVITE
Server: RVT_DN_PBX_01
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: <sip:99966@my_ast_ip:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 230

v=0
o=DN01 1371445892 1371445893 IN IP4 my_media_plan_ip
s=DNIVR01
c=IN IP4 my_media_plan_ip
t=0 0
m=audio 11646 RTP/AVP 8 0 3
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=ptime:20
a=maxptime:150
a=sendrecv

<------------>

<--- SIP read from UDP:far_end_ip:5060 --->
ACK sip:99966@my_ast_ip:5060 SIP/2.0
Content-Length:0
From:<tel:+96597834852>;tag=CWCA8fBX1Y6h8902
To:<tel:99966;phone-context=unknown>;tag=as2dfd8460
Via:SIP/2.0/UDP far_end_domain:5060;branch=z9hG4bKDjYjgYb294DY8YB.
Call-ID:712DFF13385DB12F5FD6136D@6443ffffffff
CSeq:2 ACK
Max-Forwards:70
Request-Disposition:no-fork

<------------->
--- (9 headers 0 lines) ---
       > 0x7f31c4007bb0 -- Probation passed - setting RTP source address to far_end_media_plan_ip:8682
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000002, ts 041760, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023664, ts 000160, len 000160)
    -- <SIP/+96597834852-00000000> Playing 'hello-world.gsm' (language 'en')
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000003, ts 041920, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023665, ts 000320, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000004, ts 042080, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023666, ts 000480, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000005, ts 042240, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023667, ts 000640, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000006, ts 042400, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023668, ts 000800, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000007, ts 042560, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023669, ts 000960, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000008, ts 042720, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023670, ts 001120, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000009, ts 042880, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023671, ts 001280, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000010, ts 043040, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023672, ts 001440, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000011, ts 043200, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023673, ts 001600, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000012, ts 043360, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023674, ts 001760, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000013, ts 043520, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023675, ts 001920, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000014, ts 043680, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023676, ts 002080, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000015, ts 043840, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023677, ts 002240, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000016, ts 044000, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023678, ts 002400, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000017, ts 044160, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023679, ts 002560, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000018, ts 044320, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023680, ts 002720, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000019, ts 044480, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023681, ts 002880, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000020, ts 044640, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023682, ts 003040, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000021, ts 044800, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023683, ts 003200, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000022, ts 044960, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023684, ts 003360, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000023, ts 045120, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023685, ts 003520, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000024, ts 045280, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023686, ts 003680, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000025, ts 045440, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023687, ts 003840, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000026, ts 045600, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023688, ts 004000, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000027, ts 045760, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023689, ts 004160, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000028, ts 045920, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023690, ts 004320, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000029, ts 046080, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023691, ts 004480, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000030, ts 046240, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023692, ts 004640, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000031, ts 046400, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023693, ts 004800, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000032, ts 046560, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023694, ts 004960, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000033, ts 046720, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023695, ts 005120, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000034, ts 046880, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023696, ts 005280, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000035, ts 047040, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023697, ts 005440, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000036, ts 047200, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023698, ts 005600, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000037, ts 047360, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023699, ts 005760, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000038, ts 047520, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023700, ts 005920, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000039, ts 047680, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023701, ts 006080, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000040, ts 047840, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023702, ts 006240, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000041, ts 048000, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023703, ts 006400, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000042, ts 048160, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023704, ts 006560, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000043, ts 048320, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023705, ts 006720, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000044, ts 048480, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023706, ts 006880, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000045, ts 048640, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023707, ts 007040, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000046, ts 048800, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023708, ts 007200, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000047, ts 048960, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023709, ts 007360, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000048, ts 049120, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023710, ts 007520, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000049, ts 049280, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023711, ts 007680, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000050, ts 049440, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023712, ts 007840, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000051, ts 049600, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023713, ts 008000, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000052, ts 049760, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023714, ts 008160, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000053, ts 049920, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023715, ts 008320, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000054, ts 050080, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023716, ts 008480, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000055, ts 050240, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023717, ts 008640, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000056, ts 050400, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023718, ts 008800, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000057, ts 050560, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023719, ts 008960, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000058, ts 050720, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023720, ts 009120, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000059, ts 050880, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023721, ts 009280, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000060, ts 051040, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023722, ts 009440, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000061, ts 051200, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023723, ts 009600, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000062, ts 051360, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023724, ts 009760, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000063, ts 051520, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023725, ts 009920, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000064, ts 051680, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023726, ts 010080, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000065, ts 051840, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023727, ts 010240, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000066, ts 052000, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023728, ts 010400, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000067, ts 052160, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023729, ts 010560, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000068, ts 052320, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023730, ts 010720, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000069, ts 052480, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023731, ts 010880, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000070, ts 052640, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023732, ts 011040, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000071, ts 052800, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023733, ts 011200, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000072, ts 052960, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023734, ts 011360, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000073, ts 053120, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023735, ts 011520, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000074, ts 053280, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023736, ts 011680, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000075, ts 053440, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023737, ts 011840, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000076, ts 053600, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023738, ts 012000, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000077, ts 053760, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023739, ts 012160, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000078, ts 053920, len 000160)
    -- Executing [s@noanswer_demo:8] Playback("SIP/+96597834852-00000000", "demo-instruct") in new stack
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023740, ts 012320, len 000160)
    -- <SIP/+96597834852-00000000> Playing 'demo-instruct.gsm' (language 'en')
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000079, ts 054080, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023741, ts 012480, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000080, ts 054240, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023742, ts 012640, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000081, ts 054400, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023743, ts 012800, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000082, ts 054560, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023744, ts 012960, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000083, ts 054720, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023745, ts 013120, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000084, ts 054880, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023746, ts 013280, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000085, ts 055040, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023747, ts 013440, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000086, ts 055200, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023748, ts 013600, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000087, ts 055360, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023749, ts 013760, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000088, ts 055520, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023750, ts 013920, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000089, ts 055680, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023751, ts 014080, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000090, ts 055840, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023752, ts 014240, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000091, ts 056000, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023753, ts 014400, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000092, ts 056160, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023754, ts 014560, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000093, ts 056320, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023755, ts 014720, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000094, ts 056480, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023756, ts 014880, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000095, ts 056640, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023757, ts 015040, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000096, ts 056800, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023758, ts 015200, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000097, ts 056960, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023759, ts 015360, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000098, ts 057120, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023760, ts 015520, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000099, ts 057280, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023761, ts 015680, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000100, ts 057440, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023762, ts 015840, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000101, ts 057600, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023763, ts 016000, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000102, ts 057760, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023764, ts 016160, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000103, ts 057920, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023765, ts 016320, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000104, ts 058080, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023766, ts 016480, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000105, ts 058240, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023767, ts 016640, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000106, ts 058400, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023768, ts 016800, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000107, ts 058560, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023769, ts 016960, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000108, ts 058720, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023770, ts 017120, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000109, ts 058880, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023771, ts 017280, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000110, ts 059040, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023772, ts 017440, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000111, ts 059200, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023773, ts 017600, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000112, ts 059360, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023774, ts 017760, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000113, ts 059520, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023775, ts 017920, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000114, ts 059680, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023776, ts 018080, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000115, ts 059840, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023777, ts 018240, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000116, ts 060000, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023778, ts 018400, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000117, ts 060160, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023779, ts 018560, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000118, ts 060320, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023780, ts 018720, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000119, ts 060480, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023781, ts 018880, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000120, ts 060640, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023782, ts 019040, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000121, ts 060800, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023783, ts 019200, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000122, ts 060960, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023784, ts 019360, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000123, ts 061120, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023785, ts 019520, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000124, ts 061280, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023786, ts 019680, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000125, ts 061440, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023787, ts 019840, len 000160)
Got  RTP packet from    far_end_media_plan_ip:8682 (type 08, seq 000126, ts 061600, len 000160)
Sent RTP packet to      far_end_media_plan_ip:8682 (type 08, seq 023788, ts 020000, len 000160)

<--- SIP read from UDP:far_end_ip:5060 --->
BYE sip:99966@my_ast_ip:5060 SIP/2.0
Content-Length:6
From:<tel:+96597834852>;tag=CWCA8fBX1Y6h8902
To:<tel:99966;phone-context=unknown>;tag=as2dfd8460
Via:SIP/2.0/UDP far_end_domain:5060;branch=z9hG4bK0B5B02_.W5fZYi.6
Call-ID:712DFF13385DB12F5FD6136D@6443ffffffff
CSeq:3 BYE
Max-Forwards:70
Request-Disposition:no-fork
Supported:timer
Reason:X.int ;reasoncode=0x00000000;add-info=0132.0001.0B2E
Reason:Q.850 ;cause=16
Content-Type:application/ISUP;base=itu-t92+;version=itu-t92+
Content-Disposition:signal;handling=required
Content-Transfer-Encoding:binary



<------------->
--- (15 headers 1 lines) ---
Sending to far_end_ip:5060 (no NAT)
Scheduling destruction of SIP dialog '712DFF13385DB12F5FD6136D@6443ffffffff' in 32000 ms (Method: BYE)

<--- Transmitting (no NAT) to far_end_ip:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP far_end_domain:5060;branch=z9hG4bK0B5B02_.W5fZYi.6;received=far_end_ip
From: <tel:+96597834852>;tag=CWCA8fBX1Y6h8902
To: <tel:99966;phone-context=unknown>;tag=as2dfd8460
Call-ID: 712DFF13385DB12F5FD6136D@6443ffffffff
CSeq: 3 BYE
Server: RVT_DN_PBX_01
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


<------------>
    -- Executing [h@noanswer_demo:1] Goto("SIP/+96597834852-00000000", "obd_example_hangup,1") in new stack
    -- Goto (noanswer_demo,obd_example_hangup,1)
Really destroying SIP dialog '712DFF13385DB12F5FD6136D@6443ffffffff' Method: BYE


any clue what I am doing wrong here ?

Modification 2015-08-25:
I am receiving SIPI messages and ignoring the ISUP part
Last edited by usmanbaiga on Thu Aug 27, 2015 6:12 am, edited 1 time in total.
usmanbaiga
Newsterisk
 
Posts: 9
Joined: Mon Aug 24, 2015 7:34 am

Re: *13.4-SIP- no early media even after 183 Session Progress

Postby usmanbaiga » Tue Aug 25, 2015 9:21 am

chan_sip.c --> sip_write() --> case AST_FRAME_VOICE:

i have added following lines to debug

Code: Select all
                if (p) {
                        sip_pvt_lock(p);
                        if (p->t38.state == T38_ENABLED) {
                                /* drop frame, can't sent VOICE frames while in T.38 mode */
                                sip_pvt_unlock(p);
                                break;
                        } else if (p->rtp) {
                                /* If channel is not up, activate early media session */
                                if ((ast_channel_state(ast) != AST_STATE_UP) &&
                                    !ast_test_flag(&p->flags[0], SIP_PROGRESS_SENT) &&
                                    !ast_test_flag(&p->flags[0], SIP_OUTGOING)) {
                                        ast_rtp_instance_update_source(p->rtp);
                                        if (!global_prematuremediafilter) {

ast_verbose(" ::::: activating early media session\r\n");

                                                p->invitestate = INV_EARLY_MEDIA;
                                                transmit_provisional_response(p, "183 Session Progress", &p->initreq, TRUE);
                                                ast_set_flag(&p->flags[0], SIP_PROGRESS_SENT);
                                        }
                                }
                                if (p->invitestate > INV_EARLY_MEDIA || (p->invitestate == INV_EARLY_MEDIA &&
                                                                         ast_test_flag(&p->flags[0], SIP_PROGRESS_SENT))) {

ast_verbose(" ::::: early media session already activated\r\n");

                                        p->lastrtptx = time(NULL);
                                        res = ast_rtp_instance_write(p->rtp, frame);
                                }
                        }
                        sip_pvt_unlock(p);
                }


and below is the output

Code: Select all
<--- SIP read from UDP:remote_SIP_IP:5060 --->
INVITE tel:99966;phone-context=unknown SIP/2.0
Content-Length:1060
From:<tel:+96597834852>;tag=7dfBXeCeDeie8i5d
To:<tel:99966;phone-context=unknown>
Via:SIP/2.0/UDP remote_domain:5060;branch=z9hG4bKA9i_Wi0CD1h6V7U7
Call-ID:2D3C3078FB3FE294ABB244D2@6443ffffffff
CSeq:1 INVITE
Max-Forwards:70
Route:<sip:my_SIP_IP:5060;lr>
Record-Route:<sip:AAQAAZK5DAAAvAAAAvQAAfHoK@remote_SIP_IP:5060;lr>
Request-Disposition:no-fork
P-Asserted-Identity:<sip:+96597834852@remote_host;user=phone>,<tel:+96597834852>
Session-Expires:1800;refresher=uac
Contact:sip:remote_SIP_IP:5060
Supported:100rel,timer
Allow:ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,UPDATE
P-Charging-Vector:icid-value=aZWWkCQrIoQZAAAAFg7MBWRDShY-;icid-generated-at=remote_SIP_IP;orig-ioi=remote_host
P-Early-Media:supported
Content-Type:multipart/mixed;boundary=BF106AA6F14C1CC2663A7F00
MIME-Version:1.0

--BF106AA6F14C1CC2663A7F00
Content-Type:application/sdp
Content-Disposition:session;handling=required

v=0
o=- 0 0 IN IP4 remote_sdp_owner
s=-
c=IN IP4 remote_media_IP
t=0 0
m=audio 6222 RTP/AVP 96 97 98 99 100 101 102 8 103
b=AS:80
a=rtpmap:96 AMR/8000
a=fmtp:96 mode-set=0,2,4,7; mode-change-period=2; mode-change-neighbor=1; max-red=0
a=rtpmap:97 AMR/8000
a=fmtp:97 mode-set=7; max-red=0
a=rtpmap:98 AMR/8000
a=fmtp:98 mode-set=0,2; mode-change-period=2; mode-change-neighbor=1; max-red=0
a=rtpmap:99 AMR/8000
a=fmtp:99 mode-set=4; max-red=0
a=rtpmap:100 AMR/8000
a=fmtp:100 mode-set=2; max-red=0
a=rtpmap:101 AMR/8000
a=fmtp:101 mode-set=0; max-red=0
a=rtpmap:102 GSM-EFR/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:103 telephone-event/8000
a=ptime:20
a=maxptime:20
a=3gOoBTC

--BF106AA6F14C1CC2663A7F00
Content-Type:application/ISUP;base=itu-t92+;version=itu-t92+
Content-Disposition:signal;handling=required
Content-Transfer-Encoding:binary

 
<------------->
--- (20 headers 36 lines) ---
Sending to remote_SIP_IP:5060 (no NAT)
Sending to remote_SIP_IP:5060 (no NAT)
Using INVITE request as basis request - 2D3C3078FB3FE294ABB244D2@6443ffffffff
Found peer 'incoming' for '+96597834852' from remote_SIP_IP:5060
  == Using SIP RTP CoS mark 5
Looking for 99966 in default (domain )
sip_route_dump: route/path hop: <sip:AAQAAZK5DAAAvAAAAvQAAfHoK@remote_SIP_IP:5060;lr>

<--- Transmitting (no NAT) to remote_SIP_IP:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP remote_domain:5060;branch=z9hG4bKA9i_Wi0CD1h6V7U7;received=remote_SIP_IP
Record-Route: <sip:AAQAAZK5DAAAvAAAAvQAAfHoK@remote_SIP_IP:5060;lr>
From: <tel:+96597834852>;tag=7dfBXeCeDeie8i5d
To: <tel:99966;phone-context=unknown>
Call-ID: 2D3C3078FB3FE294ABB244D2@6443ffffffff
CSeq: 1 INVITE
Server: DN_SIP_01
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: <sip:99966@my_SIP_IP:5060>
Content-Length: 0


<------------>
    -- Executing [99966@default:1] GotoIf("SIP/incoming-00000000", "0?dblookup") in new stack
    -- Executing [99966@default:2] Goto("SIP/incoming-00000000", "Rock_DN,99966,1") in new stack
    -- Goto (Rock_DN,99966,1)
    -- Executing [99966@Rock_DN:1] Goto("SIP/incoming-00000000", "noanswer_demo,s,1") in new stack
    -- Goto (noanswer_demo,s,1)
    -- Executing [s@noanswer_demo:1] Progress("SIP/incoming-00000000", "") in new stack
AST_CONTROL_PROGRESS | transmit_provisional_response | 183 Session Progress
::::: p->flags[1]:268447744 |SIP_PAGE2_CALL_ONHOLD:1572864 |SIP_PAGE2_CALL_ONHOLD_ONEDIR:1048576 |SIP_PAGE2_CALL_ONHOLD_INACTIVE:1572864
Audio is at 12850
Adding codec alaw to SDP
Adding codec ulaw to SDP
Adding codec gsm to SDP
Adding non-codec 0x1 (telephone-event) to SDP

<--- Transmitting (no NAT) to remote_SIP_IP:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP remote_domain:5060;branch=z9hG4bKA9i_Wi0CD1h6V7U7;received=remote_SIP_IP
Record-Route: <sip:AAQAAZK5DAAAvAAAAvQAAfHoK@remote_SIP_IP:5060;lr>
From: <tel:+96597834852>;tag=7dfBXeCeDeie8i5d
To: <tel:99966;phone-context=unknown>;tag=as5b007325
Call-ID: 2D3C3078FB3FE294ABB244D2@6443ffffffff
CSeq: 1 INVITE
Server: DN_SIP_01
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: <sip:99966@my_SIP_IP:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 289

v=0
o=DNIVR01 1453293019 1453293019 IN IP4 my_SIP_IP
s=DNIVR01
c=IN IP4 my_SIP_IP
t=0 0
m=audio 12850 RTP/AVP 8 0 3 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

<------------>
    -- Executing [s@noanswer_demo:2] Monitor("SIP/incoming-00000000", "wav,testCall-201508251033") in new stack
    -- Executing [s@noanswer_demo:3] BackGround("SIP/incoming-00000000", "hello-world, n") in new stack
::::: early media session already activated
    -- <SIP/incoming-00000000> Playing 'hello-world.gsm' (language 'en')
::::: early media session already activated
::::: early media session already activated
.
.
.
::::: early media session already activated
::::: early media session already activated
    -- Executing [s@noanswer_demo:4] WaitExten("SIP/incoming-00000000", "1") in new stack
    -- Timeout on SIP/incoming-00000000, continuing...
    -- Executing [s@noanswer_demo:5] Playback("SIP/incoming-00000000", "hello-world, noanswer") in new stack
::::: early media session already activated
    -- <SIP/incoming-00000000> Playing 'hello-world.gsm' (language 'en')
::::: early media session already activated
::::: early media session already activated
.
.
.
::::: early media session already activated
::::: early media session already activated
    -- Executing [s@noanswer_demo:6] Wait("SIP/incoming-00000000", "1") in new stack
    -- Executing [s@noanswer_demo:7] Playback("SIP/incoming-00000000", "hello-world") in new stack
::::: p->flags[1]:268447744 |SIP_PAGE2_CALL_ONHOLD:1572864 |SIP_PAGE2_CALL_ONHOLD_ONEDIR:1048576 |SIP_PAGE2_CALL_ONHOLD_INACTIVE:1572864
Audio is at 12850
Adding codec alaw to SDP
Adding codec ulaw to SDP
Adding codec gsm to SDP
Adding non-codec 0x1 (telephone-event) to SDP

<--- Reliably Transmitting (no NAT) to remote_SIP_IP:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP remote_domain:5060;branch=z9hG4bKA9i_Wi0CD1h6V7U7;received=remote_SIP_IP
Record-Route: <sip:AAQAAZK5DAAAvAAAAvQAAfHoK@remote_SIP_IP:5060;lr>
From: <tel:+96597834852>;tag=7dfBXeCeDeie8i5d
To: <tel:99966;phone-context=unknown>;tag=as5b007325
Call-ID: 2D3C3078FB3FE294ABB244D2@6443ffffffff
CSeq: 1 INVITE
Server: DN_SIP_01
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: <sip:99966@my_SIP_IP:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 289

v=0
o=DNIVR01 1453293019 1453293019 IN IP4 my_SIP_IP
s=DNIVR01
c=IN IP4 my_SIP_IP
t=0 0
m=audio 12850 RTP/AVP 8 0 3 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

<------------>

<--- SIP read from UDP:remote_SIP_IP:5060 --->
ACK sip:99966@my_SIP_IP:5060 SIP/2.0
Content-Length:0
From:<tel:+96597834852>;tag=7dfBXeCeDeie8i5d
To:<tel:99966;phone-context=unknown>;tag=as5b007325
Via:SIP/2.0/UDP remote_domain:5060;branch=z9hG4bKWb_hc0iY4Z8eV12U
Call-ID:2D3C3078FB3FE294ABB244D2@6443ffffffff
CSeq:1 ACK
Max-Forwards:70
Request-Disposition:no-fork

<------------->
--- (9 headers 0 lines) ---

<--- SIP read from UDP:remote_SIP_IP:5060 --->
INVITE sip:99966@my_SIP_IP:5060 SIP/2.0
Content-Length:188
From:<tel:+96597834852>;tag=7dfBXeCeDeie8i5d
To:<tel:99966;phone-context=unknown>;tag=as5b007325
Via:SIP/2.0/UDP remote_domain:5060;branch=z9hG4bKUXD8i_jUhaadah75
Call-ID:2D3C3078FB3FE294ABB244D2@6443ffffffff
CSeq:2 INVITE
Max-Forwards:70
Record-Route:<sip:AAQAAZK5DAAAvAAAAvQAAfHoK@remote_SIP_IP:5060;lr>
Request-Disposition:no-fork
Session-Expires:1800;refresher=uac
Contact:sip:remote_SIP_IP:5060
Supported:timer
Allow:ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,UPDATE
P-Charging-Vector:icid-value=aZWWkCQrIoQZAAAAFg7MBWRDShY-;icid-generated-at=remote_SIP_IP;orig-ioi=remote_host
Content-Type:application/sdp
Content-Disposition:session;handling=required

v=0
o=- 0 1 IN IP4 remote_sdp_owner
s=-
c=IN IP4 remote_media_IP
t=0 0
m=audio 6222 RTP/AVP 8 101
b=AS:80
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=maxptime:20
<------------->
--- (17 headers 11 lines) ---
Sending to remote_SIP_IP:5060 (no NAT)
Found RTP audio format 8
Found RTP audio format 101
Found audio description format PCMA for ID 8
Found audio description format telephone-event for ID 101
Capabilities: us - (alaw|ulaw|gsm), peer - audio=(alaw)/video=(nothing)/text=(nothing), combined - (alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port remote_media_IP:6222

<--- Transmitting (no NAT) to remote_SIP_IP:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP remote_domain:5060;branch=z9hG4bKUXD8i_jUhaadah75;received=remote_SIP_IP
Record-Route: <sip:AAQAAZK5DAAAvAAAAvQAAfHoK@remote_SIP_IP:5060;lr>
From: <tel:+96597834852>;tag=7dfBXeCeDeie8i5d
To: <tel:99966;phone-context=unknown>;tag=as5b007325
Call-ID: 2D3C3078FB3FE294ABB244D2@6443ffffffff
CSeq: 2 INVITE
Server: DN_SIP_01
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: <sip:99966@my_SIP_IP:5060>
Content-Length: 0


<------------>
::::: p->flags[1]:276836352 |SIP_PAGE2_CALL_ONHOLD:1572864 |SIP_PAGE2_CALL_ONHOLD_ONEDIR:1048576 |SIP_PAGE2_CALL_ONHOLD_INACTIVE:1572864
Audio is at 12850
Adding codec alaw to SDP
Adding codec ulaw to SDP
Adding codec gsm to SDP
Adding non-codec 0x1 (telephone-event) to SDP

<--- Reliably Transmitting (no NAT) to remote_SIP_IP:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP remote_domain:5060;branch=z9hG4bKUXD8i_jUhaadah75;received=remote_SIP_IP
Record-Route: <sip:AAQAAZK5DAAAvAAAAvQAAfHoK@remote_SIP_IP:5060;lr>
From: <tel:+96597834852>;tag=7dfBXeCeDeie8i5d
To: <tel:99966;phone-context=unknown>;tag=as5b007325
Call-ID: 2D3C3078FB3FE294ABB244D2@6443ffffffff
CSeq: 2 INVITE
Server: DN_SIP_01
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: <sip:99966@my_SIP_IP:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 289

v=0
o=DNIVR01 1453293019 1453293020 IN IP4 my_SIP_IP
s=DNIVR01
c=IN IP4 my_SIP_IP
t=0 0
m=audio 12850 RTP/AVP 8 0 3 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

<------------>

<--- SIP read from UDP:remote_SIP_IP:5060 --->
ACK sip:99966@my_SIP_IP:5060 SIP/2.0
Content-Length:0
From:<tel:+96597834852>;tag=7dfBXeCeDeie8i5d
To:<tel:99966;phone-context=unknown>;tag=as5b007325
Via:SIP/2.0/UDP remote_domain:5060;branch=z9hG4bK4.7c1d3236.404hC
Call-ID:2D3C3078FB3FE294ABB244D2@6443ffffffff
CSeq:2 ACK
Max-Forwards:70
Request-Disposition:no-fork

<------------->
--- (9 headers 0 lines) ---
::::: early media session already activated
Sent RTP packet to      remote_media_IP:6222 (type 08, seq 051695, ts 000160, len 000160)
    -- <SIP/incoming-00000000> Playing 'hello-world.gsm' (language 'en')
::::: early media session already activated
Sent RTP packet to      remote_media_IP:6222 (type 08, seq 051696, ts 000320, len 000160)
::::: early media session already activated
Sent RTP packet to      remote_media_IP:6222 (type 08, seq 051697, ts 000480, len 000160)
.
.
.
::::: early media session already activated
Sent RTP packet to      remote_media_IP:6222 (type 08, seq 051765, ts 011360, len 000160)
::::: early media session already activated
Sent RTP packet to      remote_media_IP:6222 (type 08, seq 051766, ts 011520, len 000160)

<--- SIP read from UDP:remote_SIP_IP:5060 --->
BYE sip:99966@my_SIP_IP:5060 SIP/2.0
Content-Length:6
From:<tel:+96597834852>;tag=7dfBXeCeDeie8i5d
To:<tel:99966;phone-context=unknown>;tag=as5b007325
Via:SIP/2.0/UDP remote_domain:5060;branch=z9hG4bKBAVdUYUj7DC5.c1.
Call-ID:2D3C3078FB3FE294ABB244D2@6443ffffffff
CSeq:3 BYE
Max-Forwards:70
Request-Disposition:no-fork
Supported:timer
Reason:X.int ;reasoncode=0x00000000;add-info=0132.0001.0B2E
Reason:Q.850 ;cause=16
Content-Type:application/ISUP;base=itu-t92+;version=itu-t92+
Content-Disposition:signal;handling=required
Content-Transfer-Encoding:binary



<------------->
--- (15 headers 1 lines) ---
Sending to remote_SIP_IP:5060 (no NAT)
Scheduling destruction of SIP dialog '2D3C3078FB3FE294ABB244D2@6443ffffffff' in 32000 ms (Method: BYE)

<--- Transmitting (no NAT) to remote_SIP_IP:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP remote_domain:5060;branch=z9hG4bKBAVdUYUj7DC5.c1.;received=remote_SIP_IP
From: <tel:+96597834852>;tag=7dfBXeCeDeie8i5d
To: <tel:99966;phone-context=unknown>;tag=as5b007325
Call-ID: 2D3C3078FB3FE294ABB244D2@6443ffffffff
CSeq: 3 BYE
Server: DN_SIP_01
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


<------------>
    -- Executing [h@noanswer_demo:1] Goto("SIP/incoming-00000000", "obd_example_hangup,1") in new stack
    -- Goto (noanswer_demo,obd_example_hangup,1)

Last edited by usmanbaiga on Thu Aug 27, 2015 6:13 am, edited 1 time in total.
usmanbaiga
Newsterisk
 
Posts: 9
Joined: Mon Aug 24, 2015 7:34 am

Re: *13.4-SIP- no early media even after 183 Session Progress

Postby usmanbaiga » Tue Aug 25, 2015 12:13 pm

i am getting following as the Media Direction instead of standard "sendrecv, sendonly, recvonly ..."

a=3gOoBTC


can this be the cause of Media not flowing out of my node.
usmanbaiga
Newsterisk
 
Posts: 9
Joined: Mon Aug 24, 2015 7:34 am

Re: *13.4-SIP- no early media even after 183 Session Progress

Postby usmanbaiga » Thu Aug 27, 2015 5:19 am

tested the same issue with following * versions BUT same result
    - Asterisk-1.8.23.0
    - Asterisk-11.3.0
    - Asterisk-11.4.0

any help will be highly appreciated
usmanbaiga
Newsterisk
 
Posts: 9
Joined: Mon Aug 24, 2015 7:34 am

Re: *13.4-SIP- no early media even after 183 Session Progress

Postby david55 » Thu Aug 27, 2015 5:31 am

a is not media direction. It is a general attribute field.

Please re-edit so that the log is in a code block; that results in a lot less scrolling.

I wonder if this relates to the probation message, i.e. it won't send media unless it has received it. I don't really get involved with NAT, but I think there are NAT hacking options (nat=) that use the de facto remote media address and ignore the SDP.

Also please note that the only suitable questions for the General forums are rhetorical ones; if you want support use the Support forums.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: *13.4-SIP- no early media even after 183 Session Progress

Postby usmanbaiga » Thu Aug 27, 2015 6:17 am

edited the posts as guided, thank you for the education :) ... appreciated (Y)

re-posting in support forum
usmanbaiga
Newsterisk
 
Posts: 9
Joined: Mon Aug 24, 2015 7:34 am

Re: *13.4-SIP- no early media even after 183 Session Progress

Postby usmanbaiga » Sun Aug 30, 2015 2:20 am

I have finally solved this issue :D

thanks to the post No RingBack Tone by MasterLog

progressinband=yes
internal_timing=yes
silencesuppression=no

and my Dial command :: Dial("SIP/<MSISDN>@<peer>,45")

this passes any indication (received from B-Party) to A-Party.


Thank you david55 for the help.

by the way, now I am working with Asterisk 11.3.0, modified to support SIP-I.
will try to patch 13.4.0 to support SIP-I (if I get time).

How can I mark this as solved ??
usmanbaiga
Newsterisk
 
Posts: 9
Joined: Mon Aug 24, 2015 7:34 am


Return to Asterisk General

Who is online

Users browsing this forum: No registered users and 1 guest