<div dir="ltr"><div><div>Cool!<br></div>If you checked the link what I have sent, then you can easily see the logic how it can be implemented.<br><br></div>-Laszlo<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/6/19 M.Khaled W Chehab <span dir="ltr"><<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Laszlo <u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I am searching since yesterday,as I inform you that I use uac_restore_to() and I set iuac_replace_to in different places and in different shapes<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">, <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Today afternoon I ask this question in the users list since most of google seah result links marked as read </span><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">J</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">At all thanks <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Sure I will keep searching ,,,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">regards<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> [mailto:<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>] <b>On Behalf Of </b>Laszlo<br>
<b>Sent:</b> Wednesday, June 19, 2013 4:50 PM</span></p><div class="im"><br><b>To:</b> OpenSIPS users mailling list<br></div><div><div class="h5"><b>Subject:</b> Re: [OpenSIPS-Users] uac_replace_to problem<u></u><u></u></div>
</div><p></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><div><div><div><p class="MsoNormal">Yes, but why don't you try to search for the answer first? This problem was discussed several times before.<u></u><u></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt">By doing searching, everybody can see that you make some steps to resolve the problem by yourself, not just asking for the "solution".<u></u><u></u></p></div>
<p class="MsoNormal" style="margin-bottom:12.0pt">A quick search for the problem will show this result too:<br><br><a href="http://lists.opensips.org/pipermail/users/2010-June/013200.html" target="_blank">http://lists.opensips.org/pipermail/users/2010-June/013200.html</a><u></u><u></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt">Took 40 seconds to find.....<u></u><u></u></p></div><p class="MsoNormal">-Laszlo<u></u><u></u></p><div><div><div><div><p class="MsoNormal"><u></u> <u></u></p></div>
</div>
</div></div></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p class="MsoNormal">2013/6/19 M.Khaled W Chehab <<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>><u></u><u></u></p>
<div><div><p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d">Please can you show me what do you mean by coding it ,what do you mean branch route for example is it route (6) I am using , you can find my config below </span><u></u><u></u></p>
<div><p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d">while i am using uac_replace_to in failover route branch i can find that TO header is not changed(sip user part ) but appended an new raw as I want it to be To: "971552448304" <sip: <a href="mailto:808971552448304@xx.xx.xx.55" target="_blank">808971552448304@xx.xx.xx.55</a>></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d">SIP to address: <a>sip:835822971552448304@xx.xx.xx.55sip:808971552448304@xx.xx.xx.55</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d">SIP to address User Part: 835822971552448304</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d">SIP to address Host Part: xx.xx.xx.55sip</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d">SIP to address Host Port: <a href="mailto:808971552448304@xx.xx.xx.55" target="_blank">808971552448304@xx.xx.xx.55</a></span><u></u><u></u></p><p class="MsoNormal">
<span style="font-size:10.0pt;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d"> </span><u></u><u></u></p></div><p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d">Thanks in advance </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d">regards</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> [mailto:<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>] <b>On Behalf Of </b>Flavio Goncalves<br>
<b>Sent:</b> Wednesday, June 19, 2013 3:13 PM<br><b>To:</b> OpenSIPS users mailling list<br><b>Cc:</b> <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a><br><b>Subject:</b> Re: [OpenSIPS-Users] uac_replace_to problem</span><u></u><u></u></p>
<div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Hi Khaleb, </span><u></u><u></u></p>
<div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Set uac_replace_to and uac_replace_from in a branch_route. </span><u></u><u></u></p>
<div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p></div></div><div><div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Flavio E. Goncalves</span><u></u><u></u></p>
<div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p></div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p>
<div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">2013/6/19 M.Khaled W Chehab <<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>></span><u></u><u></u></p>
<div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Hi,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">I am running opensips 1.8.3 with do_routing module </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">A dial_rule prefix has 3 trunk gateways ( gw1,gw2,gw3)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">After do_routing(,)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">I am setting the $rU and fixing the To Tag header using uac_replace_to( and the call go to gw1 with correct TO tag as I set it ,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">but when calls fails on gw1 ,then I set the $rU in route[6] to go to second in route and it goes with bad TO header, since it goes with the same To header in the 1<sup>st</sup> invite </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">That target gw1 </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">1-how to fix the To header in the second invite to gw2</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">loadmodule "uac.so"</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">modparam("uac","restore_mode","auto")</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">uac_replace_to("$avp(dst)","<a>sip:$var(prefix)$avp(dst)@$td</a>");</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> t_on_failure("1");</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">on failure_route[1] {</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">.</span><u></u><u></u></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">if (!t_check_status("487")) {</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> #xlog("------------route6-------\n");</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> $avp(failure_count) = $avp(failure_count) + 1; #480|486|603 </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> route(6);</span><u></u><u></u></p><p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> } </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Route[6]{</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">$rU = $var(prefix) + $avp(dst);</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">uac_replace_to("<a>sip:$var(prefix)$avp(dst)@$td</a>");</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">}</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Regards</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> </span><u></u><u></u></p>
</div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt"><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></span><u></u><u></u></p></div><p class="MsoNormal"><span style="font-size:10.0pt"> </span><u></u><u></u></p>
</div></div></div></div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>