[Serusers] Getting contact URI

Jan Janak jan at iptel.org
Mon Jan 31 11:38:37 CET 2005


On 30-01 16:00, Tom Gaudasinski wrote:
> Greetings,
>    I have two questions. What function() would i use to get a bool back 
> indicating whether a certain user is in the usrloc given i only know the 
> 'username' field of the usrloc table? 

  In the configuration file you can use registered() function.

> Secondly how can I get the contact 
> URI/IP address of a user given again I only know the 'username' field of 
> the usrloc table?; this will be used in a forward() statement.

  This is what lookup() function does, it retrieves the contact from the
  user location database and rewrites the Request-URI with it.

    Jan.




More information about the sr-users mailing list