[OpenSIPS-Users] do_routing() Question

Mark Farmer farmorg at gmail.com
Thu Feb 27 15:31:40 EST 2020


Thanks for the clarification Liviu.

Mark.


On Thu, 27 Feb 2020 at 14:20, Liviu Chircu <liviu at opensips.org> wrote:

> 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
>
>

-- 
Mark Farmer
farmorg at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200227/87856e53/attachment-0001.html>


More information about the Users mailing list