Hi all, Can't receive a 200 0k response from openser register server when URI in a To header field in a REGISTER request contains escaped characters. The details can be as follows: 1 Test topology:
NUT(REG && PX) UA11 UA12 DNS | | | | IP : 3ffe:501:ffff:50::50 3ffe:501:ffff:1::1 3ffe:501:ffff:2::2 3ffe:501:ffff:4::1 aor-uri : ss.under.test.com UA11@under.test.com UA12@under.test.com contact-uri : UA11@node.under.test.com UA12@node11.under.test.com 2 tcpdump file can be seen in "14 SIP Registrar- SIP Register-Sequence Number is not Incremented.pcap" attachment 3 openser configuration file can be seen in "openser.cfg" attachment How can I modify the configuration file if I want to receive the 200 OK?
-------------------------------------- Regards! Hu xiaoqiang
2010/6/22 Xiaoqiang Hu xhu@redhat.com:
Hi all, Can't receive a 200 0k response from openser register server when URI in a To header field in a REGISTER request contains escaped characters. The details can be as follows:
Please, paste a single SIP trace instead of attaching a pcap file.
Test sequence are as follows: NUT UA11 UA12 UA13 UA14 PX2 PX3 PX4 DNS No time | | | | | | | | | No time | | | | | | | | | [0001: 0.00| ] |--->| | | | | | | | NS [0002: 0.00| ] |<---| | | | | | | | NA [0003: 3.00|U ] REGIS |<---| | | | | | | | REGISTER sip:ss.under.test.com:5060 [0004: 3.00|U ] 401 |--->| | | | | | | | 401 Unauthorized (REGISTER) [0005: 3.07|U ] REGIS |<---| | | | | | | | REGISTER sip:ss.under.test.com:5060 [0006: 3.07|U ] 403 |--->| | | | | | | | 403 Forbidden auth ID (REGISTER)
-------------------------------------- Regards! Hu xiaoqiang Quality Assurance Engineer IRC Account:xhu Channel:#apac #apac-qa
----- Original Message ----- From: "Iñaki Baz Castillo" ibc@aliax.net To: "Xiaoqiang Hu" xhu@redhat.com Cc: sr-users@lists.sip-router.org Sent: Tuesday, June 22, 2010 4:40:53 AM GMT -05:00 US/Canada Eastern Subject: Re: [SR-Users] Can't receive a 200 0k response from openser register server when URI in a To header field in a REGISTER request contains escaped characters.
2010/6/22 Xiaoqiang Hu xhu@redhat.com:
Hi all, Can't receive a 200 0k response from openser register server when URI in a To header field in a REGISTER request contains escaped characters. The details can be as follows:
Please, paste a single SIP trace instead of attaching a pcap file.
2010/6/22 Xiaoqiang Hu xhu@redhat.com:
Test sequence are as follows:
Hi, I mean a real SIP trace in which I could inspect the REGISTER headers and so.
That's true.
Openser/Kamailio does not decode URI automatically - it has to be done manually in script.
In your case you need to replace check_from and check_to with manual checks, which compare unescaped To/From URIs with unescaepd authentication user, see:
http://www.kamailio.org/dokuwiki/doku.php/transformations:1.3.x#sunescapeuse...
Further, it is rather useless doing compliance testing against an old, unsupported version.
regards Klaus
Am 22.06.2010 03:57, schrieb Xiaoqiang Hu:
Hi all, Can't receive a 200 0k response from openser register server when URI in a To header field in a REGISTER request contains escaped characters. The details can be as follows: 1 Test topology:
NUT(REG&& PX) UA11 UA12 DNS | | | |
IP : 3ffe:501:ffff:50::50 3ffe:501:ffff:1::1 3ffe:501:ffff:2::2 3ffe:501:ffff:4::1 aor-uri : ss.under.test.com UA11@under.test.com UA12@under.test.com contact-uri : UA11@node.under.test.com UA12@node11.under.test.com 2 tcpdump file can be seen in "14 SIP Registrar- SIP Register-Sequence Number is not Incremented.pcap" attachment 3 openser configuration file can be seen in "openser.cfg" attachment How can I modify the configuration file if I want to receive the 200 OK?
Regards! Hu xiaoqiang
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