On 27.02.2020 16:17, Mark Farmer wrote:
If I use do_routing() in an if statement like this:

if (is_from_gw("2") && do_routing("3")) {
    set flag(EXT_TPTY);
    ...
}

Do I need to call do_routing() again before actually routing the call?

Hi, Mark!

Unless you specify the "C" flag, do_routing() will overwrite your R-URI by default.  So you can t_relay() right after the 1st call!

Regards,

--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com

OpenSIPS Summit, Amsterdam, May 2020
  www.opensips.org/events
OpenSIPS Bootcamp, Miami, March 2020
  www.opensips.org/training


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to