[asterisk-dev] Broken SIP dialog if INFO messages received beforefinal OK

Karl H. Putz karl.putz at khptel.com
Mon Apr 19 22:39:49 CDT 2010


I do not have Asterisk debug or SIP trace available but was running  
ngrep during testing.

An example of a normal call is first followed by a call with SIP INFO  
digits prior to station answer.  There is a clear difference in  
content of the 200 OK from Asterisk back to the originating gateway  
between the 2 examples.


U 2010/04/15 08:59:07.115171 192.168.1.202:5060 -> 192.168.1.201:5060
   INVITE sip:*47427645918B at 192.168.1.201 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1
   .202;branch=z9hG4bKac1364273568..Max-Forwards: 70..From: <sip:1001 at 192.16
   8.1.202>;tag=1c1364270776..To:  
<sip:*47427645918B at 192.168.1.201>..Call-ID:
    136427030115420107596 at 192.168.1.202..CSeq: 1 INVITE..Contact: <sip:1001@
   192.168.1.202:5060>..Supported: em,100rel,timer,replaces,path,early- 
session
   ,resource-priority,sdp-anat..Allow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,
   NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE..User-Agent: Audiocodes- 
Sip-Gatewa
   y-/v.5.80A.023.006..Content-Type: application/sdp..Content- 
Disposition: ses
   sion..Content-Length: 179....v=0..o=AudiocodesGW 1364268029  
1364267907 IN I
   P4 192.168.1.202..s=Phone-Call..c=IN IP4 192.168.1.202..t=0  
0..m=audio 6050
    RTP/AVP 0..a=rtpmap:0 PCMU/8000..a=ptime:20..a=sendrecv..
#
U 2010/04/15 08:59:07.115475 192.168.1.201:5060 -> 192.168.1.202:5060
   SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP  
192.168.1.202;branch=z9hG4bKac13
   64273568;received=192.168.1.202..From: <sip: 
1001 at 192.168.1.202>;tag=1c136
   4270776..To: <sip:*47427645918B at 192.168.1.201>;tag=as468c9932..Call- 
ID: 13
   6427030115420107596 at 192.168.1.202..CSeq: 1 INVITE..Server: Asterisk  
PBX 1.6
   .1.12..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE,  
NOTIFY,
   INFO..Supported: replaces, timer..WWW-Authenticate: Digest  
algorithm=MD5, r
   ealm="asterisk", nonce="2089660c"..Content-Length: 0....
#
U 2010/04/15 08:59:07.142166 192.168.1.202:5060 -> 192.168.1.201:5060
   ACK sip:*47427645918B at 192.168.1.201 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.20
   2;branch=z9hG4bKac1364273568..Max-Forwards: 70..From: <sip:1001 at 192.168.1
   .202>;tag=1c1364270776..To:  
<sip:*47427645918B at 192.168.1.201>;tag=as468c99
   32..Call-ID: 136427030115420107596 at 192.168.1.202..CSeq: 1  
ACK..Contact: <si
   p:1001 at 192.168.1.202:5060>..Supported: em,timer,replaces,path,early- 
sessi
   on,resource-priority..Allow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,
   PRACK,REFER,INFO,SUBSCRIBE,UPDATE..User-Agent: Audiocodes-Sip- 
Gateway-/v.5.
   80A.023.006..Content-Length: 0....
#
U 2010/04/15 08:59:07.146294 192.168.1.202:5060 -> 192.168.1.201:5060
   INVITE sip:*47427645918B at 192.168.1.201 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1
   .202;branch=z9hG4bKac1364355132..Max-Forwards: 70..From: <sip:1001 at 192.16
   8.1.202>;tag=1c1364270776..To:  
<sip:*47427645918B at 192.168.1.201>..Call-ID:
    136427030115420107596 at 192.168.1.202..CSeq: 2  
INVITE..Authorization: Digest
    username="1001",realm="asterisk",nonce="2089660c",uri="sip:*47427645918
    
B 
@192.168.1.201 
",algorithm=MD5,response="50106bc37f9953d99dcddc335f123a10".
   .Contact: <sip:1001 at 192.168.1.202:5060>..Supported: em, 
100rel,timer,repla
   ces,path,early-session,resource-priority,sdp-anat..Allow:  
REGISTER,OPTIONS,
    
INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE..User- 
Agent:
    Audiocodes-Sip-Gateway-/v.5.80A.023.006..Content-Type: application/ 
sdp..Co
   ntent-Disposition: session..Content-Length:  
179....v=0..o=AudiocodesGW 1364
   268029 1364267907 IN IP4 192.168.1.202..s=Phone-Call..c=IN IP4  
192.168.1.20
   2..t=0 0..m=audio 6050 RTP/AVP 0..a=rtpmap:0 PCMU/8000..a=ptime: 
20..a=sendr
   ecv..
#
U 2010/04/15 08:59:07.146517 192.168.1.201:5060 -> 192.168.1.202:5060
   SIP/2.0 100 Trying..Via: SIP/2.0/UDP  
