[OpenSIPS-Users] unable to register to OPENSIP using xlite

Premalatha Kuppan premalatha at ngintech.com
Tue May 25 11:03:12 CEST 2010


Thanks, meaning in my config file do i need to uncomment the following
(below mail from you) and comment the following lines ?,
# authenticate the REGISTER requests (uncomment to enable auth)
        if (!www_authorize("10.140.1.110", "subscriber"))
        {
            www_challenge("10.140.1.110", "0");
            exit;
        }

I tried this too...But still facing problem.

Probably my set up overview:
1.Opensips 1.6.2_tls: i hav etaken the src code and compiled on Red Hat
Linux 5 enterprise version.
2. MySQL is running on seperate PC (10.10.1.2), i created the MySQL of
OPENSIPS in that seperate PC (10.10.1.2)
3. copied the opensips.init and opensips.default from packaging/rpm
4. created user using opensipsctl add 200 200
5. corresponding entries updated in MySQL. I have changed the SIP_DOMIAN to
opensips.
6. Now testing call flow through xlite. i hav included in /etc/hosts
opensips domain IP.

Can you please help me. Where the problem is ? How to fix it. I appreciate
your kind help.

On Fri, May 21, 2010 at 7:57 PM, Stefano Pisani
<stefano.pisani at omnianet.it>wrote:

>  you uncommented the wrong lines.
> you have to uncomment these lines
>
>     # authenticate if from local subscriber (uncomment to enable auth)
>     # authenticate all initial non-REGISTER request that pretend to be
>     # generated by local subscriber (domain from FROM URI is local)
>     ##if (!(method=="REGISTER") && from_uri==myself) /*no multidomain
> version*/
>     ##if (!(method=="REGISTER") && is_from_local())  /*multidomain
> version*/
>     ##{
>     ##    if (!proxy_authorize("", "subscriber")) {
>     ##        proxy_challenge("", "0");
>     ##        exit;
>     ##    }
>     ##    if (!db_check_from()) {
>     ##        sl_send_reply("403","Forbidden auth ID");
>     ##        exit;
>     ##    }
>     ##
>     ##    consume_credentials();
>     ##    # caller authenticated
>     ##}
>
>
>
> Il 21/05/2010 16:21, Premalatha Kuppan ha scritto:
>
> I hv attached my opensips.cfg file
>
>
>
>
>
> On Fri, May 21, 2010 at 7:37 PM, Premalatha Kuppan <
> premalatha at ngintech.com> wrote:
>
>> Yes
>> I created using opensipsctrl add 200 200
>>
>> But, even in log file i cudn't see nything :(
>>
>> Iam Opensips running on RHEL, and MySQL on seperate machine.
>> Xlite from one Machine A, i changed the /etc/hosts also.
>>
>>
>>
>> On Fri, May 21, 2010 at 7:28 PM, Stefano Pisani <
>> stefano.pisani at omnianet.it> wrote:
>>
>>> did you create the user?
>>> post your opensips.cfg
>>>
>>> s
>>>
>>> Il 21/05/2010 15:48, Premalatha Kuppan ha scritto:
>>>
>>>  Hi,
>>>
>>> When i run /etc/int.d/opensips it show running,
>>>
>>> /etc/init.d/opensips start
>>> Starting opensips:                                         [  OK  ]
>>>
>>> But, cudn't register xlite to Opensips. No info can be found in the log
>>> file.
>>>
>>> Please help.
>>>
>>> [root at 204548-4 ~]# tail -f /var/log/messages
>>> May 21 09:34:05 204548-4 /usr/local/sbin/opensips[8938]:
>>> INFO:sl:mod_init: Initializing StateLess engine
>>> May 21 09:34:05 204548-4 /usr/local/sbin/opensips[8938]:
>>> INFO:tm:mod_init: TM - initializing...
>>> May 21 09:34:05 204548-4 /usr/local/sbin/opensips[8938]:
>>> INFO:maxfwd:mod_init: initializing...
>>> May 21 09:34:05 204548-4 /usr/local/sbin/opensips[8938]:
>>> INFO:usrloc:ul_init_locks: locks array size 512
>>> May 21 09:34:05 204548-4 /usr/local/sbin/opensips[8938]:
>>> INFO:registrar:mod_init: initializing...
>>> May 21 09:34:05 204548-4 /usr/local/sbin/opensips[8938]:
>>> INFO:textops:mod_init: initializing...
>>> May 21 09:34:05 204548-4 /usr/local/sbin/opensips[8938]:
>>> INFO:xlog:mod_init: initializing...
>>> May 21 09:34:05 204548-4 /usr/local/sbin/opensips[8938]:
>>> INFO:acc:mod_init: initializing...
>>> May 21 09:34:05 204548-4 /usr/local/sbin/opensips[8938]:
>>> INFO:auth:mod_init: initializing...
>>> May 21 09:34:05 204548-4 /usr/local/sbin/opensips[8938]:
>>> INFO:auth_db:mod_init: initializing...
>>>
>>> Thanks,
>>> Prem
>>>
>>>
>>> _______________________________________________
>>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> 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/20100525/2a284bb3/attachment.htm 


More information about the Users mailing list