<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'><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/" target="_blank" class="c_nobdr t_prs" style="font-family: Calibri, sans-serif; white-space: normal;">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/" target="_blank" class="c_nobdr t_prs" style="font-family: Calibri, sans-serif;">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 id="stopSpelling">Date: Mon, 19 Oct 2015 13:37:46 +0530<br>From: spanda@3clogic.com<br>To: users@lists.opensips.org<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 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>
</div></div>
<br>_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users</div></div></div></div></div>                                            </div></body>
</html>