192.168.1.202;branch=z9hG4bKac13643551
   32;received=192.168.1.202..From: <sip: 
1001 at 192.168.1.202>;tag=1c136427077
   6..To: <sip:*47427645918B at 192.168.1.201>..Call-ID:  
136427030115420107596 at 1
   92.168.1.202..CSeq: 2 INVITE..Server: Asterisk PBX 1.6.1.12..Allow:  
INVITE,
    ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,  
INFO..Supported: repl
   aces, timer..Require: timer..Session-Expires:  
1800;refresher=uas..Contact:
   <sip:*47427645918B at 192.168.1.201>..Content-Length: 0....
#
U 2010/04/15 08:59:07.146863 192.168.1.201:5060 -> 192.168.1.202:5060
   SIP/2.0 180 Ringing..Via: SIP/2.0/UDP  
192.168.1.202;branch=z9hG4bKac1364355
   132;received=192.168.1.202..From: <sip: 
1001 at 192.168.1.202>;tag=1c13642707
   76..To: <sip:*47427645918B at 192.168.1.201>;tag=as4de2ddd5..Call-ID:  
1364270
   30115420107596 at 192.168.1.202..CSeq: 2 INVITE..Server: Asterisk PBX  
1.6.1.12
   ..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE,  
NOTIFY, INFO.
   .Supported: replaces, timer..Require: timer..Session-Expires:  
1800;refreshe
   r=uas..Contact: <sip:*47427645918B at 192.168.1.201>..Content-Length:  
0....
#
U 2010/04/15 08:59:07.146933 192.168.1.201:5060 -> 192.168.1.204:5060
   INVITE sip:3001 at 192.168.1.204:5060 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.201:
   5060;branch=z9hG4bK57411dd4;rport..Max-Forwards: 70..From:  
"*47427645918B"
    <sip:*47427645918B at 192.168.1.201>;tag=as30d0a592..To: <sip:3001 at 192.168.1
   .204:5060>..Contact: <sip:*47427645918B at 192.168.1.201>..Call-ID:  
312652163
   1284087206a1b6419fa84d7 at 192.168.1.201..CSeq: 102 INVITE..User- 
Agent: Asteri
   sk PBX 1.6.1.12..Date: Thu, 15 Apr 2010 12:59:07 GMT..Allow:  
INVITE, ACK, C
   ANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supported:  
replaces, t
   imer..Content-Type: application/sdp..Content-Length:  
208....v=0..o=root 664
   236698 664236698 IN IP4 192.168.1.201..s=Asterisk PBX  
1.6.1.12..c=IN IP4 19
   2.168.1.201..t=0 0..m=audio 14946 RTP/AVP 0..a=rtpmap:0 PCMU/ 
8000..a=silenc
   eSupp:off - - - -..a=ptime:20..a=sendrecv..
#
U 2010/04/15 08:59:07.167709 192.168.1.204:5060 -> 192.168.1.201:5060
   SIP/2.0 100 Trying..Via: SIP/2.0/UDP  
192.168.1.201:5060;branch=z9hG4bK57411
   dd4;rport..From: "*47427645918B"  
<sip:*47427645918B at 192.168.1.201>;tag=as
   30d0a592..To: <sip:3001 at 192.168.1.204:5060>;tag=1c1329135719..Call- 
ID: 3126
   521631284087206a1b6419fa84d7 at 192.168.1.201..CSeq: 102  
INVITE..Supported: em
   ,timer,replaces,path,resource-priority..Allow:  
REGISTER,OPTIONS,INVITE,ACK,
   CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE..Server:  
Audiocodes-Sip
   -Gateway-/v.5.80A.023.006..Content-Length: 0....
#
U 2010/04/15 08:59:07.172150 192.168.1.204:5060 -> 192.168.1.201:5060
   SIP/2.0 180 Ringing..Via: SIP/2.0/UDP  
192.168.1.201:5060;branch=z9hG4bK5741
   1dd4;rport..From: "*47427645918B"  
<sip:*47427645918B at 192.168.1.201>;tag=a
   s30d0a592..To: <sip:3001 at 192.168.1.204:5060>;tag=1c1329135719..Call- 
ID: 312
   6521631284087206a1b6419fa84d7 at 192.168.1.201..CSeq: 102  
INVITE..Contact: <si
   p:3001 at 192.168.1.204:5060>..Supported:  
em,timer,replaces,path,resource-prio
   rity..Allow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO
   ,SUBSCRIBE,UPDATE..Server: Audiocodes-Sip-Gateway-/v.5.80A. 
023.006..Content
   -Length: 0....
#
U 2010/04/15 08:59:08.034241 192.168.1.96:5060 -> 192.168.1.201:5060
   ..................
#
U 2010/04/15 08:59:11.521641 192.168.1.126:48680 -> 192.168.1.201:5060
   ..................
#
U 2010/04/15 08:59:13.762818 192.168.1.204:5060 -> 192.168.1.201:5060
   SIP/2.0 200 OK..Via: SIP/2.0/UDP  
192.168.1.201:5060;branch=z9hG4bK57411dd4;
   rport..From: "*47427645918B"  
