[OpenSIPS-Users] How to change the destination uri and forward the call to that uri .

Sasmita Panda spanda at 3clogic.com
Mon Oct 19 13:53:01 CEST 2015


Sorry , I mean $fU , that is from user . The form user wont be fixed in my
case .

*Thanks & Regards*
*Sasmita Panda*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*

On Mon, Oct 19, 2015 at 5:07 PM, Hamid Hashmi <hamid2kviii at hotmail.com>
wrote:

> $ci is for call ID. Please read the following link.
>
> http://www.opensips.org/Documentation/Script-CoreVar-2-1
>
> Regards
> Hamid R. Hashmi
>
> ------------------------------
> Date: Mon, 19 Oct 2015 17:01:19 +0530
>
> From: spanda at 3clogic.com
> To: users at lists.opensips.org
> Subject: Re: [OpenSIPS-Users] How to change the destination uri and
> forward the call to that uri .
>
> HI ,
>
>    Its working . But my contact will not be a fixed contact . Can I
> replace this "2233" with any variable in this case .
> I was trying $ci , but its not taking the value of this variable . Is
> there any other method of doing this ?
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
> On Mon, Oct 19, 2015 at 4:22 PM, Hamid Hashmi <hamid2kviii at hotmail.com>
> wrote:
>
> SET $ru = "sip:2233@ <http://mongodbtest2.3ccloud.com:6606/>
> 162.243.1.1:5506";
>
> Regards
> Hamid R. Hashmi
>
> ------------------------------
> Date: Mon, 19 Oct 2015 16:01:28 +0530
>
> From: spanda at 3clogic.com
> To: users at lists.opensips.org
> Subject: Re: [OpenSIPS-Users] How to change the destination uri and
> forward the call to that uri .
>
> Hi ,
>
>
>  While invite come to the first proxy its INVITE  "
> sip:2233 at mongodbtest2.3ccloud.com:6606
> <http://mongodbtest2.3ccloud.com:6606> " and Its forwarding to the 2nd
> proxy with the same Uri too . I want this domain and port should be
> replaced by whatever I am providing .
>
> Isn't that possible ??
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
> On Mon, Oct 19, 2015 at 3:56 PM, Hamid Hashmi <hamid2kviii at hotmail.com>
> wrote:
>
> INVITE Request is going that IP because destination URI has been changed.
> Can you Please share the URIs before and after t_relay();
>
> Regards
> Hamid R. Hashmi
>
> ------------------------------
> Date: Mon, 19 Oct 2015 15:26:39 +0530
> From: spanda at 3clogic.com
> To: users at lists.opensips.org
>
> Subject: Re: [OpenSIPS-Users] How to change the destination uri and
> forward the call to that uri .
>
> Hi Hamid,
>
>     if ( !lookup("location")){
>
>                                  xlog( "L_WARN", "rewrite uri to new" );
>                                  $du = "sip:162.243.1.1:5506";
>                                  t_relay();
>                                  }
>
>
> 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 .
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
> On Mon, Oct 19, 2015 at 2:01 PM, Hamid Hashmi <hamid2kviii at hotmail.com>
> wrote:
>
> Use t_relay(); instead on exit;
>
> Regards
> Hamid R. Hashmi
>
> ------------------------------
> From: hamid2kviii at hotmail.com
> To: users at lists.opensips.org
> Date: Mon, 19 Oct 2015 13:29:52 +0500
> Subject: Re: [OpenSIPS-Users] How to change the destination uri and
> forward the call to that uri .
>
>
> SET
>
> $du = "sip:162.243.1.1:5506"
>
> OR
>
> $rd = "162.243.1.1 <http://162.243.1.1:5506/>";
>
> $rp = "5506 <http://162.243.1.1:5506/>";
>
>
> Regards
> Hamid R. Hashmi
>
> ------------------------------
> Date: Mon, 19 Oct 2015 13:37:46 +0530
> From: spanda at 3clogic.com
> To: users at lists.opensips.org
> Subject: [OpenSIPS-Users] How to change the destination uri and forward
> the call to that uri .
>
> Hi All ,
>
>      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 .
>
>       After lookup if the destination is not found I wanted to route the
> call to second ser .
>
>      I have written something like below .
>
>     if ( !lookup("location")){
>                                     setdsturi("sip:162.243.1.1:5506");
>                                     xlog( "L_WARN", "rewrite uri to new" );
>                                     exit;
>                               }
>
> 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 .
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
> _______________________________________________ Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________ Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________ Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________ Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________ Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20151019/a29ad771/attachment-0001.htm>


More information about the Users mailing list