[SR-Users] proxy BYE to itself

caio elcaio at gmail.com
Sat Oct 8 07:09:35 CEST 2011


Hello,

I have the following issue.
A calls B, talk for a while, then B sends a BYE, but A never receives it.
The BYE is transmited from the proxy listening interface:port to itself, but
not to the asterisk port.

     U 2011/10/08 00:29:29.207335 Kamailio_IP:5060 -> Kamailio_IP:5060
     BYE sip:Kamailio_IP;lr=on SIP/2.0.

The scenario is:

  A (pstn subs) --> Asterisk:5080 --> Kamailio:5060 --> B (registered sip
ua)

Asterisk and Kamailio are in the same box, listening both at the same IP
(eth iface) address, but one at port 5080, and the proxy at 5060 (udp).
The configuration is based on kamailio.cfg file provided by the v3.1.5 (with
a few modules added, like dialplan and cr..etc).

If A is who send the BYE, everything goes well.

I attach the full sip capture.
Thanks for you time.

Claudio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111008/beace5b6/attachment.htm>
-------------- next part --------------


U 2011/10/08 00:29:19.780147 Asterisk_IP:5080 -> Kamailio_IP:5060
INVITE sip:499999 at mydomain.com:5060 SIP/2.0.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK027b6081.
Max-Forwards: 70.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>.
Contact: <sip:44123456 at Asterisk_IP:5080>.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
CSeq: 102 INVITE.
User-Agent: AsteriskGW.
Date: Sat, 08 Oct 2011 03:29:19 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH.
Supported: replaces, timer.
Remote-Party-ID: "44123456" <sip:44123456 at Kamailio_IP>;party=calling;privacy=off;screen=yes.
Content-Type: application/sdp.
Content-Length: 252.
.
v=0.
o=root 1104108652 1104108652 IN IP4 Kamailio_IP
s=AsteriskGW.
c=IN IP4 Kamailio_IP.
t=0 0.
m=audio 13484 RTP/AVP 8 0 101.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=ptime:20.
a=sendrecv.


U 2011/10/08 00:29:19.795844 Kamailio_IP:5060 -> Asterisk_IP:5080
SIP/2.0 100 trying -- your call is important to us.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK027b6081.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
CSeq: 102 INVITE.
Server: ProxySIP.
Content-Length: 0.
.


U 2011/10/08 00:29:19.796040 Kamailio_IP:5060 -> UserAgent_IP:5060
INVITE sip:499999 at UserAgent_IP:5060 SIP/2.0.
Record-Route: <sip:Kamailio_IP;lr=on>.
Via: SIP/2.0/UDP Kamailio_IP;branch=z9hG4bK73a4.b33f8677.0.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK027b6081.
Max-Forwards: 69.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>.
Contact: <sip:44123456 at Asterisk_IP:5080>.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
CSeq: 102 INVITE.
User-Agent: AsteriskGW.
Date: Sat, 08 Oct 2011 03:29:19 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH.
Supported: replaces, timer.
Remote-Party-ID: "44123456" <sip:44123456 at Kamailio_IP>;party=calling;privacy=off;screen=yes.
Content-Type: application/sdp.
Content-Length: 252.
.
v=0.
o=root 1104108652 1104108652 IN IP4 Kamailio_IP.
s=AsteriskGW.
c=IN IP4 Kamailio_IP.
t=0 0.
m=audio 13484 RTP/AVP 8 0 101.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=ptime:20.
a=sendrecv.


U 2011/10/08 00:29:19.838329 UserAgent_IP:5060 -> Kamailio_IP:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP Kamailio_IP;branch=z9hG4bK73a4.b33f8677.0.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK027b6081.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
CSeq: 102 INVITE.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
Contact: <sip:499999 at UserAgent_IP:5060>.
Record-Route: <sip:Kamailio_IP;lr=on>.
User-Agent: PolycomSoundPointIP-SPIP_330-UA/3.0.4.0061.
Content-Length: 0.
.


