Hi,<br><br>When client trying to REGISTER, kamailio responses with 401 Unauthorized.<br> <br> if (is_method("REGISTER"))<br> {<br> if (!www_authorize("", "subscriber"))<br> {<br>
www_challenge("", "0");<br> exit;<br> }<br><br> if (!save("location"))<br> sl_reply_error();<br><br> exit;<br> }<br><br>Here is my debug log:<br><br>
Nov 10 13:52:46 kamailio: DBG:core:get_hdr_field: cseq <CSeq>: <1> <REGISTER><br>Nov 10 13:52:46 kamailio: DBG:tm:t_lookup_request: start searching: hash=39046, isACK=0<br>Nov 10 13:52:46 kamailio: DBG:tm:matching_3261: <span style="background-color: rgb(255, 255, 51);">RFC3261 transaction matching failed</span><br>
Nov 10 13:52:46 kamailio: DBG:tm:t_lookup_request:<span style="background-color: rgb(255, 255, 51);"> no transaction found</span><br>Nov 10 13:52:46 kamailio: DBG:core:grep_sock_info: checking if host==us: 14==14 && [<a href="http://209.16.123.160">209.16.123.160</a>] == [<a href="http://209.16.123.160">209.16.123.160</a>] <br>
Nov 10 13:52:46 kamailio: DBG:auth:pre_auth:<span style="background-color: rgb(255, 255, 51);"> credentials with given realm not found</span><br>Nov 10 13:52:46 kamailio: DBG:auth:reserve_nonce_index: second= 36, sec_monit= -1, index= 0<br>
Nov 10 13:52:46 kamailio: DBG:auth:build_auth_hf: nonce index= 0<br>Nov 10 13:52:46 kamailio: DBG:auth:build_auth_hf: 'WWW-Authenticate: Digest realm="xx.xx.xx.xx", nonce="4918842a00000000663ef5a903a02d6628e7e8e8b093c44b"^M '<br>
<br>Am I missing something in the config?<br><br>Regards,<br>RR<br><br>