<div dir="ltr">Hi again,<div style><br></div><div style>If you're usng another table then user with plain password can get registered given then domain coloumn is mentioned in the auth_db modparam. Also turn on the use_domain param for usrloc module as well so it saves the users with their domain part in AOR. </div>
<div style><br></div><div style>I don't know (or found any) the logs you're talking about. </div><div style><br></div><div style>Thanks,</div><div style>Sammy</div><div style><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 1:06 PM, Rumen Mihailov <span dir="ltr"><<a href="mailto:zealas1662@gmail.com" target="_blank">zealas1662@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Sammy,<br>
<br>
thank you for your input.<br>
<br>
sip table is in another database and I use asterisk database as per<br>
the example here:<br>
<a href="http://kb.asipto.com/asterisk:realtime:kamailio-3.3.x-asterisk-10.7.0-astdb" target="_blank">http://kb.asipto.com/asterisk:realtime:kamailio-3.3.x-asterisk-10.7.0-astdb</a><br>
<div class="im"><br>
> Are you sure<br>
> that the passwords are calculated using the real/domain part of the SIP User<br>
> definition?<br>
<br>
</div>This however I have no clue how to check.<br>
<br>
Indeed the option use_domain was not enabled. I will check later today.<br>
<br>
Sammy, what about the debug logging ? do you have any clue about that ?<br>
<br>
Regards,<br>
Rumen<br>
<div class="HOEnZb"><div class="h5"><br>
On 29 January 2013 08:20, SamyGo <<a href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>> wrote:<br>
> Hi Rumen,<br>
><br>
> Can you tell how are you creating users in your "sip" table? Are you sure<br>
> that the passwords are calculated using the real/domain part of the SIP User<br>
> definition?<br>
><br>
> Also ensure that your auth_db module has multidomain(use-domain) modparam<br>
> enabled and if you're using your own table coloumn to store user's domain<br>
> part then edit the modparam to use that particular coloumn (domain_coloumn)<br>
><br>
> Thanks,<br>
> Sammy<br>
><br>
><br>
><br>
> On Tue, Jan 29, 2013 at 2:52 AM, Rumen Mihailov <<a href="mailto:zealas1662@gmail.com">zealas1662@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi guys,<br>
>><br>
>> I've baning my head for the last 6 7 days with something that have to<br>
>> be universally simple but obviously for me it is not, so please do<br>
>> help.<br>
>><br>
>> I have the following setup.<br>
>><br>
>> xx.xx.xx.xx (real IP 1:1 NAT) -> 10.2.47.201<br>
>><br>
>> Kamailio listens on 10.2.47.201<br>
>> I have setup a domain <a href="http://xxx.itradebg.com" target="_blank">xxx.itradebg.com</a> and I've made the appropriate<br>
>> records in the DNS.<br>
>> I have inserted the domain <a href="http://xxx.itradebg.com" target="_blank">xxx.itradebg.com</a> in the domain table in the<br>
>> database and kamctl domain show shows the correct thing.<br>
>><br>
>> Now when I try to register <a href="mailto:999@xxx.itradebg.com">999@xxx.itradebg.com</a> I get Request timed out<br>
>><br>
>> I have this in my config:<br>
>> if (is_method("REGISTER") || from_uri==myself)<br>
>> {<br>
>> if (!auth_check("$fd", "sip", "1")) {<br>
>> auth_challenge("$fd", "0");<br>
>> exit;<br>
>> }<br>
>> }<br>
>> if (from_uri!=myself && uri!=myself)<br>
>> {<br>
>><br>
>> if(lookup_domain("$fd", "@from.uri.host")){<br>
>> xlog("LOCAL DOMAIN -> REGISTER");<br>
>> exit;<br>
>> }<br>
>> else{<br>
>> xlog("L_WARN","FROM NOT LOCAL");<br>
>> sl_send_reply("403","Sorry mate not relaying");<br>
>> exit;<br>
>> }<br>
>> }<br>
>><br>
>> By the time of writing this I realised that this should be all<br>
>> rewritten to this only, as the second check is useless:<br>
>><br>
>> if (is_method("REGISTER") || from_uri==myself)<br>
>> {<br>
>> if (!auth_check("$fd", "sip", "1")) {<br>
>> auth_challenge("$fd", "0");<br>
>> exit;<br>
>> }<br>
>> }<br>
>><br>
>> However I get 401 Unauthorized. The previous setup was giving me 408 -<br>
>> Request Timed out...<br>
>><br>
>> I am pretty sure I have the passwords correct.<br>
>><br>
>> What I cannot understand is why authentication fails ?!<br>
>><br>
>> Also, how do I set kamailio to print debug output ?<br>
>> debug=9<br>
>> log_stderror=no<br>
>><br>
>> This is what I have in the .conf file. /var/log/messages seems to only<br>
>> have what I have printed with xlog... (think)<br>
>><br>
>> I am really out of ideas... perhaps I need some sleep.<br>
>><br>
>> Anyway any input is helpful guys.<br>
>><br>
>> Thanks,<br>
>> Rumen<br>
>> <a href="http://itradebg.com" target="_blank">http://itradebg.com</a><br>
>><br>
>> _______________________________________________<br>
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>