<div dir="ltr"><div>Thank you for the reply Karsten!</div><div><br></div><div>I'm afraid the options_reply() function won't work for me. The reason is that it seems to only handle OPTIONS where the RURI username is not set, and in my case I need to be able to handle these cases.</div><div><br></div><div>Moreover, it is not evident from the siputils module documentation if it will perform NAT traversal on the side of kamailio, which is my original problem. I'm beginning to think I can't serve NATted endpoints' requests statelessly and that I'd have to handle the reply statefully, am I right in thinking that?</div><div><br></div><div>BR,</div><div>George<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 5 Jul 2019 at 09:37, Karsten Horsmann <<a href="mailto:khorsmann@gmail.com">khorsmann@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi George,<div><br></div><div>i use something like that (shameless stolen from other configuration files within request-route).</div><div><br></div><div>Thats for answering options to my internal kamailio.</div><div>But Alex Balashov wrote an nice blog poste about NAT/OPTION Pings </div><div>with kamailio: <a href="http://www.evaristesys.com/blog/server-side-nat-traversal-with-kamailio-the-definitive-guide/" target="_blank">http://www.evaristesys.com/blog/server-side-nat-traversal-with-kamailio-the-definitive-guide/</a></div><div><br></div><div>    ### only initial requests (no To tag)<br>    if (is_method("OPTIONS"))<br>    {<br>        if (uri=~"sip:.*[@]+.*")  {<br>            sl_send_reply("501", "Not Implemented");<br>        }<br>        else {<br>            options_reply();<br>            exit;<br>        }<br>    }<br></div><div><br></div><div>Cheers Karsten</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 4. Juli 2019 um 10:29 Uhr schrieb George Diamantopoulos <<a href="mailto:georgediam@gmail.com" target="_blank">georgediam@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello all,</div><div><br></div><div>I've been trying to handle OPTIONS statelessly, but proper handling fails for UACs behind NAT without ALG. I thought I'd overcome this by setting the $du pseudovariable, but apparently I'm missing something. The following does not work:</div><div><br></div><div>        if ($Rp == "6050") {<br></div><div>            force_send_socket(udp:<a href="http://10.10.10.10:6050" target="_blank">10.10.10.10:6050</a>);</div><div>        }</div><div>        $du = "sip:" + $si + ":" + $sp;<br>        sl_send_reply("200","OK");</div><div>        exit;</div><div><br></div><div>I'm now realising that I put this in request_route() so force_send_socket() and $du have no use whatsoever, since the request is not forwarded anywhere. Is this the reason?<br></div><div><br></div><div>So the question is, how can I do the following things for a stateless reply: a) choose a sending socket for the reply and b) change the destination for the reply to something other than the URI in the first Via header.</div><div><br></div><div>Thanks!</div><div><br></div><div>BR,</div><div>George<br></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-8609533405661929171gmail_signature">Mit freundlichen Grüßen<br>*Karsten Horsmann*<br></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>