Hi Klaus,
Yes, I noticed that. What I was looking for, when the ip is not trusted, I want user, to authorize with the username which is the same with CLI of it. Thanks for your interest. Hakan.
----- Original Message ----- From: "Klaus Darilion" klaus.mailinglists@pernau.at To: "Hakan YASTI" hakanyasti@gmail.com Cc: "Juha Heinanen" jh@tutpro.com; users@openser.org Sent: Monday, August 21, 2006 1:11 PM Subject: Re: [Users] check displayname with proxy-authorizationname
Hakan YASTI wrote:
Hi All,
The below is solving my problem. ( check_from()) Best Regards, Hakan.
if (!allow_trusted()) {
if (!proxy_authorize("","subscriber")) { proxy_challenge("","0"); return; } else if (!check_from()) { sl_send_reply("403", "Use From=ID"); return; };
Hi Hakan!
AFAIK this does check the username in the URI in the from header, but not in the display part, e.g:
From: "George Bush" sip:user@domain.com ^^^ ^^^^ not checked checked
regards klaus
----- Original Message ----- From: "Juha Heinanen" jh@tutpro.com To: "Hakan YASTI" hakanyasti@gmail.com Cc: users@openser.org Sent: Thursday, August 17, 2006 4:55 PM Subject: [Users] check displayname with proxy-authorizationname
Hakan YASTI writes:
I want to check the "AUTHORIZATION_USERNAME" at proxy-authorization
with > the "DISPLAY_NAME" of the user agent.( I want them to be same ).
How can I do this ?
check if there exists pseudo variables for both and use avpops to make the comparison. if not, make a feature request.
-- juha
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users