<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I am trying to get Kamailio working with a third party SIP provider.
This provider pings Kamailio with OPTIONS messages, but Kamailio
does not answer correctly: the Call-ID and the tags change where
they should not. Here is an example:<br>
<br>
Third party SIP server:<br>
<br>
OPTIONS sip:false.sip.provider:5060 SIP/2.0<br>
Via: SIP/2.0/UDP 197.17.144.4:5060;branch=z9hG4bK8e45ac1463a<br>
From: <sip:197.17.144.4>;tag=1669836943<br>
To: <sip:false.sip.provider><br>
Date: Fri, 07 Aug 2015 12:34:37 GMT<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:a012e080-5c41a5ce-8e5-38512c6@197.17.144.4">a012e080-5c41a5ce-8e5-38512c6@197.17.144.4</a><br>
User-Agent: Cisco-CUCM10.5<br>
CSeq: 101 OPTIONS<br>
Contact: <sip:197.17.144.4:5060><br>
Max-Forwards: 0<br>
Content-Length: 0<br>
<br>
Kamailio's answer:<br>
<br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP
197.17.144.4:5060;branch=z9hG4bK93e5f072f5f;received=174.37.217.1<br>
From: <sip:197.17.144.4>;tag=298911055<br>
To:
<sip:false.sip.provider>;tag=b27e1a1d33761e85846fc98f5f3a7e58.8c24<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:2defcb00-5c41aa17-93f-38512c6@197.17.144.4">2defcb00-5c41aa17-93f-38512c6@197.17.144.4</a><br>
CSeq: 101 OPTIONS<br>
Server: kamailio (4.3.1 (x86_64/linux))<br>
Content-Length: 0<br>
<br>
You can see that the Call-ID change from
"a012e080-5c41a5ce-8e5-38512c6" to "2defcb00-5c41aa17-93f-38512c6".
Likewise, the From tag change ("1669836943" to "298911055"). What
could be the reason for this ?<br>
Moreover I think Kamailio should add the field Allow (with
INVITE,ACK,BYE,CANCEL,INFO,OPTIONS,REFER,SUBSCRIBE,NOTIFY), but it
does not.<br>
<br>
I should mention that I had to modify <i>kamailio.cfg</i> to have
Kamailio answer to OPTIONS messages (I added <b>the code in bold</b>):<br>
<br>
if (<b>!is_method("OPTIONS") && </b>!mf_process_maxfwd_header("10"))
{<br>
sl_send_reply("483","Too Many Hops");<br>
exit;<br>
}<br>
<br>
if(is_method("OPTIONS") && uri==myself &&
$rU==$null) {<br>
<b>#</b> sl_send_reply("200","Keepalive");<br>
<b>options_reply();</b><br>
exit;<br>
}<br>
<br>
Maybe this hack replaces an expected behavior that I failed to
see/configure ?<br>
<br>
Thanks,<br>
Jean-Marie.<br>
</body>
</html>