Well, the "SIP routing with Kamailio" book by Daniel and Elena states:
"Defining the onsend_route should be done only if really needed, because it
is executed for each request sent out, excluding the retransmissions."
Also, it similarly won't work for responses, only for requests...
On 13 April 2018 at 21:00, Alex Balashov <abalashov(a)evaristesys.com> wrote:
"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."
What informs that assumption?
I suppose there is a measurable nonzero performance penalty to anything,
but it should be negligible.
-- Alex
--
Sent via mobile, please forgive typos and brevity.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users