<sip:*47427645918B at 192.168.1.201>;tag=as30d0
   a592..To: <sip:3001 at 192.168.1.204:5060>;tag=1c1329135719..Call-ID:  
31265216
   31284087206a1b6419fa84d7 at 192.168.1.201..CSeq: 102 INVITE..Contact: <sip:300
   1 at 192.168.1.204:5060>..Supported: em,timer,replaces,path,resource- 
priority.
   .Allow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBS
   CRIBE,UPDATE..Server: Audiocodes-Sip-Gateway-/v.5.80A. 
023.006..Content-Type
   : application/sdp..Content-Length: 203....v=0..o=AudiocodesGW  
1329148901 13
   29148777 IN IP4 192.168.1.204..s=Phone-Call..c=IN IP4  
192.168.1.204..t=0 0.
   .m=audio 6090 RTP/AVP 0..c=IN IP4 192.168.1.204..a=rtpmap:0 PCMU/ 
8000..a=pt
   ime:20..a=sendrecv..
#
U 2010/04/15 08:59:13.762990 192.168.1.201:5060 -> 192.168.1.204:5060
   ACK sip:3001 at 192.168.1.204:5060 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.201:506
   0;branch=z9hG4bK1258f3c4;rport..Max-Forwards: 70..From:  
"*47427645918B" <s
   ip:*47427645918B at 192.168.1.201>;tag=as30d0a592..To: <sip:3001 at 192.168.1.20
   4:5060>;tag=1c1329135719..Contact:  
<sip:*47427645918B at 192.168.1.201>..Call
   -ID: 3126521631284087206a1b6419fa84d7 at 192.168.1.201..CSeq: 102  
ACK..User-Ag
   ent: Asterisk PBX 1.6.1.12..Content-Length: 0....
#
U 2010/04/15 08:59:13.763104 192.168.1.201:5060 -> 192.168.1.202:5060
   SIP/2.0 200 OK..Via: SIP/2.0/UDP  
192.168.1.202;branch=z9hG4bKac1364355132;r
   eceived=192.168.1.202..From: <sip: 
1001 at 192.168.1.202>;tag=1c1364270776..T
   o: <sip:*47427645918B at 192.168.1.201>;tag=as4de2ddd5..Call-ID:  
136427030115
   420107596 at 192.168.1.202..CSeq: 2 INVITE..Server: Asterisk PBX  
1.6.1.12..All
   ow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,  
INFO..Supp
   orted: replaces, timer..Require: timer..Session-Expires:  
1800;refresher=uas
   ..Contact: <sip:*47427645918B at 192.168.1.201>..Content-Type:  
application/sd
   p..Content-Length: 210....v=0..o=root 1286529564 1286529564 IN IP4  
192.168.
   1.201..s=Asterisk PBX 1.6.1.12..c=IN IP4 192.168.1.201..t=0  
0..m=audio 1748
   2 RTP/AVP 0..a=rtpmap:0 PCMU/8000..a=silenceSupp:off - - -  
-..a=ptime:20..a
   =sendrecv..
#
U 2010/04/15 08:59:13.793193 192.168.1.202:5060 -> 192.168.1.201:5060
   ACK sip:*47427645918B at 192.168.1.201 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.20
   2;branch=z9hG4bKac1380973172..Max-Forwards: 70..From: <sip:1001 at 192.168.1
   .202>;tag=1c1364270776..To:  
<sip:*47427645918B at 192.168.1.201>;tag=as4de2dd
   d5..Call-ID: 136427030115420107596 at 192.168.1.202..CSeq: 2  
ACK..Contact: <si
   p:1001 at 192.168.1.202:5060>..Supported: em,timer,replaces,path,early- 
sessi
   on,resource-priority..Allow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,
   PRACK,REFER,INFO,SUBSCRIBE,UPDATE..User-Agent: Audiocodes-Sip- 
Gateway-/v.5.
   80A.023.006..Content-Length: 0....
#
U 2010/04/15 08:59:17.286101 192.168.1.204:5060 -> 192.168.1.201:5060
   BYE sip:*47427645918B at 192.168.1.201 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.20
   4;branch=z9hG4bKac1354447180..Max-Forwards: 70..From: <sip:3001 at 192.168.1.2
   04:5060>;tag=1c1329135719..To: "*47427645918B" <sip:*47427645918B at 192.168
   .1.201>;tag=as30d0a592..Call-ID: 3126521631284087206a1b6419fa84d7 at 192.168.1
   .201..CSeq: 1 BYE..Supported: em,timer,replaces,path,resource- 
priority..All
   ow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIB
   E,UPDATE..User-Agent: Audiocodes-Sip-Gateway-/v.5.80A. 
023.006..Reason: Q.85
   0 ;cause=16 ;text="local"..Content-Length: 0....
#
U 2010/04/15 08:59:17.286224 192.168.1.201:5060 -> 192.168.1.204:5060
   SIP/2.0 200 OK..Via: SIP/2.0/UDP  
192.168.1.204;branch=z9hG4bKac1354447180;r
   eceived=192.168.1.204..From: <sip: 
