Hi, Following this issue, and the issue "BYE dialog timeout bad syntax" from Julia.
I have 2 kamailio servers. srv1 creates a dlg_timeout BYE and sends it to srv2 that forwards the BYE to the next sip server (some other server...). I can definitely see that the BYE that is being forward is malformed. The TO header info is not complete (the port section for example). When a "normal" bye is received from srv1 (not dlg_timeout) all works fine. One thing that i do in this scenario, on srv2 i use uac_replace() on the TO header. So, it is OK that the final destination is different (i do translations). I attached the BYE from both servers. Any ideas? Thanks, Uri You probably meant the To and From headers, I'm guessing. Yeah, as long as there is no display name component, URIs in headers like that don't have to go in <>s. The way Kamailio sends it is grammatically valid, per RFC 3261. The user agents are at fault for not understanding it correctly. Alex Balashov <abalashov at evaristesys.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>> wrote: >*"BYE headers"? Which headers? *>* *>*Uri Shacked <ushacked at gmail.com <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>> wrote: *>* *>>*Hi, *>>* *>>*I think there is a bug with the BYE that is sent to the caller and *>>*callee *>>*when dialog timeout happends. *>>* *>> *The BYE headers are sent with no "<" or ">". *>>*So, some sip singaling points decline the BYE. *>>* *>>*BR, *>>*Uri *>>* *>>* *>>*------------------------------------------------------------------------ *>>* *>>*_______________________________________________ *>>*SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing *>*list *>>*sr-users at lists.sip-router.org<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users> *>>*http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users *>* *>*-- *>*Sent from my mobile, and thus lacking in the refinement one might *>*expect from a fully-fledged keyboard. *>* *>*Alex Balashov - Principal *>*Evariste Systems LLC *>*235 E Ponce de Leon Ave *>*Suite 106 *>*Decatur, GA 30030 *>*United States *>*Tel: +1-678-954-0670 *>*Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ *>* *>*_______________________________________________ *>*SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list * >*sr-users at >lists.sip-router.org<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users> *>*http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users * -- Sent from my Nexus 10, with all the figments of autocorrect that might imply. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 United States Tel: +1-678-954-0670 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: < http://lists.sip-router.org/pipermail/sr-users/attachments/20130422/0c752722/attachment.html>
No. Time Source Destination Protocol Info 840 12.581023 172.16.60.113 10.25.152.162 SIP Request: BYE sip:10.1.1.10;line=sr-ORylI1mMTXNMIX1fTHSlC1S.TMenCXNnCXSnCHWgC6NlIP4MsdepOwLA3-J* | Frame 30: 840 bytes on wire (6720 bits), 840 bytes captured (6720 bits) WTAP_ENCAP: 25 Arrival Time: Apr 24, 2013 14:43:20.512455000 Jerusalem Daylight Time [Time shift for this packet: 0.000000000 seconds] Epoch Time: 1366803800.512455000 seconds [Time delta from previous captured frame: 0.000111000 seconds] [Time delta from previous displayed frame: 0.000111000 seconds] [Time since reference or first frame: 12.581023000 seconds] Frame Number: 30 Frame Length: 840 bytes (6720 bits) Capture Length: 840 bytes (6720 bits) [Frame is marked: False] [Frame is ignored: False] [Protocols in frame: sll:ip:udp:sip] [Coloring Rule Name: UDP] [Coloring Rule String: udp] Linux cooked capture Packet type: Sent by us (4) Link-layer address type: 1 Link-layer address length: 6 Source: Intel_e4:a3:d3 (00:04:23:e4:a3:d3) Protocol: IP (0x0800) Internet Protocol Version 4 Version: 4 Header length: 20 bytes Differentiated Services Field: 0x10 (DSCP 0x04: Unknown DSCP; ECN: 0x00: Not-ECT (Not ECN-Capable Transport)) 0001 00.. = Differentiated Services Codepoint: Unknown (0x04) .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00) Total Length: 824 Identification: 0x2f3a (12090) Flags: 0x00 0... .... = Reserved bit: Not set .0.. .... = Don't fragment: Not set ..0. .... = More fragments: Not set Fragment offset: 0 Time to live: 64 Protocol: UDP (17) Header checksum: 0xbd2e [validation disabled] [Good: False] [Bad: False] Source: 172.16.60.113 (172.16.60.113) Destination: 10.25.152.162 (10.25.152.162) [Source GeoIP: Unknown] [Destination GeoIP: Unknown] User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060) Source port: sip (5060) Destination port: sip (5060) Length: 804 Checksum: 0x8e72 [validation disabled] [Good Checksum: False] [Bad Checksum: False] Session Initiation Protocol (BYE) Request-Line: BYE sip:10.1.1.10;line=sr-ORylI1mMTXNMIX1fTHSlC1S.TMenCXNnCXSnCHWgC6NlIP4MsdepOwLA3-J* SIP/2.0 Method: BYE Request-URI: sip:10.1.1.10;line=sr-ORylI1mMTXNMIX1fTHSlC1S.TMenCXNnCXSnCHWgC6NlIP4MsdepOwLA3-J* Request-URI Host Part: 10.1.1.10 [Resent Packet: False] Message Header Via: SIP/2.0/UDP 172.16.60.113;branch=z9hG4bK8b64.578e48e1.0 Transport: UDP Sent-by Address: 172.16.60.113 Branch: z9hG4bK8b64.578e48e1.0 To: sip:1255010007@172.16.60.113:5060;user=phone;tag=9304443427218046971 SIP to address: sip:1255010007@172.16.60.113:5060 SIP to address User Part: 1255010007 SIP to address Host Part: 172.16.60.113 SIP to address Host Port: 5060 SIP to tag: 9304443427218046971 From: sip:039988002@172.16.60.6;user=phone;tag=223776478-1366802503044- SIP from address: sip:039988002@172.16.60.6 SIP from address User Part: 039988002 SIP from address Host Part: 172.16.60.6 SIP from tag: 223776478-1366802503044- CSeq: 501451460 BYE Sequence Number: 501451460 Method: BYE Call-ID: BW142143044240413409699125@172.16.60.6 [truncated] Route: <sip:10.25.152.162;lr=on;ftag=223776478-1366802503044-;did=fde.405;vst=AAAAAHUBAAMDCAkEBgdwA3cDGQMYHwAeGAEfAgsGCgMADUVzZXI9cGhvbmU->, <sip:172.16.60.113;lr;ftag=223776478-1366802503044-;vsf=AAAAAAMKAAEACAACCSNBVA9BQ1JHWF Route URI: sip:10.25.152.162;lr=on;ftag=223776478-1366802503044-;did=fde.405;vst=AAAAAHUBAAMDCAkEBgdwA3cDGQMYHwAeGAEfAgsGCgMADUVzZXI9cGhvbmU- Route Host Part: 10.25.152.162 Route URI parameter: lr=on Route URI parameter: ftag=223776478-1366802503044- Route URI parameter: did=fde.405 Route URI parameter: vst=AAAAAHUBAAMDCAkEBgdwA3cDGQMYHwAeGAEfAgsGCgMADUVzZXI9cGhvbmU- Route URI: sip:172.16.60.113;lr;ftag=223776478-1366802503044-;vsf=AAAAAAMKAAEACAACCSNBVA9BQ1JHWFFcT3tERFdcDEZGWV5LNjo1MDYwO3VzZXI9cGhvbmU-;vst=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAAwsGCgMADUVzZXI9cGhvbmU- Route Host Part: 172.16.60.113 Route URI parameter: lr Route URI parameter: ftag=223776478-1366802503044- Route URI parameter: vsf=AAAAAAMKAAEACAACCSNBVA9BQ1JHWFFcT3tERFdcDEZGWV5LNjo1MDYwO3VzZXI9cGhvbmU- Route URI parameter: vst=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAAwsGCgMADUVzZXI9cGhvbmU- Content-Length: 0 User-Agent: kamailio (3.3.1 (x86_64/linux)) Max-Forwards: 70
No. Time Source Destination Protocol Info 779 12.594079 10.25.152.162 172.16.60.113 SIP Request: BYE sip:10.1.1.10;line=sr-ORylI1mMTXNMIX1fTHSlC1S.TMenCXNnCXSnCHWgC6NlIP4MsdepOwLA3-J* | Frame 32: 779 bytes on wire (6232 bits), 779 bytes captured (6232 bits) WTAP_ENCAP: 25 Arrival Time: Apr 24, 2013 14:43:20.525511000 Jerusalem Daylight Time [Time shift for this packet: 0.000000000 seconds] Epoch Time: 1366803800.525511000 seconds [Time delta from previous captured frame: 0.008986000 seconds] [Time delta from previous displayed frame: 0.008986000 seconds] [Time since reference or first frame: 12.594079000 seconds] Frame Number: 32 Frame Length: 779 bytes (6232 bits) Capture Length: 779 bytes (6232 bits) [Frame is marked: False] [Frame is ignored: False] [Protocols in frame: sll:ip:udp:sip] [Coloring Rule Name: UDP] [Coloring Rule String: udp] Linux cooked capture Packet type: Unicast to us (0) Link-layer address type: 1 Link-layer address length: 6 Source: Cisco_2e:84:80 (00:11:5c:2e:84:80) Protocol: IP (0x0800) Internet Protocol Version 4 Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport)) 0000 00.. = Differentiated Services Codepoint: Default (0x00) .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00) Total Length: 763 Identification: 0x7b22 (31522) Flags: 0x00 0... .... = Reserved bit: Not set .0.. .... = Don't fragment: Not set ..0. .... = More fragments: Not set Fragment offset: 0 Time to live: 58 Protocol: UDP (17) Header checksum: 0x7793 [validation disabled] [Good: False] [Bad: False] Source: 10.25.152.162 (10.25.152.162) Destination: 172.16.60.113 (172.16.60.113) [Source GeoIP: Unknown] [Destination GeoIP: Unknown] User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060) Source port: sip (5060) Destination port: sip (5060) Length: 743 Checksum: 0xe40f [validation disabled] [Good Checksum: False] [Bad Checksum: False] Session Initiation Protocol (BYE) Request-Line: BYE sip:10.1.1.10;line=sr-ORylI1mMTXNMIX1fTHSlC1S.TMenCXNnCXSnCHWgC6NlIP4MsdepOwLA3-J* SIP/2.0 Method: BYE Request-URI: sip:10.1.1.10;line=sr-ORylI1mMTXNMIX1fTHSlC1S.TMenCXNnCXSnCHWgC6NlIP4MsdepOwLA3-J* Request-URI Host Part: 10.1.1.10 [Resent Packet: False] Message Header Via: SIP/2.0/UDP 10.25.152.162;branch=z9hG4bK8b64.a7c25406.0 Transport: UDP Sent-by Address: 10.25.152.162 Branch: z9hG4bK8b64.a7c25406.0 Via: SIP/2.0/UDP 172.16.60.113;branch=z9hG4bK8b64.578e48e1.0 Transport: UDP Sent-by Address: 172.16.60.113 Branch: z9hG4bK8b64.578e48e1.0 To: sip:D35639946002@172.16.60.113:50 SIP to address: sip:D35639946002@172.16.60.113:50 SIP to address User Part: D35639946002 SIP to address Host Part: 172.16.60.113 SIP to address Host Port: 50 Eser=phone;user=phone;tag=9304443427218046971 From: sip:039988002@172.16.60.6;user=phone;tag=223776478-1366802503044- SIP from address: sip:039988002@172.16.60.6 SIP from address User Part: 039988002 SIP from address Host Part: 172.16.60.6 SIP from tag: 223776478-1366802503044- CSeq: 501451460 BYE Sequence Number: 501451460 Method: BYE Call-ID: BW142143044240413409699125@172.16.60.6 Route: <sip:172.16.60.113;lr;ftag=223776478-1366802503044-;vsf=AAAAAAMKAAEACAACCSNBVA9BQ1JHWFFcT3tERFdcDEZGWV5LNjo1MDYwO3VzZXI9cGhvbmU-;vst=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAAwsGCgMADUVzZXI9cGhvbmU-> Route URI: sip:172.16.60.113;lr;ftag=223776478-1366802503044-;vsf=AAAAAAMKAAEACAACCSNBVA9BQ1JHWFFcT3tERFdcDEZGWV5LNjo1MDYwO3VzZXI9cGhvbmU-;vst=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAAwsGCgMADUVzZXI9cGhvbmU- Route Host Part: 172.16.60.113 Route URI parameter: lr Route URI parameter: ftag=223776478-1366802503044- Route URI parameter: vsf=AAAAAAMKAAEACAACCSNBVA9BQ1JHWFFcT3tERFdcDEZGWV5LNjo1MDYwO3VzZXI9cGhvbmU- Route URI parameter: vst=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAAwsGCgMADUVzZXI9cGhvbmU- Content-Length: 0 User-Agent: kamailio (3.3.1 (x86_64/linux)) Max-Forwards: 69
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users