[OpenSIPS-Users] Opensips + asterisk 1.4

Nick Khamis symack at gmail.com
Thu Jul 18 21:48:03 CEST 2013


First things first. Forget the asterisk box for now. The phones are not
getting registered with OpenSIPS.
dOES the username, domain, in the digest make sense? Also, recheck the auth
part of your configuration:

# ----- auth params -----
modparam("auth","username_spec","$avp(user_spec)")
modparam("auth","password_spec","$avp(pass_spec)")


# ----- auth_db params -----
/* uncomment the following lines if you want to enable the DB based
   authentication */

modparam("auth_db", "user_column", "username")
modparam("auth_db", "password_column", "ha1")
# modparam("auth_db", "password_column2", "ha1b")
modparam("auth_db", "use_domain", 1)
modparam("auth_db", "calculate_ha1", 0)
modparam("auth_db", "load_credentials", "rpid")
modparam("auth_db", "load_credentials", "$avp(pass_spec)=ha1")

Maybe start with clear text username/password and then add the md5 when you
know that it is working. Oh!!! Increase
the debug level of OpenSIPS (debug=4), and eye the REGISTER, it will show
you the clear text usernames and passwords
being sent, the comparisson, and why it's etting rejected. You can post it
on pastebin, but please make sure it's for an example
user (i.e, 1001/12345a), that you will delete later.

>> Not all my customers use same dns name to register.
>> I have some:  sip.myprovider.com, sip2.myprovider.com,
sip3.myprovider.com and I have my IPs (111.222.333.444).
>> Can I let domain blank to use "any" ?


Set, modparam("auth_db", "use_domain", 0).

Let us know how you progress.

Cheers,

Nick from Toronto.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130718/7c8ba73f/attachment.htm>


More information about the Users mailing list