Hello,
the BYE is not properly constructed. The R-URI must be the contact
header from 200OK of INVITE. As you can see, the ACK is ok. You have to
notify the vendor to fix the issue.
BTW, the '#' is not allowed in SIP URI, the phone has to escape it.
Cheers,
Daniel
On 12/18/07 00:35, Juan Carlos Castro y Castro wrote:
Yes, it's a different UA -- a
Brazilian-manufactured IP phone,
probably an OEM of places far East. Here is the SIP trace. I
obfuscated some things like IP addresses and domain names, but I think
you'll get the gist of it.
I wonder what the binary stuff that's going back and forth is.
Thanks,
Juan
#
U 2007/12/17 20:17:20.741452 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:3478
.....`'.{..#jLVP9...........
#
U 2007/12/17 20:17:20.741674 IP.OF.OPEN.SER:3478 -> IP.OF.BAD.PHONE:5060
...D.`'.{..#jLVP9............L.J..........ne..........oe.
......A,..."..Vovida.org 0.96.
#
U 2007/12/17 20:17:20.785143 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:3478
.....`'.{..#jLVP9...........
#
U 2007/12/17 20:17:20.785350 IP.OF.OPEN.SER:3478 -> IP.OF.BAD.PHONE:5060
...D.`'.{..#jLVP9............L.J..........ne..........oe.
......A,..."..Vovida.org 0.96.
#
U 2007/12/17 20:17:21.357629 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:5060
INVITE sip:0215551234@mydomain.com SIP/2.0.
Via: SIP/2.0/UDP IP.OF.BAD.PHONE:5060;rport;branch=z9hG4bKaeadaae871.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
Contact: <sip:paulohm@IP.OF.BAD.PHONE:5060>.
CSeq: 801 INVITE.
Max-Forwards: 70.
Allow: INVITE,CANCEL,ACK,BYE,NOTIFY,REFER,OPTIONS,INFO,MESSAGE.
Content-Type: application/sdp.
User-Agent: ET747cx.
Content-Length: 385.
.
v=0.
o=- 47043 0 IN IP4 IP.OF.BAD.PHONE.
s=SIP CALL.
c=IN IP4 IP.OF.BAD.PHONE.
t=0 0.
m=audio 60000 RTP/AVP 18 4 23 22 2 21 0 8 101.
a=rtpmap:18 G729/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:23 G726-16/8000.
a=rtpmap:22 G726-24/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:21 G726-40/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=sendrecv.
#
U 2007/12/17 20:17:21.462604 IP.OF.OPEN.SER:5060 -> IP.OF.BAD.PHONE:5060
SIP/2.0 100 Giving a try.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bKaeadaae871.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 801 INVITE.
Server: InstantVoice SIP Proxy.
Content-Length: 0.
.
#
U 2007/12/17 20:17:21.462703 IP.OF.OPEN.SER:5060 ->
IP.OF.ASTERISK.SERVER:5060
INVITE sip:company#0215551234@IP.OF.ASTERISK.SERVER SIP/2.0.
Record-Route: <sip:IP.OF.OPEN.SER;lr=on;ftag=08ea63b0>.
Via: SIP/2.0/UDP IP.OF.OPEN.SER;branch=z9hG4bKb558.76629967.0.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bKaeadaae871.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
Contact: <sip:paulohm@IP.OF.BAD.PHONE:5060>.
CSeq: 801 INVITE.
Max-Forwards: 69.
Allow: INVITE,CANCEL,ACK,BYE,NOTIFY,REFER,OPTIONS,INFO,MESSAGE.
Content-Type: application/sdp.
User-Agent: ET747cx.
Content-Length: 387.
.
v=0.
o=- 47043 0 IN IP4 IP.OF.BAD.PHONE.
s=SIP CALL.
c=IN IP4 200.233.110.103.
t=0 0.
m=audio 16696 RTP/AVP 18 4 23 22 2 21 0 8 101.
a=rtpmap:18 G729/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:23 G726-16/8000.
a=rtpmap:22 G726-24/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:21 G726-40/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=sendrecv.
#
U 2007/12/17 20:17:21.463188 IP.OF.ASTERISK.SERVER:5060 ->
IP.OF.OPEN.SER:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP
IP.OF.OPEN.SER;branch=z9hG4bKb558.76629967.0;received=IP.OF.OPEN.SER.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bKaeadaae871.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 801 INVITE.
User-Agent: InstantVoice.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Contact: <sip:company#0215551234@IP.OF.ASTERISK.SERVER>.
Content-Length: 0.
.
#
U 2007/12/17 20:17:22.828035 IP.OF.ASTERISK.SERVER:5060 ->
IP.OF.OPEN.SER:5060
SIP/2.0 183 Session Progress.
Via: SIP/2.0/UDP
IP.OF.OPEN.SER;branch=z9hG4bKb558.76629967.0;received=IP.OF.OPEN.SER.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bKaeadaae871.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 801 INVITE.
User-Agent: InstantVoice.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Contact: <sip:company#0215551234@IP.OF.ASTERISK.SERVER>.
Content-Type: application/sdp.
Content-Length: 293.
.
v=0.
o=root 25650 25650 IN IP4 IP.OF.ASTERISK.SERVER.
s=session.
c=IN IP4 IP.OF.ASTERISK.SERVER.
t=0 0.
m=audio 13486 RTP/AVP 18 8 0 101.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
#
U 2007/12/17 20:17:22.829672 IP.OF.OPEN.SER:5060 -> IP.OF.BAD.PHONE:5060
SIP/2.0 183 Session Progress.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bKaeadaae871.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 801 INVITE.
User-Agent: InstantVoice.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Contact: <sip:company#0215551234@IP.OF.ASTERISK.SERVER>.
Content-Type: application/sdp.
Content-Length: 293.
.
v=0.
o=root 25650 25650 IN IP4 IP.OF.ASTERISK.SERVER.
s=session.
c=IN IP4 200.233.110.103.
t=0 0.
m=audio 16696 RTP/AVP 18 8 0 101.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
#
U 2007/12/17 20:17:35.941556 IP.OF.ASTERISK.SERVER:5060 ->
IP.OF.OPEN.SER:5060
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP
IP.OF.OPEN.SER;branch=z9hG4bKb558.76629967.0;received=IP.OF.OPEN.SER.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bKaeadaae871.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 801 INVITE.
User-Agent: InstantVoice.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Contact: <sip:company#0215551234@IP.OF.ASTERISK.SERVER>.
Content-Length: 0.
.
#
U 2007/12/17 20:17:35.941689 IP.OF.OPEN.SER:5060 -> IP.OF.BAD.PHONE:5060
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bKaeadaae871.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 801 INVITE.
User-Agent: InstantVoice.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Contact: <sip:company#0215551234@IP.OF.ASTERISK.SERVER>.
Content-Length: 0.
.
#
U 2007/12/17 20:17:36.005883 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:5060
.
#
U 2007/12/17 20:17:40.661764 IP.OF.ASTERISK.SERVER:5060 ->
IP.OF.OPEN.SER:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP
IP.OF.OPEN.SER;branch=z9hG4bKb558.76629967.0;received=IP.OF.OPEN.SER.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bKaeadaae871.
Record-Route: <sip:IP.OF.OPEN.SER;lr=on;ftag=08ea63b0>.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 801 INVITE.
User-Agent: InstantVoice.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Contact: <sip:company#0215551234@IP.OF.ASTERISK.SERVER>.
Content-Type: application/sdp.
Content-Length: 293.
.
v=0.
o=root 25650 25651 IN IP4 IP.OF.ASTERISK.SERVER.
s=session.
c=IN IP4 IP.OF.ASTERISK.SERVER.
t=0 0.
m=audio 13486 RTP/AVP 18 8 0 101.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
#
U 2007/12/17 20:17:40.663693 IP.OF.OPEN.SER:5060 -> IP.OF.BAD.PHONE:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bKaeadaae871.
Record-Route: <sip:IP.OF.OPEN.SER;lr=on;ftag=08ea63b0>.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 801 INVITE.
User-Agent: InstantVoice.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Contact: <sip:company#0215551234@IP.OF.ASTERISK.SERVER>.
Content-Type: application/sdp.
Content-Length: 293.
.
v=0.
o=root 25650 25651 IN IP4 IP.OF.ASTERISK.SERVER.
s=session.
c=IN IP4 200.233.110.103.
t=0 0.
m=audio 16696 RTP/AVP 18 8 0 101.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
#
U 2007/12/17 20:17:40.925240 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:3478
.....$.::.......y.zd........
#
U 2007/12/17 20:17:40.925461 IP.OF.OPEN.SER:3478 -> IP.OF.BAD.PHONE:5060
...D.$.::.......y.zd.........L.J..........ne..........oe.
......Ah.p."..Vovida.org 0.96.
#
U 2007/12/17 20:17:40.974921 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:3478
.....$.::.......y.zd........
#
U 2007/12/17 20:17:40.975236 IP.OF.OPEN.SER:3478 -> IP.OF.BAD.PHONE:5060
...D.$.::.......y.zd.........L.J..........ne..........oe.
......Ah.p."..Vovida.org 0.96.
#
U 2007/12/17 20:17:41.267185 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:5060
ACK sip:company#0215551234@IP.OF.ASTERISK.SERVER SIP/2.0.
Via: SIP/2.0/UDP IP.OF.BAD.PHONE:5060;rport;branch=z9hG4bK2e3ab80e2c.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
Route: <sip:IP.OF.OPEN.SER;ftag=08ea63b0;lr=on>.
Contact: <sip:paulohm@IP.OF.BAD.PHONE:5060>.
CSeq: 801 ACK.
Content-Length: 0.
.
#
U 2007/12/17 20:17:41.267601 IP.OF.OPEN.SER:5060 ->
IP.OF.ASTERISK.SERVER:5060
ACK sip:company#0215551234@IP.OF.ASTERISK.SERVER SIP/2.0.
Max-Forwards: 10.
Via: SIP/2.0/UDP IP.OF.OPEN.SER;branch=z9hG4bKb558.76629967.2.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bK2e3ab80e2c.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
Contact: <sip:paulohm@IP.OF.BAD.PHONE:5060>.
CSeq: 801 ACK.
Content-Length: 0.
Max-Forwards: 70.
P-hint: rr-enforced.
.
#
U 2007/12/17 20:17:51.350567 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:5060
BYE sip:0215551234@mydomain.com SIP/2.0.
Via: SIP/2.0/UDP IP.OF.BAD.PHONE:5060;rport;branch=z9hG4bK8d532abd81.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
Route: <sip:IP.OF.OPEN.SER;ftag=08ea63b0;lr=on>.
Contact: <sip:paulohm@IP.OF.BAD.PHONE:5060>.
CSeq: 802 BYE.
Max-Forwards: 70.
User-Agent: ET747cx.
Content-Length: 0.
.
#
U 2007/12/17 20:17:51.431128 IP.OF.OPEN.SER:5060 -> IP.OF.BAD.PHONE:5060
SIP/2.0 483 Too Many Hops.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bK8d532abd81.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 802 BYE.
Server: InstantVoice SIP Proxy.
Content-Length: 0.
.
#
U 2007/12/17 20:17:52.060716 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:5060
BYE sip:0215551234@mydomain.com SIP/2.0.
Via: SIP/2.0/UDP IP.OF.BAD.PHONE:5060;rport;branch=z9hG4bK8d532abd81.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
Route: <sip:IP.OF.OPEN.SER;ftag=08ea63b0;lr=on>.
Contact: <sip:paulohm@IP.OF.BAD.PHONE:5060>.
CSeq: 802 BYE.
Max-Forwards: 70.
User-Agent: ET747cx.
Content-Length: 0.
.
#
U 2007/12/17 20:17:52.063275 IP.OF.OPEN.SER:5060 -> IP.OF.BAD.PHONE:5060
SIP/2.0 483 Too Many Hops.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bK8d532abd81.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 802 BYE.
Server: InstantVoice SIP Proxy.
Content-Length: 0.
.
#
U 2007/12/17 20:17:53.058680 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:5060
.
#
U 2007/12/17 20:17:53.290822 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:5060
BYE sip:0215551234@mydomain.com SIP/2.0.
Via: SIP/2.0/UDP IP.OF.BAD.PHONE:5060;rport;branch=z9hG4bK8d532abd81.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
Route: <sip:IP.OF.OPEN.SER;ftag=08ea63b0;lr=on>.
Contact: <sip:paulohm@IP.OF.BAD.PHONE:5060>.
CSeq: 802 BYE.
Max-Forwards: 70.
User-Agent: ET747cx.
Content-Length: 0.
.
#
U 2007/12/17 20:17:53.293228 IP.OF.OPEN.SER:5060 -> IP.OF.BAD.PHONE:5060
SIP/2.0 483 Too Many Hops.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bK8d532abd81.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 802 BYE.
Server: InstantVoice SIP Proxy.
Content-Length: 0.
.
#
U 2007/12/17 20:17:55.521391 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:5060
BYE sip:0215551234@mydomain.com SIP/2.0.
Via: SIP/2.0/UDP IP.OF.BAD.PHONE:5060;rport;branch=z9hG4bK8d532abd81.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
Route: <sip:IP.OF.OPEN.SER;ftag=08ea63b0;lr=on>.
Contact: <sip:paulohm@IP.OF.BAD.PHONE:5060>.
CSeq: 802 BYE.
Max-Forwards: 70.
User-Agent: ET747cx.
Content-Length: 0.
.
#
U 2007/12/17 20:17:55.523890 IP.OF.OPEN.SER:5060 -> IP.OF.BAD.PHONE:5060
SIP/2.0 483 Too Many Hops.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bK8d532abd81.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 802 BYE.
Server: InstantVoice SIP Proxy.
Content-Length: 0.
.
#
U 2007/12/17 20:17:59.748798 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:5060
BYE sip:0215551234@mydomain.com SIP/2.0.
Via: SIP/2.0/UDP IP.OF.BAD.PHONE:5060;rport;branch=z9hG4bK8d532abd81.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
Route: <sip:IP.OF.OPEN.SER;ftag=08ea63b0;lr=on>.
Contact: <sip:paulohm@IP.OF.BAD.PHONE:5060>.
CSeq: 802 BYE.
Max-Forwards: 70.
User-Agent: ET747cx.
Content-Length: 0.
.
#
U 2007/12/17 20:17:59.827787 IP.OF.OPEN.SER:5060 -> IP.OF.BAD.PHONE:5060
SIP/2.0 483 Too Many Hops.
Via: SIP/2.0/UDP
IP.OF.BAD.PHONE:5060;rport=5060;branch=z9hG4bK8d532abd81.
From: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
To: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 802 BYE.
Server: InstantVoice SIP Proxy.
Content-Length: 0.
.
#
U 2007/12/17 20:18:02.761592 IP.OF.ASTERISK.SERVER:5060 ->
IP.OF.OPEN.SER:5060
BYE sip:paulohm@IP.OF.BAD.PHONE:5060 SIP/2.0.
Via: SIP/2.0/UDP IP.OF.ASTERISK.SERVER:5060;branch=z9hG4bK5fb06543;rport.
Route: <sip:IP.OF.OPEN.SER;lr=on;ftag=08ea63b0>.
From: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
To: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 102 BYE.
User-Agent: InstantVoice.
Max-Forwards: 70.
Content-Length: 0.
.
#
U 2007/12/17 20:18:02.764249 IP.OF.OPEN.SER:5060 -> IP.OF.BAD.PHONE:5060
BYE sip:paulohm@IP.OF.BAD.PHONE:5060 SIP/2.0.
Via: SIP/2.0/UDP IP.OF.OPEN.SER;branch=z9hG4bK3146.461aa6a3.0.
Via: SIP/2.0/UDP
IP.OF.ASTERISK.SERVER:5060;branch=z9hG4bK5fb06543;rport=5060.
From: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
To: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 102 BYE.
User-Agent: InstantVoice.
Max-Forwards: 69.
Content-Length: 0.
P-hint: rr-enforced.
.
#
U 2007/12/17 20:18:03.011148 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP IP.OF.OPEN.SER:5060;branch=z9hG4bK3146.461aa6a3.0.
Via: SIP/2.0/UDP
IP.OF.ASTERISK.SERVER:5060;branch=z9hG4bK5fb06543;rport=5060.
From: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
To: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 102 BYE.
Content-Length: 0.
.
#
U 2007/12/17 20:18:03.011217 IP.OF.OPEN.SER:5060 ->
IP.OF.ASTERISK.SERVER:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP
IP.OF.ASTERISK.SERVER:5060;branch=z9hG4bK5fb06543;rport=5060.
From: <sip:0215551234@mydomain.com>;tag=as7f8dff8f.
To: "paulohm" <sip:paulohm@mydomain.com>;tag=08ea63b0.
Call-ID: 1246d4ad6834b33a5be2da480a68dc19(a)IP.OF.BAD.PHONE.
CSeq: 102 BYE.
Content-Length: 0.
.
#
U 2007/12/17 20:18:09.337543 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:5060
.
#
U 2007/12/17 20:18:24.927649 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:5060
.
#
U 2007/12/17 20:18:40.328469 IP.OF.BAD.PHONE:5060 -> IP.OF.OPEN.SER:5060
.
Daniel-Constantin Mierla escreveu:
Hello,
On 12/13/07 20:33, Juan Carlos Castro y Castro wrote:
I have a scenario in which an OpenSER machine
distributes load among
several Asterisk machines for outgoing PSTN. I use an external
program which I call through exec_dset() to select which server a
call goes to. I use record_route().
All calls are completed OK, but when I dial from some SIP
user-agents and hang up from the caller side, OpenSER gets crazy and
doesn't know where to route the BYE to. Here's the reason:
Good scenario:
- I make a call to <5551234@mydomain>
- OpenSER calls exec_dset, which turns it into
<providercode#5551234@chosenserver>
- Call is answered
- I hang up
- My UA sends a BYE like this: "BYE
sip:providercode#5551234@chosenserver SIP/2.0"
- I get an OK back, all is well.
(Sometimes the # in the uri above is sent as %23, but it works
either way)
Bad scenario:
- I make a call to <5551234@mydomain>
- OpenSER calls exec_dset, which turns it into
<providercode#5551234@chosenserver>
- Call is answered
- I hang up
- My UA sends a BYE like this: "BYE sip:5551234@mydomain SIP/2.0"
- My openser.cfg doesn't know how to handle that and I get a "Loop
Detected" back. The destination never gets a hangup signal.
Is the second UA from the "bad" scenario disrespecting the RFC? Do I
have any recourse to route a BYE that comes like that to the right
Asterisk server?
are there different UA for 1st and 2nd call? Seems that in the 2nd
call the UA does not do properly record routing. Can you send the sip
trace of such call?
Cheers,
Daniel
Thanks,
Juan
_______________________________________________
Users mailing list
Users(a)lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users