<div dir="ltr">Thanks for the clarification Liviu.<div><br></div><div>Mark.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 27 Feb 2020 at 14:20, Liviu Chircu <<a href="mailto:liviu@opensips.org">liviu@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On 27.02.2020 16:17, Mark Farmer wrote:<br>
> If I use do_routing() in an if statement like this:<br>
><br>
> if (is_from_gw("2") && do_routing("3")) {<br>
> set flag(EXT_TPTY);<br>
> ...<br>
> }<br>
><br>
> Do I need to call do_routing() again before actually routing the call?<br>
<br>
Hi, Mark!<br>
<br>
Unless you specify the "C" flag, do_routing() will overwrite your R-URI <br>
by default. So you can t_relay() right after the 1st call!<br>
<br>
Regards,<br>
<br>
-- <br>
Liviu Chircu<br>
<a href="http://www.twitter.com/liviuchircu" rel="noreferrer" target="_blank">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">www.opensips-solutions.com</a><br>
<br>
OpenSIPS Summit, Amsterdam, May 2020<br>
<a href="http://www.opensips.org/events" rel="noreferrer" target="_blank">www.opensips.org/events</a><br>
OpenSIPS Bootcamp, Miami, March 2020<br>
<a href="http://www.opensips.org/training" rel="noreferrer" target="_blank">www.opensips.org/training</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>