hej Sajjad,
If you mean the "username" in Authorization header is invalid in step-3 you can 
do:
adjust
 your script to send "404 Not Found" since the proxy_authorize and www_ 
authorize return value is number and if this number is equal to -1 (invalid 
user) - authentication user does
                                        not exist.
http://www.opensips.org/html/docs/modules/devel/auth_db.html#id250235

//Binan

--- On Fri, 9/7/12, sajjad purmohseni <[email protected]> wrote:

From: sajjad purmohseni <[email protected]>
Subject: Re: [OpenSIPS-Users] I never see 404 not found
To: "Muhammad Shahzad" <[email protected]>, "[email protected]" 
<[email protected]>
Date: Friday, September 7, 2012, 7:45 AM

Hello Muhammad; thanks for your pursuing;
Yes, second Invite or Register contains authentication header; this is the 
scenario I mean
1               client 
-------------------------------Invite------------------------------->  proxy2   
         client <-------------------407 with 
nonce----------------------------  Proxy3           client ------------Invite 
with calculated nonce-------------------> Proxy4              client 
<----------------100 giving a try--------------------------------- Proxy5       
         client <----------------180 
ringing--------------------------------------- Proxy
I
 mean when client uses invalid "From URI" in authentication header in 
the third step; proxy should send an "404 not found"; but as I see; 
server just sends
 407 message. As you know, if URI is valid, and calculated
 response in authentication header is invalid server sends 407 message 
too. This causes I cannot understand the URI binding is valid or not. I 
except if "from URI" binding is invalid in authentication process; 
server send me an 404 not found message. Is it possible and typical 
option in SIP proxy servers? 
Thank you
--------------------------------------------------      kind regards;        
Sajad Pourmohseni
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to