<div dir="ltr"><div>Hello,</div><div><br></div><div>First excuse any mistakes in English. I'm working on a platform that makes use of integrated Kamailio with asterisk (Elastix mt).</div><div><br></div><div>This platform allows the login of my SIP clients via the extension number and the client's domain, where the kamailio after authentication change the username to sip EXTENSION + _ + DOMAIN (expected by Asterisk) and sends to the asterisk.</div><div><br></div><div>I need the client can also send the sip user in standard EXTENSION + _ + DOMAIN, for it changed the view subscriber to also return a username record in the format that the softphone is sending, but the platform still seems not authenticate the REGISTER using new way functions in auth_check ("$ FD", "subscriber", "0") and auth_challenge ("$ FD", "0").</div><div><br></div><div>Thus works:</div><div>Login: 101</div><div>Domain/server: <a href="http://pabx999999.ligou.me">pabx999999.ligou.me</a></div><div>Password: PASSWORD_PLAIN</div><div><br></div><div><br></div><div><br></div><div>This way does not work:</div><div>Login: <a href="http://101_pabx999999.ligou.me">101_pabx999999.ligou.me</a></div><div>Domain/server: <a href="http://pabx999999.ligou.me">pabx999999.ligou.me</a></div><div>Password: PASSWORD_PLAIN</div><div><br></div><div><br></div><div>Already got a good look at the documentation and could not find the problem, could give me some help?</div><div><br></div><div><br></div><div>Kamailio.cfg: <a href="http://pasted.co/db8fb3a2">http://pasted.co/db8fb3a2</a></div><div>Execution debug log: <a href="http://pasted.co/49bfe5bf">http://pasted.co/49bfe5bf</a></div><div>Contents view subscriber:</div><div>+-----------------------------+---------------------+---------------+------+</div><div>| username                    | domain              | ha1           | ha1b |</div><div>+-----------------------------+---------------------+---------------+------+</div><div>| admin                       | <a href="http://pabx999999.ligou.me">pabx999999.ligou.me</a> | PASSWORD_PLAIN| NULL |</div><div>| adminIM                     | <a href="http://pabx999999.ligou.me">pabx999999.ligou.me</a> | PASSWORD_PLAIN| NULL |</div><div>| 101                         | <a href="http://pabx999999.ligou.me">pabx999999.ligou.me</a> | PASSWORD_PLAIN| NULL |</div><div>| 103                         | <a href="http://pabx999999.ligou.me">pabx999999.ligou.me</a> | PASSWORD_PLAIN| NULL |</div><div>| 103IM                       | <a href="http://pabx999999.ligou.me">pabx999999.ligou.me</a> | PASSWORD_PLAIN| NULL |</div><div>| <a href="http://admin_pabx999999.ligou.me">admin_pabx999999.ligou.me</a>   | <a href="http://pabx999999.ligou.me">pabx999999.ligou.me</a> | PASSWORD_PLAIN| NULL |</div><div>| <a href="http://adminIM_pabx999999.ligou.me">adminIM_pabx999999.ligou.me</a> | <a href="http://pabx999999.ligou.me">pabx999999.ligou.me</a> | PASSWORD_PLAIN| NULL |</div><div>| <a href="http://101_pabx999999.ligou.me">101_pabx999999.ligou.me</a>     | <a href="http://pabx999999.ligou.me">pabx999999.ligou.me</a> | PASSWORD_PLAIN| NULL |</div><div>| <a href="http://103_pabx999999.ligou.me">103_pabx999999.ligou.me</a>     | <a href="http://pabx999999.ligou.me">pabx999999.ligou.me</a> | PASSWORD_PLAIN| NULL |</div><div>| <a href="http://103IM_pabx999999.ligou.me">103IM_pabx999999.ligou.me</a>   | <a href="http://pabx999999.ligou.me">pabx999999.ligou.me</a> | PASSWORD_PLAIN| NULL |</div><div><br></div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr" style="font-size:12.8px"><div>--------------------------------------------</div><div><br></div><div>Bruno H. G. Gouvêa</div><div><br></div><div><br></div></div><div style="font-size:12.8px"><div>---</div></div><br></div></div></div></div>
</div>