[Serusers] Detecting if username is in subscriber table

Andres andres at telesip.net
Tue Jan 2 21:13:04 CET 2007


Simon wrote:

> Dear All,
>
> I would like to detect if a URI is for a user that is in the 
> subscriber table.
>
> If I just use lookup(“location”) then I only detect those users that 
> have registered. If a phone is switched off it is not registered and 
> so will not be in the location table. However it will be in the 
> subscriber table and I need to be able to check this from within the 
> ser.cfg file to allow correct routing etc.
>
> Any Ideas ?
>
Sure...

if (does_uri_exist()) {
bla...bla..bla
};


> Many Thanks
>
> Simon
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Serusers mailing list
>Serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>  
>




More information about the sr-users mailing list