U 2011/10/08 00:29:20.010705 UserAgent_IP:5060 -> Kamailio_IP:5060
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP Kamailio_IP;branch=z9hG4bK73a4.b33f8677.0.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK027b6081.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
CSeq: 102 INVITE.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
Contact: <sip:499999 at UserAgent_IP:5060>.
Record-Route: <sip:Kamailio_IP;lr=on>.
User-Agent: PolycomSoundPointIP-SPIP_330-UA/3.0.4.0061.
Allow-Events: talk,hold,conference.
Content-Length: 0.
.


U 2011/10/08 00:29:20.011402 Kamailio_IP:5060 -> Asterisk_IP:5080
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK027b6081.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
CSeq: 102 INVITE.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
Contact: <sip:499999 at UserAgent_IP:5060>.
Record-Route: <sip:Kamailio_IP;lr=on>.
User-Agent: PolycomSoundPointIP-SPIP_330-UA/3.0.4.0061.
Allow-Events: talk,hold,conference.
Content-Length: 0.
.


U 2011/10/08 00:29:24.697739 UserAgent_IP:5060 -> Kamailio_IP:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP Kamailio_IP;branch=z9hG4bK73a4.b33f8677.0.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK027b6081.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
CSeq: 102 INVITE.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
Contact: <sip:499999 at UserAgent_IP:5060>.
Record-Route: <sip:Kamailio_IP;lr=on>.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_330-UA/3.0.4.0061.
Content-Type: application/sdp.
Content-Length: 204.
.
v=0.
o=- 1167890284 1167890284 IN IP4 UserAgent_IP.
s=Polycom IP Phone.
c=IN IP4 UserAgent_IP.
t=0 0.
m=audio 12012 RTP/AVP 8 101.
a=sendrecv.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.


U 2011/10/08 00:29:24.698645 Kamailio_IP:5060 -> Asterisk_IP:5080
SIP/2.0 200 OK.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK027b6081.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
CSeq: 102 INVITE.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
Contact: <sip:499999 at UserAgent_IP:5060>.
Record-Route: <sip:Kamailio_IP;lr=on>.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_330-UA/3.0.4.0061.
Content-Type: application/sdp.
Content-Length: 204.
.
v=0.
o=- 1167890284 1167890284 IN IP4 UserAgent_IP.
s=Polycom IP Phone.
c=IN IP4 UserAgent_IP.
t=0 0.
m=audio 12012 RTP/AVP 8 101.
a=sendrecv.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.


U 2011/10/08 00:29:24.723752 Asterisk_IP:5080 -> Kamailio_IP:5060
ACK sip:499999 at UserAgent_IP:5060 SIP/2.0.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK28eb49a9.
Route: <sip:Kamailio_IP;lr=on>.
Max-Forwards: 70.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
Contact: <sip:44123456 at Asterisk_IP:5080>.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
CSeq: 102 ACK.
User-Agent: AsteriskGW.
Content-Length: 0.
.


U 2011/10/08 00:29:24.724985 Kamailio_IP:5060 -> UserAgent_IP:5060
ACK sip:499999 at UserAgent_IP:5060 SIP/2.0.
Via: SIP/2.0/UDP Kamailio_IP;branch=z9hG4bKcydzigwkX.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK28eb49a9.
Max-Forwards: 69.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
Contact: <sip:44123456 at Asterisk_IP:5080>.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
CSeq: 102 ACK.
User-Agent: AsteriskGW.
Content-Length: 0.
.


U 2011/10/08 00:29:29.206463 UserAgent_IP:5060 -> Kamailio_IP:5060
BYE sip:44123456 at Asterisk_IP:5080 SIP/2.0.
Via: SIP/2.0/UDP UserAgent_IP:5060;branch=z9hG4bK978cd66b1B4EB488.
From: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
To: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
Route: <sip:Kamailio_IP;lr=on>.
CSeq: 1 BYE.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
Contact: <sip:499999 at UserAgent_IP:5060>.
User-Agent: PolycomSoundPointIP-SPIP_330-UA/3.0.4.0061.
Max-Forwards: 70.
Content-Length: 0.
.


