[Serusers] Check if user is already authenticated or registered
Bastian Schern
ml01 at in-bln.de
Wed Jun 1 00:31:37 CEST 2005
It looks like that I looked for, but it will not work on my SER:
--- snip ---
if( registered( "location" ) ) {
rewritehostport( "localhost:5061" );
} else {
log( 1, "ERR: <403> Unauthorized call\n" );
sl_send_reply( "403", "Unauthorized call" );
break;
};
--- snap ---
It will always do the "else" condition.
Did I made something wrong?
Regrds
Bastian
Cesc schrieb:
> Hi,
>
> I think you are looking for the function
> registered("location")
>
> Regards,
>
> C.
>
> On 5/31/05, Bastian Schern <ml01 at in-bln.de> wrote:
>
>>Hello everybody,
>>
>>is it possible to check if a user is already registered or authenticated?
>>
>>I want to allow only registered users call to PSTN destinations.
>>
>>Regards
>> Bastian
More information about the sr-users
mailing list