3001 at 192.168.1.204:5060>;tag=1c1329135719
   ..To: "*47427645918B"  
<sip:*47427645918B at 192.168.1.201>;tag=as30d0a592..C
   all-ID: 3126521631284087206a1b6419fa84d7 at 192.168.1.201..CSeq: 1  
BYE..Server
   : Asterisk PBX 1.6.1.12..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE,  
REFER, S
   UBSCRIBE, NOTIFY, INFO..Supported: replaces, timer..Content-Length:  
0....
#
U 2010/04/15 08:59:17.289306 192.168.1.201:5060 -> 192.168.1.202:5060
   BYE sip:1001 at 192.168.1.202:5060 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.201:5
   060;branch=z9hG4bK70750837;rport..Max-Forwards: 70..From: <sip:*4742764591
   8B at 192.168.1.201>;tag=as4de2ddd5..To: <sip: 
1001 at 192.168.1.202>;tag=1c1364
   270776..Call-ID: 136427030115420107596 at 192.168.1.202..CSeq: 102  
BYE..User-A
   gent: Asterisk PBX 1.6.1.12..X-Asterisk-HangupCause: Normal  
Clearing..X-Ast
   erisk-HangupCauseCode: 16..Content-Length: 0....
#
U 2010/04/15 08:59:17.316399 192.168.1.202:5060 -> 192.168.1.201:5060
   SIP/2.0 200 OK..Via: SIP/2.0/UDP  
192.168.1.201:5060;branch=z9hG4bK70750837;
   rport..From: <sip:*47427645918B at 192.168.1.201>;tag=as4de2ddd5..To: <sip:91
   1001 at 192.168.1.202>;tag=1c1364270776..Call-ID: 136427030115420107596 at 192.16
   8.1.202..CSeq: 102 BYE..Contact: <sip: 
1001 at 192.168.1.202:5060>..Supported
   : em,timer,replaces,path,early-session,resource-priority..Allow:  
REGISTER,O
    
PTIONS 
,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE..Serv
   er: Audiocodes-Sip-Gateway-/v.5.80A.023.006..Content-Length: 0....
#




U 2010/04/15 09:24:56.844704 192.168.1.202:5060 -> 192.168.1.201:5060
   INVITE sip:*47427645918B at 192.168.1.201 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1
   .202;branch=z9hG4bKac943601955..Max-Forwards: 70..From: <sip:1001 at 192.168
   .1.202>;tag=1c943596716..To:  
<sip:*47427645918B at 192.168.1.201>..Call-ID: 9
   43596255154201082455 at 192.168.1.202..CSeq: 1 INVITE..Contact: <sip:1001 at 19
   2.168.1.202:5060>..Supported: em,100rel,timer,replaces,path,early- 
session,r
   esource-priority,sdp-anat..Allow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NO
   TIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE..User-Agent: Audiocodes-Sip- 
Gateway-
   /v.5.80A.023.006..Content-Type: application/sdp..Content- 
Disposition: sessi
   on..Content-Length: 177....v=0..o=AudiocodesGW 943594232 943594111  
IN IP4 1
   92.168.1.202..s=Phone-Call..c=IN IP4 192.168.1.202..t=0 0..m=audio  
6070 RTP
   /AVP 0..a=rtpmap:0 PCMU/8000..a=ptime:20..a=sendrecv..
#
U 2010/04/15 09:24:56.844885 192.168.1.201:5060 -> 192.168.1.202:5060
   SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP  
192.168.1.202;branch=z9hG4bKac94
   3601955;received=192.168.1.202..From: <sip: 
1001 at 192.168.1.202>;tag=1c9435
   96716..To: <sip:*47427645918B at 192.168.1.201>;tag=as58016f3c..Call- 
ID: 9435
   96255154201082455 at 192.168.1.202..CSeq: 1 INVITE..Server: Asterisk  
PBX 1.6.1
   .12..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE,  
NOTIFY, IN
   FO..Supported: replaces, timer..WWW-Authenticate: Digest  
algorithm=MD5, rea
   lm="asterisk", nonce="4d9c5362"..Content-Length: 0....
#
U 2010/04/15 09:24:56.871581 192.168.1.202:5060 -> 192.168.1.201:5060
   ACK sip:*47427645918B at 192.168.1.201 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.20
   2;branch=z9hG4bKac943601955..Max-Forwards: 70..From: <sip:1001 at 192.168.1 
.
   202>;tag=1c943596716..To:  
<sip:*47427645918B at 192.168.1.201>;tag=as58016f3c
   ..Call-ID: 943596255154201082455 at 192.168.1.202..CSeq: 1  
ACK..Contact: <sip:
   1001 at 192.168.1.202:5060>..Supported: em,timer,replaces,path,early- 
session
   ,resource-priority..Allow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PR
   ACK,REFER,INFO,SUBSCRIBE,UPDATE..User-Agent: Audiocodes-Sip- 
Gateway-/v.5.80
   A.023.006..Content-Length: 0....
