[OpenSIPS-Users] do_routing() Question

Liviu Chircu liviu at opensips.org
Thu Feb 27 14:20:41 EST 2020


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




More information about the Users mailing list