[Serusers] lookup_contacts with IP's and URL's

Bill McNamara billmc at connectmevoice.com
Tue Mar 24 12:56:58 CET 2009


> We are having something of an issue with lookup_user() and

> lookup_contacts().

> 

>  

> 

> Our UA's are added to the proxy using "ser_ctl user add

> 1234567890 at ourdomain.com -p password" which works great

> 

> And the UA's register just fine.

> 

>  

> 

> When a call comes in from a carrier, the invite is for

> 1234567890 at 12.34.56.78 where 12.34.56.78 is the IP address of our
proxy.

> 

>  

> 

> When we do a lookup to see if the call is destined for a local user
via

> lookup_user("$tu.uid","@ruri") it fails because the registration is
done

> using the URL and not the IP address.

 

>>If you are not yet using the domain module, you should start doing so.

>>You can then add both ourdomain.com and 12.34.56.78 to the same domain

>>id, which you in turn use in the uri table for your users.

 

Thanks Martin.

I saved the current UA's from ser.credentials, then using ser_ctl
removed them and the domain.

I added the domain plus the URL as an alias and recreated the UA's using
ser_ctl.

Everything now works great.

 

Thanks again!

 

Bill

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20090324/329fa0e9/attachment.htm>


More information about the sr-users mailing list