I guess you're right...
But if it is possible to do this with different means, I would prefer it...
I think I only miss the following points:
* Does $nh(d) work when the Route header enforces the next-hop in an in-dialog request? * Is it safe to determine next hop for responses by looking at the first Via header only, or are there exceptions to this?
BR, George
On 13 April 2018 at 21:20, Alex Balashov abalashov@evaristesys.com wrote:
That's probably true of any Kamailio functionality. :-) But point taken.
On April 13, 2018 2:09:10 PM EDT, George Diamantopoulos < georgediam@gmail.com> wrote:
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@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex
-- Sent via mobile, please forgive typos and brevity.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users