<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hello,<br>
<br>
Using a proper script logic you can get to replacing the TO/FROM
hdr only once per branch - keep the new value into a variable
(like AVP) so you can change it as many times you need ->
before seding the call out, do the actual replace.<br>
<br>
If you need to do the change per branch, you need to put the
uac_replace_xxx in the branch route !<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 09.12.2013 13:57, AMPTEL PTY LTD | RuvixTel wrote:<br>
</div>
<blockquote
cite="mid:CAHv6A0PHaaXAjkbLD2fRCFCSv2cbAmybV7_AWg6_KdX9RmaJ-w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif"><font color="#000000" face="Times New Roman"
size="3">
</font>
<p style="margin:0cm 0cm 10pt"><font color="#000000"
face="Calibri" size="3">Hi all</font></p>
<font color="#000000" face="Times New Roman" size="3">
</font>
<p style="margin:0cm 0cm 10pt"><font color="#000000"
face="Calibri" size="3">Just wondering, if anyone able to
assist us with below:</font></p>
<font color="#000000" face="Times New Roman" size="3">
</font>
<p style="margin:0cm 0cm 10pt"><font color="#000000"
face="Calibri" size="3">We are using Opensips 1.6 and we
like to know: how can we
replace URI Header more than once per call? </font></p>
<font color="#000000" face="Times New Roman" size="3">
</font>
<p style="margin:0cm 0cm 10pt"><font color="#000000"
face="Calibri" size="3">uac_replace_to function is there
but when we try this second
time: instead of replacing it. It just appended two
headers.</font></p>
<font color="#000000" face="Times New Roman" size="3">
</font>
<p style="margin:0cm 0cm 10pt"><font color="#000000"
face="Calibri" size="3">What we are trying to achieve here
is call Fail Over
function? When one IP is unable to terminate a call it
will try next IP from
the priority list. </font></p>
<font color="#000000" face="Times New Roman" size="3">
</font>
<p style="margin:0cm 0cm 10pt"><font color="#000000"
face="Calibri" size="3">Your assistance will be highly
appreciated. </font></p>
<p style="margin:0cm 0cm 10pt"><font color="#000000"
face="Calibri" size="3">If this issue
has been discussed earlier please direct me to the thread
please. </font></p>
<font color="#000000" face="Times New Roman" size="3">
</font><br clear="all">
</div>
<div>
<div dir="ltr"><span style="font-family:georgia,serif"><font
color="#888888">
<div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif">
<div><font face="garamond, serif">--<br>
Best Regards +<br>
<div class="gmail_default"
style="font-family:trebuchet
ms,sans-serif;display:inline">Anup </div>
<br>
</font><font face="garamond, serif"><br>
________________________<br>
</font>
<div><br>
</div>
<div><font face="garamond, serif"><font
color="#222222">Ph: </font></font><a
moz-do-not-send="true"
style="color:rgb(17,85,204);font-family:garamond,serif"
value="+8801973299588">+61 413 777 075 </a><span
style="font-family:garamond,serif">(Anup)</span></div>
<div><br>
</div>
</div>
<div><font face="garamond, serif"><br>
</font></div>
</div>
</div>
</font>
</span></div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>