Hi All.
How do I effectively use is_user_in() to check group permissions when the SIP client has caller-id blocking enabled?
In other words, how can I determine if a caller has "free-pstn" access when they enable caller-id blocking on their SIP phone?
Here is what I'm doing:
if (is_user_in("From", "free-pstn")) { setflag(30); };
Regards, Paul
I found the answer.
For those interested, you call proxy_authorize() to have the SIP client include digest credentials. Then you can use is_user_in() like this:
if (is_user_in("credentials", "free-pstn")) { # do something };
Regards, Paul
On Thu, 31 Mar 2005 14:09:26 -0500, Java Rockx javarockx@gmail.com wrote:
Hi All.
How do I effectively use is_user_in() to check group permissions when the SIP client has caller-id blocking enabled?
In other words, how can I determine if a caller has "free-pstn" access when they enable caller-id blocking on their SIP phone?
Here is what I'm doing:
if (is_user_in("From", "free-pstn")) { setflag(30); };
Regards, Paul
Java Rockx wrote:
Hi All.
How do I effectively use is_user_in() to check group permissions when the SIP client has caller-id blocking enabled?
In other words, how can I determine if a caller has "free-pstn" access when they enable caller-id blocking on their SIP phone?
Here is what I'm doing:
if (is_user_in("From", "free-pstn")) { setflag(30); };
instead of "From", use "credentials"
ie...
if (is_user_in("credentials", "free-pstn")) {
Regards, Paul
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Check digest identity, not From. -jiri
At 09:09 PM 3/31/2005, Java Rockx wrote:
Hi All.
How do I effectively use is_user_in() to check group permissions when the SIP client has caller-id blocking enabled?
In other words, how can I determine if a caller has "free-pstn" access when they enable caller-id blocking on their SIP phone?
Here is what I'm doing:
if (is_user_in("From", "free-pstn")) { setflag(30); };
Regards, Paul
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/