#
U 2010/04/15 09:24:56.875721 192.168.1.202:5060 -> 192.168.1.201:5060
   INVITE sip:*47427645918B at 192.168.1.201 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1
   .202;branch=z9hG4bKac943680397..Max-Forwards: 70..From: <sip:1001 at 192.168
   .1.202>;tag=1c943596716..To:  
<sip:*47427645918B at 192.168.1.201>..Call-ID: 9
   43596255154201082455 at 192.168.1.202..CSeq: 2 INVITE..Authorization:  
Digest u
   sername="1001",realm="asterisk",nonce="4d9c5362",uri="sip:*47427645918B@
    
192.168.1.201 
",algorithm=MD5,response="5f99d9ca2543af62166a957d1ae87278"..C
   ontact: <sip:1001 at 192.168.1.202:5060>..Supported: em, 
100rel,timer,replace
   s,path,early-session,resource-priority,sdp-anat..Allow:  
REGISTER,OPTIONS,IN
   VITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE..User- 
Agent: A
   udiocodes-Sip-Gateway-/v.5.80A.023.006..Content-Type: application/ 
sdp..Cont
   ent-Disposition: session..Content-Length:  
177....v=0..o=AudiocodesGW 943594
   232 943594111 IN IP4 192.168.1.202..s=Phone-Call..c=IN IP4  
192.168.1.202..t
   =0 0..m=audio 6070 RTP/AVP 0..a=rtpmap:0 PCMU/8000..a=ptime: 
20..a=sendrecv.
   .
#
U 2010/04/15 09:24:56.875992 192.168.1.201:5060 -> 192.168.1.202:5060
   SIP/2.0 100 Trying..Via: SIP/2.0/UDP  
192.168.1.202;branch=z9hG4bKac94368039
   7;received=192.168.1.202..From: <sip: 
1001 at 192.168.1.202>;tag=1c943596716.
   .To: <sip:*47427645918B at 192.168.1.201>..Call-ID:  
943596255154201082455 at 192
   .168.1.202..CSeq: 2 INVITE..Server: Asterisk PBX 1.6.1.12..Allow:  
INVITE, A
   CK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,  
INFO..Supported: replac
   es, timer..Require: timer..Session-Expires:  
1800;refresher=uas..Contact: <s
   ip:*47427645918B at 192.168.1.201>..Content-Length: 0....
#
U 2010/04/15 09:24:56.876527 192.168.1.201:5060 -> 192.168.1.204:5060
   INVITE sip:3001 at 192.168.1.204:5060 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.201:
   5060;branch=z9hG4bK6c06d596;rport..Max-Forwards: 70..From:  
"*47427645918B"
    <sip:*47427645918B at 192.168.1.201>;tag=as0bbfcd43..To: <sip:3001 at 192.168.1
   .204:5060>..Contact: <sip:*47427645918B at 192.168.1.201>..Call-ID:  
5c85110f1
   0e7aa3a535bc54455078d01 at 192.168.1.201..CSeq: 102 INVITE..User- 
Agent: Asteri
   sk PBX 1.6.1.12..Date: Thu, 15 Apr 2010 13:24:56 GMT..Allow:  
INVITE, ACK, C
   ANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supported:  
replaces, t
   imer..Content-Type: application/sdp..Content-Length:  
210....v=0..o=root 166
   8493257 1668493257 IN IP4 192.168.1.201..s=Asterisk PBX  
1.6.1.12..c=IN IP4
   192.168.1.201..t=0 0..m=audio 17370 RTP/AVP 0..a=rtpmap:0 PCMU/ 
8000..a=sile
   nceSupp:off - - - -..a=ptime:20..a=sendrecv..
#
U 2010/04/15 09:24:56.876552 192.168.1.201:5060 -> 192.168.1.202:5060
   SIP/2.0 180 Ringing..Via: SIP/2.0/UDP  
192.168.1.202;branch=z9hG4bKac9436803
   97;received=192.168.1.202..From: <sip: 
1001 at 192.168.1.202>;tag=1c943596716
   ..To: <sip:*47427645918B at 192.168.1.201>;tag=as51fe15e5..Call-ID:  
943596255
   154201082455 at 192.168.1.202..CSeq: 2 INVITE..Server: Asterisk PBX  
1.6.1.12..
   Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,  
INFO..S
   upported: replaces, timer..Require: timer..Session-Expires:  
1800;refresher=
   uas..Contact: <sip:*47427645918B at 192.168.1.201>..Content-Length:  
0....
#
U 2010/04/15 09:24:56.902553 192.168.1.204:5060 -> 192.168.1.201:5060
   SIP/2.0 100 Trying..Via: SIP/2.0/UDP  
192.168.1.201:5060;branch=z9hG4bK6c06d
   596;rport..From: "*47427645918B"  
<sip:*47427645918B at 192.168.1.201>;tag=as
   0bbfcd43..To: <sip:3001 at 192.168.1.204:5060>;tag=1c908464101..Call- 
ID: 5c851
   10f10e7aa3a535bc54455078d01 at 192.168.1.201..CSeq: 102  
INVITE..Supported: em,
   timer,replaces,path,resource-priority..Allow:  
