Hello,

sending 407 for INVITE is the correct behaviour, as in SIP all initial requires should be authenticated for security reasons.

The phone should follow up with another INVITE that has Proxy-Authorization header.

Cheers,
Daniel

On 12/4/13 9:03 PM, mohammed alyaseen wrote:
Hi all...I need help ...

I am using Kamailio as SIP server... I tried to do call between two sip clients (MyMonster)..The clients can register with kamailio without any problems. But when I try to do call between two clients, It doesn't work. Once the kamailio gets the first invite from the client, it directly replies with "407 Proxy Authentication Required". In the kamailio.cfg the domain is "kamailio.test" in the kamctlr I also  use "kamailio.test" as SIP domain..

In the Log of Kamailio I see this:

2(16979) DEBUG: corex [corex_lib.c:189]: corex_check_self(): check self domain match: 0:kamailio.test:0
 2(16979) DEBUG: auth_db [authorize.c:476]: auth_check(): realm [kamailio.test] table [subscriber] flags [1]
 2(16979) DEBUG: auth [api.c:86]: pre_auth(): auth:pre_auth: Credentials with realm 'kamailio.test' not found
 2(16979) DEBUG: auth_db [authorize.c:252]: digest_authenticate(): no credentials
 2(16979) DEBUG: auth [challenge.c:127]: get_challenge_hf(): build_challenge_hf: realm='kamailio.test'
 2(16979) DEBUG: auth [challenge.c:269]: get_challenge_hf(): auth: 'Proxy-Authenticate: Digest realm="kamailio.test", nonce="Up+EuVKfg42WYOrC87GTm+rvMNFeNe3/BCf5m4A="

Thanks in advance...


Medo


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda