Hello,
I also want to do the same thing as Tung -- I want to know if the
caller URI is registered.
My current ser.cfg (based on the SER 2.0 RC1 sample ser.cfg),
calls a proxy_authenticate for every message. This means the every message
(other than register) is sent twice, once without auth headers and a 2nd time
with auth headers.
An easier approach would be send the auth challenge during a
register message and simply check if the caller is registered in subsequent
messages. If the caller did not re-register within the expiration
interval, their request would be rejected.
Is there a method to check of the caller (from) URI is
registered?
Thanks,
- Ravin
Hi,
I got this in iptel doc:
registered(domain)
The function returns
true if the AOR in the Request-URI is registered, false otherwise. The
function does not modify the message being process, it neither rewrites the
Request-URI if a contact is found not append branches.
But I want
to check the from user if it is registered or not, any command can do
this?
Thank
you
Tung
> if
(registered("location")) {
> ..
> }
>
> M.
>
> On Thu, 2007-09-13 at
00:12 +0700, Tung Tran wrote:
>> Hi
all,
>>
>> Should anyone
please help how to check the from user in INVITE
>> request is already
registered?
>>
>> Thanks you very
much.
>>
>>
Tung