REGISTER,OPTIONS,INVITE,ACK,C
   ANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE..Server:  
Audiocodes-Sip-
   Gateway-/v.5.80A.023.006..Content-Length: 0....
#
U 2010/04/15 09:24:56.906118 192.168.1.204:5060 -> 192.168.1.201:5060
   SIP/2.0 180 Ringing..Via: SIP/2.0/UDP  
192.168.1.201:5060;branch=z9hG4bK6c06
   d596;rport..From: "*47427645918B"  
<sip:*47427645918B at 192.168.1.201>;tag=a
   s0bbfcd43..To: <sip:3001 at 192.168.1.204:5060>;tag=1c908464101..Call- 
ID: 5c85
   110f10e7aa3a535bc54455078d01 at 192.168.1.201..CSeq: 102  
INVITE..Contact: <sip
   :3001 at 192.168.1.204:5060>..Supported:  
em,timer,replaces,path,resource-prior
   ity..Allow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,
   SUBSCRIBE,UPDATE..Server: Audiocodes-Sip-Gateway-/v.5.80A. 
023.006..Content-
   Length: 0....
#
U 2010/04/15 09:24:56.914252 192.168.1.202:5060 -> 192.168.1.201:5060
   INFO sip:*47427645918B at 192.168.1.201 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.2
   02;branch=z9hG4bKac943777088..Max-Forwards: 70..From: <sip:1001 at 192.168.1
   .202>;tag=1c943596716..To:  
<sip:*47427645918B at 192.168.1.201>;tag=as51fe15e
   5..Call-ID: 943596255154201082455 at 192.168.1.202..CSeq: 3  
INFO..Contact: <si
   p:1001 at 192.168.1.202:5060>..Supported: em,timer,replaces,path,early- 
sessi
   on,resource-priority..Allow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,
   PRACK,REFER,INFO,SUBSCRIBE,UPDATE..User-Agent: Audiocodes-Sip- 
Gateway-/v.5.
   80A.023.006..Content-Type: application/ 
vnd.nortelnetworks.digits..Content-L
   ength: 35....p=Digit-Collection..y=Digits..d=1..
#
U 2010/04/15 09:24:56.914341 192.168.1.201:5060 -> 192.168.1.202:5060
   SIP/2.0 200 OK..Via: SIP/2.0/UDP  
192.168.1.202;branch=z9hG4bKac943777088;re
   ceived=192.168.1.202..From: <sip: 
1001 at 192.168.1.202>;tag=1c943596716..To:
    <sip:*47427645918B at 192.168.1.201>;tag=as51fe15e5..Call-ID:  
94359625515420
   1082455 at 192.168.1.202..CSeq: 3 INFO..Server: Asterisk PBX  
1.6.1.12..Allow:
   INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,  
INFO..Supporte
   d: replaces, timer..Content-Length: 0....
#
U 2010/04/15 09:24:57.040149 192.168.1.202:5060 -> 192.168.1.201:5060
   INFO sip:*47427645918B at 192.168.1.201 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.2
   02;branch=z9hG4bKac944091755..Max-Forwards: 70..From: <sip:1001 at 192.168.1
   .202>;tag=1c943596716..To:  
<sip:*47427645918B at 192.168.1.201>;tag=as51fe15e
   5..Call-ID: 943596255154201082455 at 192.168.1.202..CSeq: 4  
INFO..Contact: <si
   p:1001 at 192.168.1.202:5060>..Supported: em,timer,replaces,path,early- 
sessi
   on,resource-priority..Allow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,
   PRACK,REFER,INFO,SUBSCRIBE,UPDATE..User-Agent: Audiocodes-Sip- 
Gateway-/v.5.
   80A.023.006..Content-Type: application/ 
vnd.nortelnetworks.digits..Content-L
   ength: 35....p=Digit-Collection..y=Digits..d=2..
#
U 2010/04/15 09:24:57.040236 192.168.1.201:5060 -> 192.168.1.202:5060
   SIP/2.0 200 OK..Via: SIP/2.0/UDP  
192.168.1.202;branch=z9hG4bKac944091755;re
   ceived=192.168.1.202..From: <sip: 
1001 at 192.168.1.202>;tag=1c943596716..To:
    <sip:*47427645918B at 192.168.1.201>;tag=as51fe15e5..Call-ID:  
94359625515420
   1082455 at 192.168.1.202..CSeq: 4 INFO..Server: Asterisk PBX  
1.6.1.12..Allow:
   INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,  
INFO..Supporte
   d: replaces, timer..Content-Length: 0....
#
U 2010/04/15 09:24:58.031812 192.168.1.96:5060 -> 192.168.1.201:5060
   ..................
#
U 2010/04/15 09:25:03.396212 192.168.1.204:5060 -> 192.168.1.201:5060
   SIP/2.0 200 OK..Via: SIP/2.0/UDP  
192.168.1.201:5060;branch=z9hG4bK6c06d596;
   rport..From: "*47427645918B"  