U 2011/10/08 00:29:29.207335 Kamailio_IP:5060 -> Kamailio_IP:5060
BYE sip:Kamailio_IP;lr=on SIP/2.0.
Via: SIP/2.0/UDP Kamailio_IP;branch=z9hG4bKe9b2.b17c4694.0.
Via: SIP/2.0/UDP UserAgent_IP:5060;branch=z9hG4bK978cd66b1B4EB488.
From: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
To: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
CSeq: 1 BYE.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
Contact: <sip:499999 at UserAgent_IP:5060>.
User-Agent: PolycomSoundPointIP-SPIP_330-UA/3.0.4.0061.
Max-Forwards: 69.
Content-Length: 0.
.


U 2011/10/08 00:29:29.208326 Kamailio_IP:5060 -> Kamailio_IP:5060
SIP/2.0 404 Not here.
Via: SIP/2.0/UDP Kamailio_IP;branch=z9hG4bKe9b2.b17c4694.0.
Via: SIP/2.0/UDP UserAgent_IP:5060;branch=z9hG4bK978cd66b1B4EB488.
From: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
To: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
CSeq: 1 BYE.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
Server: ProxySIP.
Content-Length: 0.
.


U 2011/10/08 00:29:29.209219 Kamailio_IP:5060 -> UserAgent_IP:5060
SIP/2.0 404 Not here.
Via: SIP/2.0/UDP UserAgent_IP:5060;branch=z9hG4bK978cd66b1B4EB488.
From: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
To: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
CSeq: 1 BYE.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
Server: ProxySIP.
Content-Length: 0.
.


U 2011/10/08 00:29:32.694076 Asterisk_IP:5080 -> Kamailio_IP:5060
BYE sip:499999 at UserAgent_IP:5060 SIP/2.0.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK05ea62c6.
Route: <sip:Kamailio_IP;lr=on>.
Max-Forwards: 70.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
CSeq: 103 BYE.
User-Agent: AsteriskGW.
X-Asterisk-HangupCause: Normal Clearing.
X-Asterisk-HangupCauseCode: 16.
Content-Length: 0.
.


U 2011/10/08 00:29:32.695055 Kamailio_IP:5060 -> UserAgent_IP:5060
BYE sip:499999 at UserAgent_IP:5060 SIP/2.0.
Via: SIP/2.0/UDP Kamailio_IP;branch=z9hG4bK83a4.161d86a2.0.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK05ea62c6.
Max-Forwards: 69.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
CSeq: 103 BYE.
User-Agent: AsteriskGW.
X-Asterisk-HangupCause: Normal Clearing.
X-Asterisk-HangupCauseCode: 16.
Content-Length: 0.
.


U 2011/10/08 00:29:32.742965 UserAgent_IP:5060 -> Kamailio_IP:5060
SIP/2.0 500 Internal Server Error.
Via: SIP/2.0/UDP Kamailio_IP;branch=z9hG4bK83a4.161d86a2.0.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK05ea62c6.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
CSeq: 103 BYE.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
Contact: <sip:499999 at UserAgent_IP:5060>.
User-Agent: PolycomSoundPointIP-SPIP_330-UA/3.0.4.0061.
Content-Length: 0.
.


U 2011/10/08 00:29:32.743539 Kamailio_IP:5060 -> Asterisk_IP:5080
SIP/2.0 500 Internal Server Error.
Via: SIP/2.0/UDP Asterisk_IP:5080;branch=z9hG4bK05ea62c6.
From: "44123456" <sip:44123456 at Asterisk_IP:5080>;tag=as4c2c71f7.
To: <sip:499999 at mydomain.com:5060>;tag=720D3841-6C8B3BFE.
CSeq: 103 BYE.
Call-ID: 529ea2035d97d8434c28a28c01d9a86d at Asterisk_IP:5080.
Contact: <sip:499999 at UserAgent_IP:5060>.
User-Agent: PolycomSoundPointIP-SPIP_330-UA/3.0.4.0061.
Content-Length: 0.
.


More information about the sr-users mailing list