<div dir="ltr"><div><div><div><div><div><div>I guess you're right...<br><br></div>But if it is possible to do this with different means, I would prefer it...<br><br></div>I think I only miss the following points:<br><br></div>* Does $nh(d) work when the Route header enforces the next-hop in an in-dialog request?<br></div>* Is it safe to determine next hop for responses by looking at the first Via header only, or are there exceptions to this?<br><br></div>BR,<br></div>George<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 April 2018 at 21:20, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That's probably true of any Kamailio functionality. :-) But point taken. <br>
<div class="HOEnZb"><div class="h5"><br>
On April 13, 2018 2:09:10 PM EDT, George Diamantopoulos <<a href="mailto:georgediam@gmail.com">georgediam@gmail.com</a>> wrote:<br>
>Well, the "SIP routing with Kamailio" book by Daniel and Elena states:<br>
><br>
>"Defining the onsend_route should be done only if really needed,<br>
>because it<br>
>is executed for each request sent out, excluding the retransmissions."<br>
><br>
>Also, it similarly won't work for responses, only for requests...<br>
><br>
>On 13 April 2018 at 21:00, Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>><br>
>wrote:<br>
><br>
>> "A simpler way to do it, of course, would be to use the onsend_route,<br>
>but<br>
>> that would most likely introduce an unnecessary overhead for all<br>
>routed<br>
>> messages."<br>
>><br>
>> What informs that assumption?<br>
>><br>
>> I suppose there is a measurable nonzero performance penalty to<br>
>anything,<br>
>> but it should be negligible.<br>
>><br>
>> -- Alex<br>
>><br>
>> --<br>
>> Sent via mobile, please forgive typos and brevity.<br>
>><br>
>> ______________________________<wbr>_________________<br>
>> Kamailio (SER) - Users Mailing List<br>
>> <a href="mailto:sr-users@lists.kamailio.org">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/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
>><br>
<br>
<br>
-- Alex<br>
<br>
--<br>
Sent via mobile, please forgive typos and brevity. <br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">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/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</div></div></blockquote></div><br></div>