<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>INVITE Request is going that IP because destination URI has been changed. Can you Please share the URIs before and after t_relay();<div><br></div><div>Regards</div><div>Hamid R. Hashmi <br><br><div><hr id="stopSpelling">Date: Mon, 19 Oct 2015 15:26:39 +0530<br>From: spanda@3clogic.com<br>To: users@lists.opensips.org<br>Subject: Re: [OpenSIPS-Users] How to change the destination uri and forward the call to that uri .<br><br><div dir="ltr">Hi Hamid, <div><br></div><div> if ( !lookup("location")){</div><div> </div><div> xlog( "L_WARN", "rewrite uri to new" );</div><div> $du = "sip:<a href="http://162.243.1.1:5506" target="_blank">162.243.1.1:5506</a>";</div><div> t_relay();</div><div> }</div><div><br></div><div><br></div><div>If I am ding this it only forwards the Invite to this IP but its not changing the destination Uri . Is there any dependency with any module , which must be loaded or what ? I am not getting the problem . </div></div><div class="ecxgmail_extra"><br clear="all"><div><div class="ecxgmail_signature"><div dir="ltr"><b><i>Thanks & Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div>
<br><div class="ecxgmail_quote">On Mon, Oct 19, 2015 at 2:01 PM, Hamid Hashmi <span dir="ltr"><<a href="mailto:hamid2kviii@hotmail.com" target="_blank">hamid2kviii@hotmail.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">Use t_relay(); instead on exit;<div><br></div><div>Regards</div><div>Hamid R. Hashmi<br><div class="ecxhm ecxHOEnZb"><br></div><div><div class="ecxhm ecxHOEnZb"><hr>From: <a href="mailto:hamid2kviii@hotmail.com" target="_blank">hamid2kviii@hotmail.com</a><br>To: <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a><br>Date: Mon, 19 Oct 2015 13:29:52 +0500<br>Subject: Re: [OpenSIPS-Users] How to change the destination uri and forward the call to that uri .</div><div><div class="h5"><br><br>
<div dir="ltr"><font size="3">SET </font><div><font size="3"><br></font><div><font size="3">$du = "sip:<a href="http://162.243.1.1:5506/" target="_blank">162.243.1.1:5506</a>"</font></div><div><font size="3"><br></font></div><div><font size="3">OR<br></font><div><pre style="word-wrap:break-word;white-space:pre-wrap;"><font size="3"><font face="Courier New, sans-serif">$rd = "</font><a href="http://162.243.1.1:5506/" style="font-family:Calibri,sans-serif;white-space:normal;" target="_blank">162.243.1.1</a><font face="Courier New, sans-serif">";</font></font></pre><pre style="word-wrap:break-word;white-space:pre-wrap;"><font size="3"><font face="Courier New, sans-serif">$rp = "</font><a href="http://162.243.1.1:5506/" style="font-family:Calibri,sans-serif;" target="_blank">5506</a><span style="font-family:'Courier New',sans-serif;">";</span></font></pre><div><br></div><div>Regards</div><div>Hamid R. Hashmi</div><div><br><div><hr>Date: Mon, 19 Oct 2015 13:37:46 +0530<br>From: <a href="mailto:spanda@3clogic.com" target="_blank">spanda@3clogic.com</a><br>To: <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a><br>Subject: [OpenSIPS-Users] How to change the destination uri and forward the        call to that uri .<br><br><div dir="ltr">Hi All ,<div><br></div><div> I am using opensips-1.11 . I have two instances in which opensips is running . I wanted to route the call from one server to another in lookup location block .</div><div><br></div><div> After lookup if the destination is not found I wanted to route the call to second ser .</div><div><br></div><div> I have written something like below .</div><div><br></div><div> if ( !lookup("location")){<div> setdsturi("sip:<a href="http://162.243.1.1:5506" target="_blank">162.243.1.1:5506</a>");</div><div> xlog( "L_WARN", "rewrite uri to new" );</div><div> exit;</div><div> }</div><div><br></div><div>But its now working . What should I do for this . Am i missing something or it has any dependency with any module ? Any kind help is appreciated . </div><div><br></div><div><div><div dir="ltr"><b><i>Thanks & Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div>
</div></div>
<br>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div></div></div></div></div>                                            </div>
<br>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div></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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users</div></div>                                            </div></body>
</html>