[Kamailio-Users] 401 Unauthorized

Robert R rob1485 at gmail.com
Mon Nov 10 20:39:17 CET 2008


Hi,

When client trying to REGISTER, kamailio responses with 401 Unauthorized.

   if (is_method("REGISTER"))
   {
      if (!www_authorize("", "subscriber"))
      {
         www_challenge("", "0");
         exit;
      }

      if (!save("location"))
         sl_reply_error();

      exit;
   }

Here is my debug log:

Nov 10 13:52:46   kamailio: DBG:core:get_hdr_field: cseq <CSeq>: <1>
<REGISTER>
Nov 10 13:52:46   kamailio: DBG:tm:t_lookup_request: start searching:
hash=39046, isACK=0
Nov 10 13:52:46   kamailio: DBG:tm:matching_3261: RFC3261 transaction
matching failed
Nov 10 13:52:46   kamailio: DBG:tm:t_lookup_request: no transaction found
Nov 10 13:52:46   kamailio: DBG:core:grep_sock_info: checking if host==us:
14==14 &&  [209.16.123.160] == [209.16.123.160]
Nov 10 13:52:46   kamailio: DBG:auth:pre_auth: credentials with given realm
not found
Nov 10 13:52:46   kamailio: DBG:auth:reserve_nonce_index: second= 36,
sec_monit= -1,  index= 0
Nov 10 13:52:46   kamailio: DBG:auth:build_auth_hf: nonce index= 0
Nov 10 13:52:46   kamailio: DBG:auth:build_auth_hf: 'WWW-Authenticate:
Digest realm="xx.xx.xx.xx",
nonce="4918842a00000000663ef5a903a02d6628e7e8e8b093c44b"^M '

Am I missing something in the config?

Regards,
RR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20081110/4989b8e1/attachment.htm 


More information about the Users mailing list