[Serusers] offline v unknown

Kevin Brennan kevin.brennan at redsquared.com
Fri Aug 26 22:39:19 CEST 2005


This is interesting. I suppose you'd have to add an extra field contact 
in table 'subscriber' to get a positive result - and of course the value 
in contact would re-write the uri so you should do it after 
lookup("location").

Will give it a try. Br /Kev./


Steve Blair wrote:
> 
> 
> 
> Kevin Brennan wrote:
> 
>> Does anybody have any tips on solving the following
>>
>> I want to differenciate between offline users and unknown users. When 
>> you use lookup("location") there is no differenciation between the two.
>>
>> Does this require uri_db ?
>>
>> Using 0.8.14
>>
> 
> I'm about to try the following. I'd appreciate any input on this 
> approach that others might have.
> 
> -Steve
> 
>     # Offline user
>     if (lookup("subscriber")) {
>        if (!registered("location")) {
>           xlog("L_INFO", "\n[SER]: OFFLINE: Subscriber is offline. Go to 
> voicemail. Time: [%Tf] \n");
>           route(6);
>        };
>     };
> 
>> Br /Kevin
>>
>> _______________________________________________
>> Serusers mailing list
>> serusers at lists.iptel.org
>> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list