[SR-Users] SIP Autentication Failed

Bruno Henrique Gomes Gouvêa brunohenriquebh at gmail.com
Fri Mar 4 22:17:50 CET 2016


Hello,

First excuse any mistakes in English. I'm working on a platform that makes
use of integrated Kamailio with asterisk (Elastix mt).

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.

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").

Thus works:
Login: 101
Domain/server: pabx999999.ligou.me
Password: PASSWORD_PLAIN



This way does not work:
Login: 101_pabx999999.ligou.me
Domain/server: pabx999999.ligou.me
Password: PASSWORD_PLAIN


Already got a good look at the documentation and could not find the
problem, could give me some help?


Kamailio.cfg: http://pasted.co/db8fb3a2
Execution debug log: http://pasted.co/49bfe5bf
Contents view subscriber:
+-----------------------------+---------------------+---------------+------+
| username                    | domain              | ha1           | ha1b |
+-----------------------------+---------------------+---------------+------+
| admin                       | pabx999999.ligou.me | PASSWORD_PLAIN| NULL |
| adminIM                     | pabx999999.ligou.me | PASSWORD_PLAIN| NULL |
| 101                         | pabx999999.ligou.me | PASSWORD_PLAIN| NULL |
| 103                         | pabx999999.ligou.me | PASSWORD_PLAIN| NULL |
| 103IM                       | pabx999999.ligou.me | PASSWORD_PLAIN| NULL |
| admin_pabx999999.ligou.me   | pabx999999.ligou.me | PASSWORD_PLAIN| NULL |
| adminIM_pabx999999.ligou.me | pabx999999.ligou.me | PASSWORD_PLAIN| NULL |
| 101_pabx999999.ligou.me     | pabx999999.ligou.me | PASSWORD_PLAIN| NULL |
| 103_pabx999999.ligou.me     | pabx999999.ligou.me | PASSWORD_PLAIN| NULL |
| 103IM_pabx999999.ligou.me   | pabx999999.ligou.me | PASSWORD_PLAIN| NULL |

--------------------------------------------

Bruno H. G. Gouvêa


---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160304/85948280/attachment.html>


More information about the sr-users mailing list