[OpenSIPS-Users] How to set up user accounts?

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Jan 13 19:43:52 CET 2015


By defining that alias, OpenSIPS recognizes the "myserver.de" SIP domain 
as a domain that needs to handled locally. So the pre-loaded test does 
not fail anymore as OpenSIPS sees in that Route hdr its own address 
(alias) which is ok from security perspective.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 13.01.2015 20:05, Karl Karpfen wrote:
> Yes, that was the problem! Thanks :-)
>
> 2015-01-13 10:38 GMT+01:00 Bogdan-Andrei Iancu <bogdan at opensips.org 
> <mailto:bogdan at opensips.org>>:
>
>     Hi Karl,
>
>     Assuming you use the default cfg, a wild guess (without seeing the
>     SIP message) - add in your cfg "
>         alias = "myserver.de <http://myserver.de>"
>
>     I guess the Route hdr of the message has the domain part with
>     "myserver.de <http://myserver.de>".
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>     OpenSIPS Founder and Developer
>     http://www.opensips-solutions.com
>
>     On 12.01.2015 20:54, Karl Karpfen wrote:
>>     OK, that's really easy :-)
>>
>>     Now when I try to connect with client to my server, the client
>>     gives an error message "error while registering - forbidden".
>>     OpenSIPS prints the following logs:
>>
>>      Attempt to route with preloaded Route's
>>     [sip:user at myserver.de/sip:user at myserver.de/sip:myserver.de:5060/s7PHXzdndu0tocGII0nRVLGCNBW4Ppn3
>>     <http://sip:user@myserver.de/sip:user@myserver.de/sip:myserver.de:5060/s7PHXzdndu0tocGII0nRVLGCNBW4Ppn3>]
>>
>>     Any idea what is wrong here?
>>
>>
>>     2015-01-12 15:37 GMT+01:00 Bogdan-Andrei Iancu
>>     <bogdan at opensips.org <mailto:bogdan at opensips.org>>:
>>
>>         Hi Karl,
>>
>>         In order to configure accounts/users (with auth), you need to
>>         use the auth_db module - it requires a DB backend. Use the
>>         opensipsdbctl tool to create the DB and opensipsctl to add
>>         users into it.
>>
>>         Best regards,
>>
>>         Bogdan-Andrei Iancu
>>         OpenSIPS Founder and Developer
>>         http://www.opensips-solutions.com
>>
>>         On 12.01.2015 13:28, Karl Karpfen wrote:
>>>         Hi,
>>>
>>>         I'm new to OpenSIPS and this may be a stupid question but I
>>>         did not find the related information somewhere...
>>>
>>>         So I set up OpenSIPS on my Ubuntu 12.04 LTS successfully
>>>         (without database backend) and configuration seems to be OK,
>>>         but it tells me no aliases exist. I don't know if an alias
>>>         is the same like an user account. What I want to do now is
>>>         to set up user names and passwords to limit access to my
>>>         OpenSIPS server to these users.
>>>
>>>         How can this be done?
>>>
>>>         Thanks!
>>>
>>>
>>>
>>>         _______________________________________________
>>>         Users mailing list
>>>         Users at lists.opensips.org  <mailto:Users at lists.opensips.org>
>>>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150113/50c0b944/attachment-0001.htm>


More information about the Users mailing list