<sip:*47427645918B at 192.168.1.201>;tag=as0bbf
   cd43..To: <sip:3001 at 192.168.1.204:5060>;tag=1c908464101..Call-ID:  
5c85110f1
   0e7aa3a535bc54455078d01 at 192.168.1.201..CSeq: 102 INVITE..Contact: <sip:3001
   @192.168.1.204:5060>..Supported: em,timer,replaces,path,resource- 
priority..
   Allow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSC
   RIBE,UPDATE..Server: Audiocodes-Sip-Gateway-/v.5.80A. 
023.006..Content-Type:
    application/sdp..Content-Length: 201....v=0..o=AudiocodesGW  
908475757 9084
   75635 IN IP4 192.168.1.204..s=Phone-Call..c=IN IP4  
192.168.1.204..t=0 0..m=
   audio 6110 RTP/AVP 0..c=IN IP4 192.168.1.204..a=rtpmap:0 PCMU/ 
8000..a=ptime
   :20..a=sendrecv..
#
U 2010/04/15 09:25:03.396407 192.168.1.201:5060 -> 192.168.1.204:5060
   ACK sip:3001 at 192.168.1.204:5060 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.201:506
   0;branch=z9hG4bK285d962f;rport..Max-Forwards: 70..From:  
"*47427645918B" <s
   ip:*47427645918B at 192.168.1.201>;tag=as0bbfcd43..To: <sip:3001 at 192.168.1.20
   4:5060>;tag=1c908464101..Contact:  
<sip:*47427645918B at 192.168.1.201>..Call-
   ID: 5c85110f10e7aa3a535bc54455078d01 at 192.168.1.201..CSeq: 102  
ACK..User-Age
   nt: Asterisk PBX 1.6.1.12..Content-Length: 0....
#
U 2010/04/15 09:25:03.396617 192.168.1.201:5060 -> 192.168.1.202:5060
   SIP/2.0 200 OK..Via: SIP/2.0/UDP  
192.168.1.202;branch=z9hG4bKac943680397;re
   ceived=192.168.1.202..From: <sip: 
1001 at 192.168.1.202>;tag=1c943596716..To:
    <sip:*47427645918B at 192.168.1.201>;tag=as51fe15e5..Call-ID:  
94359625515420
   1082455 at 192.168.1.202..CSeq: 2 INVITE..Server: Asterisk PBX  
1.6.1.12..Allow
   : INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,  
INFO..Suppor
   ted: replaces, timer..Content-Type: application/sdp..Content- 
Length: 210...
   .v=0..o=root 1624991794 1624991794 IN IP4 192.168.1.201..s=Asterisk  
PBX 1.6
   .1.12..c=IN IP4 192.168.1.201..t=0 0..m=audio 19594 RTP/AVP  
0..a=rtpmap:0 P
   CMU/8000..a=silenceSupp:off - - - -..a=ptime:20..a=sendrecv..
#
U 2010/04/15 09:25:03.419273 192.168.1.202:5060 -> 192.168.1.201:5060
   ACK sip:*47427645918B at 192.168.1.201 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.20
   2;branch=z9hG4bKac960040235..Max-Forwards: 70..From: <sip:1001 at 192.168.1 
.
   202>;tag=1c943596716..To:  
<sip:*47427645918B at 192.168.1.201>;tag=as51fe15e5
   ..Call-ID: 943596255154201082455 at 192.168.1.202..CSeq: 2  
ACK..Contact: <sip:
   1001 at 192.168.1.202:5060>..Supported: em,timer,replaces,path,early- 
session
   ,resource-priority..Allow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PR
   ACK,REFER,INFO,SUBSCRIBE,UPDATE..User-Agent: Audiocodes-Sip- 
Gateway-/v.5.80
   A.023.006..Content-Length: 0....
#
U 2010/04/15 09:25:03.422913 192.168.1.202:5060 -> 192.168.1.201:5060
   BYE sip:*47427645918B at 192.168.1.201 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.20
   2;branch=z9hG4bKac960048866..Max-Forwards: 70..From: <sip:1001 at 192.168.1 
.
   202>;tag=1c943596716..To:  
<sip:*47427645918B at 192.168.1.201>;tag=as51fe15e5
   ..Call-ID: 943596255154201082455 at 192.168.1.202..CSeq: 5  
BYE..Supported: em,
   timer,replaces,path,early-session,resource-priority..Allow:  
REGISTER,OPTION
    
S,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE..User- 
Agen
   t: Audiocodes-Sip-Gateway-/v.5.80A.023.006..Reason:  
SIP ;cause=406 ;text="4
   06 Not Acceptable"..Content-Length: 0....
#
U 2010/04/15 09:25:03.423035 192.168.1.201:5060 -> 192.168.1.202:5060
   SIP/2.0 200 OK..Via: SIP/2.0/UDP  
192.168.1.202;branch=z9hG4bKac960048866;re
   ceived=192.168.1.202..From: <sip: 
1001 at 192.168.1.202>;tag=1c943596716..To:
    <sip:*47427645918B at 192.168.1.201>;tag=as51fe15e5..Call-ID:  
