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.

[email protected] is stored in db. How do i lookup contact just with user part 
and rewrite the RURI.

ie ACK sip:[email protected];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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to