<div dir="ltr"><div><div><div>It is work for qualify - thanks.<br><br></div>Looking for solution for external Asterisk subsribtion of presence states.<br></div>Found the Pinan projec in the web, but it seems only Asterisk 1.4 supported.<br>
</div>I needs for Asterisk 11 or 12 version.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-24 17:37 GMT+02:00 Daniel Tryba <span dir="ltr"><<a href="mailto:daniel@pocos.nl" target="_blank">daniel@pocos.nl</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Monday 24 March 2014 15:23:31 Alexandr Usov wrote:<br>
> Peers (from Internet behind NAT) registered on Kamailio (local ip<br>
> 192.168.182.1), calls from/to routed via Asterisk (192.168.182.24).<br>
><br>
><br>
> Can't use qualify info:<br>
><br>
> <--- SIP read from UDP:<a href="http://192.168.182.1:5060" target="_blank">192.168.182.1:5060</a> ---><br>
> SIP/2.0 484 Address Incomplete<br>
...<br>
> <-------------><br>
<br>
Check your kamailio.cfg. In the "default" config OPTIONS get this response due<br>
to:<br>
        if ($rU==$null)<br>
        {<br>
                # request with no Username in RURI<br>
                sl_send_reply("484","Address Incomplete");<br>
                exit;<br>
        }<br>
<br>
You'll have to response with a 200 yourself, eg:<br>
<br>
route[REQINIT]{<br>
...<br>
        if($si=="192.168.182.24" && is_method("OPTIONS"))<br>
        {<br>
                sl_send_reply("200","Up and running");<br>
                exit;<br>
        }<br>
<br>
It's up to you to decide to which OPTIONS requests to response with what code.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<br>
POCOS B.V. - Croy 9c - 5653 LC Eindhoven<br>
Telefoon: 040 293 8661 - Fax: 040 293 8658<br>
<a href="http://www.pocos.nl/" target="_blank">http://www.pocos.nl/</a>   - <a href="http://www.sipo.nl/" target="_blank">http://www.sipo.nl/</a><br>
K.v.K. Eindhoven 17097024<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</font></span></blockquote></div><br></div>