94359625515420
   1082455 at 192.168.1.202..CSeq: 5 BYE..Server: Asterisk PBX  
1.6.1.12..Allow: I
   NVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,  
INFO..Supported
   : replaces, timer..Content-Length: 0....
#
U 2010/04/15 09:25:03.423570 192.168.1.201:5060 -> 192.168.1.204:5060
   BYE sip:3001 at 192.168.1.204:5060 SIP/2.0..Via: SIP/2.0/UDP  
192.168.1.201:506
   0;branch=z9hG4bK370b620b;rport..Max-Forwards: 70..From:  
"*47427645918B" <s
   ip:*47427645918B at 192.168.1.201>;tag=as0bbfcd43..To: <sip:3001 at 192.168.1.20
   4:5060>;tag=1c908464101..Call-ID: 5c85110f10e7aa3a535bc54455078d01 at 192.168 
.
   1.201..CSeq: 103 BYE..User-Agent: Asterisk PBX 1.6.1.12..X-Asterisk- 
HangupC
   ause: Normal Clearing..X-Asterisk-HangupCauseCode: 16..Content- 
Length: 0...
   .
#
U 2010/04/15 09:25:03.449262 192.168.1.204:5060 -> 192.168.1.201:5060
   SIP/2.0 200 OK..Via: SIP/2.0/UDP  
192.168.1.201:5060;branch=z9hG4bK370b620b;
   rport..From: "*47427645918B"  
<sip:*47427645918B at 192.168.1.201>;tag=as0bbf
   cd43..To: <sip:3001 at 192.168.1.204:5060>;tag=1c908464101..Call-ID:  
5c85110f1
   0e7aa3a535bc54455078d01 at 192.168.1.201..CSeq: 103 BYE..Contact: <sip:3001 at 19
   2.168.1.204:5060>..Supported: em,timer,replaces,path,resource- 
priority..All
   ow:  
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIB
   E,UPDATE..Server: Audiocodes-Sip-Gateway-/v.5.80A.023.006..Content- 
Length:
   0....
#



Karl H. Putz
(614)571-0899







On Apr 19, 2010, at 12:24 PM, Karl H. Putz wrote:

> Section 12.1.1 of RFC 3261.  Check out the last portion of the  
> copied text:
> 12.1.1 UAS behavior When a UAS responds to a request with a response  
> that establishes a dialog (such as a 2xx to INVITE), the UAS MUST  
> copy all Record-Route header field values from the request into the  
> response (including the URIs, URI parameters, and any Record-Route  
> header field parameters, whether they are known or unknown to the  
> UAS) and MUST maintain the order of those values. The UAS MUST add a  
> Contact header field to the response. The Contact header field  
> contains an address where the UAS would like to be contacted for  
> subsequent requests in the dialog (which includes the ACK for a 2xx  
> response in the case of an INVITE).
>
> The issue is that the header exists under most conditions except in  
> the case where a SIP INFO digit is passed prior to Asterisk  
> responding to the original Invite with the OK.
>
>
> Karl H. Putz
> (614)571-0899
>
>
>
>
>
>
>
> On Apr 19, 2010, at 11:28 AM, Nick Lewis wrote:
>
>>> Double checking the RFC confirms that the 2XX response to an INVITE
>> requires the Contact Header.
>>
>> Where is this specified? I have looked at RFC2976 and it seems to
>> prohibit a Contact Header in the 2XX response
>>
>>         Header                    Where    INFO
>>         ------                    -----    ----
>>         Contact                     R       o
>>         Contact                    1xx      -
>>         Contact                    2xx      -
>>         Contact                    3xx      -
>>         Contact                    485      -
>>
>>
>> -- N_L
>>
>> _____________________________________________________________________
>> This message has been checked for all known viruses by Star  
>> Internet delivered through the MessageLabs Virus Control Centre.
>> _____________________________________________________________________
>> Disclaimer of Liability
>> ATL Telecom Ltd shall not be held liable for any improper or  
>> incorrect use of the  information described and/or contained herein  
>> and assumes no responsibility for anyones use  of the information.  
>> In no event shall ATL Telecom Ltd be liable for any direct,  
>> indirect,  incidental, special, exemplary, or consequential damages  
>> (including, but not limited to,  procurement or substitute goods or  
>> services; loss of use, data, or profits; or business  interruption)  
>> however caused and on any theory of liability, whether in contract,  
>> strict  liability, or tort (including negligence or otherwise)  
>> arising in any way out of the use of  this system, even if advised  
>> of the possibility of such damage.
>>
>> Registered Office: ATL Telecom Ltd, Fountain Lane, St. Mellons  
>> Cardiff, CF3 0FB
>> Registered in Wales Number 4335781
>>
>> All goods and services supplied by ATL Telecom Ltd are supplied  
>> subject to ATL Telecom Ltd standard terms and conditions, available  
>> upon request.
>>
>> -- 
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> asterisk-dev mailing list
>> To UNSUBSCRIBE or update options visit:
>>  http://lists.digium.com/mailman/listinfo/asterisk-dev
>>
>




More information about the asterisk-dev mailing list