Dear All,
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 ? Regards, Hakan.
U 2006/08/17 14:50:10.915465 10.0.0.10:9769 -> 10.0.0.15:5060 INVITE sip:DIALEDNUBER@10.0.0.15 SIP/2.0. To: sip:DIALEDNUBER@10.0.0.15. From: DISPLAY_NAMEsip:USERNAME@10.0.0.15;tag=cb1e6d26. Via: SIP/2.0/UDP 10.0.0.10:9769;branch=z9hG4bK-d87543-880502875-1--d87543-;rport. Call-ID: a21d332a7f23d268. CSeq: 1 INVITE. Contact: sip:USERNAME@10.0.0.10:9769. Max-Forwards: 70. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO. Content-Type: application/sdp. User-Agent: eyeBeam release 3004t stamp 16741. Content-Length: 229. . v=0. o=- 6672092 6672111 IN IP4 10.0.0.10. s=eyeBeam. c=IN IP4 10.0.0.10. t=0 0. m=audio 9764 RTP/AVP 18 101. a=alt:1 1 : 4F88BF12 49561D9D 10.0.0.10 9764. a=fmtp:101 0-15. a=rtpmap:101 telephone-event/8000. a=sendrecv.
# U 2006/08/17 14:50:10.917409 10.0.0.15:5060 -> 10.0.0.10:9769 SIP/2.0 407 Proxy Authentication Required. To: sip:DIALEDNUBER@10.0.0.15;tag=bf2a561eb1268c60203a720a0640ec5a.1fcb. From: DISPLAY_NAMEsip:USERNAME@10.0.0.15;tag=cb1e6d26. Via: SIP/2.0/UDP 10.0.0.10:9769;branch=z9hG4bK-d87543-880502875-1--d87543-;rport=9769. Call-ID: a21d332a7f23d268. CSeq: 1 INVITE. Proxy-Authenticate: Digest realm="10.0.0.15", nonce="44e4591e0c9257971b55c6113dbcbbdb18552cd3". Server: OpenSer (1.0.1 (i386/freebsd)). Content-Length: 0. Warning: 392 10.0.0.15:5060 "Noisy feedback tells: pid=1378 req_src_ip=10.0.0.10 req_src_port=9769 in_uri=sip:DIALEDNUBER@10.0.0.15 out_uri=sip:DIALEDNUBER@10.0.0.15 via_cnt==1". .
# U 2006/08/17 14:50:10.919273 10.0.0.10:9769 -> 10.0.0.15:5060 ACK sip:DIALEDNUBER@10.0.0.15 SIP/2.0. To: sip:DIALEDNUBER@10.0.0.15;tag=bf2a561eb1268c60203a720a0640ec5a.1fcb. From: DISPLAY_NAMEsip:USERNAME@10.0.0.15;tag=cb1e6d26. Via: SIP/2.0/UDP 10.0.0.10:9769;branch=z9hG4bK-d87543-880502875-1--d87543-;rport. Call-ID: a21d332a7f23d268. CSeq: 1 ACK. Content-Length: 0. .
# U 2006/08/17 14:50:10.920445 10.0.0.10:9769 -> 10.0.0.15:5060 INVITE sip:DIALEDNUBER@10.0.0.15 SIP/2.0. To: sip:DIALEDNUBER@10.0.0.15. From: DISPLAY_NAMEsip:USERNAME@10.0.0.15;tag=cb1e6d26. Via: SIP/2.0/UDP 10.0.0.10:9769;branch=z9hG4bK-d87543-460538832-1--d87543-;rport. Call-ID: a21d332a7f23d268. CSeq: 2 INVITE. Contact: sip:USERNAME@10.0.0.10:9769. Max-Forwards: 70. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO. Content-Type: application/sdp. Proxy-Authorization: Digest username="AUTHORIZATION_USERNAME",realm="10.0.0.15",nonce="44e4591e0c9257971b55c6113dbcbbdb18552cd3",uri="sip:DIALEDNUBER@10.0.0.15",response="93036675b43665e6c94523bf841b7678",algorithm=MD5. User-Agent: eyeBeam release 3004t stamp 16741. Content-Length: 229. . v=0. o=- 6672092 6672111 IN IP4 10.0.0.10. s=eyeBeam. c=IN IP4 10.0.0.10. t=0 0. m=audio 9764 RTP/AVP 18 101. a=alt:1 1 : 4F88BF12 49561D9D 10.0.0.10 9764. a=fmtp:101 0-15. a=rtpmap:101 telephone-event/8000. a=sendrecv.
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
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; };
----- 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
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
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