<div dir="ltr"><div><div>Well, the "SIP routing with Kamailio" book by Daniel and Elena states:<br><br></div>"Defining the onsend_route should be done only if really needed, because it is executed for each request sent out, excluding the retransmissions."<br><br></div>Also, it similarly won't work for responses, only for requests...<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 April 2018 at 21:00, 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"><span class="">"A simpler way to do it, of course, would be to use the onsend_route, but that would most likely introduce an unnecessary overhead for all routed messages."<br>
<br>
</span>What informs that assumption?<br>
<br>
I suppose there is a measurable nonzero performance penalty to anything, 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>
</blockquote></div><br></div>