[OpenSIPS-Users] Lookup contact from user part of RURI

Stefano Pisani stefano.pisani at omnianet.it
Wed Feb 2 15:34:44 CET 2011


Hi,
you could set OpenSIPS to not use domain part of uri, so your issue is 
solved.

stefano

Il 02/02/2011 15:30, Nauman Sulaiman ha scritto:
> Hi, using opensips 1.6.2. I am trying to use the user part of incoming RURI
> to look up a contact, reason being is full RURI is incorrect, this is due to bogus proxy upstream so need a workaround.
>
> lookup("location") seems to be only if you use AOR.
>
> For exmaple i need to reroute incoming ACK to real address of UA
> So i would like to lookup 1234 user part of RURI below and rewrite the
> RURI with the correct ip. 12.34.56.78 is Opensips IP rather than end UA ip.
>
> 1234 at domain.com is stored in db. How do i lookup contact just with user part and rewrite the RURI.
>
> ie ACK sip:1234 at 12.34.56.78;rinstance=A89B5393
>
> Need something for below
>   if(method=="ACK")
>   {
>        xlog("ACK received  \n");
>        if( $rd == "12.34.56.78")          // check if opensips ip
>        {
>             lookup(user);  // ???   // need to lookup with user or rinstance
>             // rewrite RURI with correct address
>       }
>   }
>
>
>
>
> Hope its clear, thanks
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list