[OpenSIPS-Users] Lookup contact from user part of RURI
stefano.pisani at omnianet.it
Wed Feb 2 15:34:44 CET 2011
you could set OpenSIPS to not use domain part of uri, so your issue is
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. 126.96.36.199 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 188.8.131.52;rinstance=A89B5393
> Need something for below
> xlog("ACK received \n");
> if( $rd == "184.108.40.206") // 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
More information about the Users