Re: [OpenSIPS-Users] SIP re-register time
Thanks a lot Vlad! Regards, Yasiru From: Vlad Paiu vladp...@opensips.org To: users@lists.opensips.org Sent: Wednesday, 11 January 2012, 15:43 Subject: Re: [OpenSIPS-Users] SIP re-register time Hello, OpenSIPS stores whatever Registration expires time that the phones send in an integer value. Still, you do not have to set the Registration expires times on each phone, as you can force the expiration time on the OpenSIPS side, so even if the phone says it wants the registration to expires in X seconds, OpenSIPS can actually bind the entry for Y seconds and notify the phone about this in the 200 OK for the Register. Take a look at the Registrar module parameters, such as min_expires [1] [1] http://www.opensips.org/html/docs/modules/1.7.x/registrar.html#id249160 Regards, Vlad Paiu OpenSIPS Developer On 01/11/2012 02:51 AM, yasiru welandawe wrote: Hi All, Could someone help me with to find what is the maximum period of time that Opensips can keep a sip-registration. I want to find out the greatest time period that I can set for phones for sending re-register requests. Regards, Yasiru ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] SIP re-register time
Hi All, Could someone help me with to find what is the maximum period of time that Opensips can keep a sip-registration. I want to find out the greatest time period that I can set for phones for sending re-register requests. Regards, Yasiru___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Trying to register first sip account
Hi all, I had successfully install Opensips 1.7.0 and configured mysql DB with it. Now Opensips up and running. I add sip account to mysql DB as follows. mysql select * from subscriber; ++--++--+--+-+--+--+ | id | username | domain | password | email_address | ha1 | ha1b | rpid | ++--++--+--+-+--+--+ | 1 | 1000 | 192.168.102.24 | 1000 | mod...@yahoo.com | | | | ++--++--+--+-+--+--+ 1 row in set (0.02 sec) But it gives SIP/2.0 401 Unauthorized. when I try to register my soft phone with this account. Can someone help me. Thank you, -- Yasiru ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Trying to register first sip account
Thanks Faisal, I was add the sip account manually to the table. And I found that I should use opensipsctl add username@domain password command to add sip account to Opensips. Now my soft phone has registered to the server successfully. Thanks much for the heads up :) Best Regards, -- Yasiru From: Faisal Rehman faisal.rehma...@yahoo.com To: yasiru welandawe mod...@yahoo.com; OpenSIPS users mailling list users@lists.opensips.org; OpenSIPS users mailling list users@lists.opensips.org Sent: Tuesday, September 27, 2011 1:04 PM Subject: Re: [OpenSIPS-Users] Trying to register first sip account Hi Yasiru, Upon which port your opensips is running, if it is 5060 then try to give the domain/registrar in your softphone dialer as 192.168.102.24:5060 and try again. It would be more better that you send the logs, so please try again and tail the /var/log/messages and resend it to me. With Best Regards, Faisal Rehman From: yasiru welandawe mod...@yahoo.com To: OpenSIPS users mailling list users@lists.opensips.org Sent: Tuesday, September 27, 2011 12:26 PM Subject: [OpenSIPS-Users] Trying to register first sip account Hi all, I had successfully install Opensips 1.7.0 and configured mysql DB with it. Now Opensips up and running. I add sip account to mysql DB as follows. mysql select * from subscriber; ++--++--+--+-+--+--+ | id | username | domain | password | email_address | ha1 | ha1b | rpid | ++--++--+--+-+--+--+ | 1 | 1000 | 192.168.102.24 | 1000 | mod...@yahoo.com | | | | ++--++--+--+-+--+--+ 1 row in set (0.02 sec) But it gives SIP/2.0 401 Unauthorized. when I try to register my soft phone with this account. Can someone help me. Thank you, -- Yasiru ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] alias_db not working
Hi, Yes, before the register lookup. Um pritty sure dbalias is working properly but not for a single sip account. I have add dbalias for range of sip accounts and they are working correctly. Thanks for the heads up :) From: Rodrigo Ferreira rodrigo.ferre...@vipway.net.br To: OpenSIPS users mailling list users@lists.opensips.org Sent: Tuesday, September 27, 2011 4:20 PM Subject: Re: [OpenSIPS-Users] alias_db not working Hi, are you doing the alias_db_lookup(dbaliases)? From: yasiru welandawe Sent: Tuesday, September 27, 2011 2:29 AM To: users@lists.opensips.org Subject: [OpenSIPS-Users] alias_db not working Hi all, I'm new to Opensips application. I want to route calls coming to two different sip accounts to a single sip account. I heard that we can do this using dbaliases table. but it didn't work. Glad if anyone can help me :s Thanks -- Yasiru ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Trying to register first sip account
Hey, Thanks to all. I was add the sip account manually to the table. And I found that I should use opensipsctl add username@domain password command to add sip account to Opensips. Now my soft phone has registered to the server successfully. Thanks much for the heads up :) BTW I have another small question. I want to know that are the configuration files that I need to manager Opensips server. I already know about opensips.cfg and opensipsctl. What are else? From: Sam Govind govoi...@gmail.com To: OpenSIPS users mailling list users@lists.opensips.org Sent: Wednesday, September 28, 2011 10:46 AM Subject: Re: [OpenSIPS-Users] Trying to register first sip account Also check you domain table as well the same entry in the posted table. On Tue, Sep 27, 2011 at 2:51 PM, Max Mühlbronner m...@42com.com wrote: Hi, it is probably related to the calculate_ha1 modparam in opensips.cfg (default is 0) . The database entry you showed to us, had no ha1/ha1b entries and if calculate_ha1 is set to 0 the authentification will not work because there is only a clear-text password in the db. Best Regards Max M. Am 27.09.2011 09:26, schrieb yasiru welandawe: Hi all, I had successfully install Opensips 1.7.0 and configured mysql DB with it. Now Opensips up and running. I add sip account to mysql DB as follows. mysql select * from subscriber; ++--++--+--+-+--+--+ | id | username | domain | password | email_address | ha1 | ha1b | rpid | ++--++--+--+-+--+--+ | 1 | 1000 | 192.168.102.24 | 1000 | mod...@yahoo.com | | | | ++--++--+--+-+--+--+ 1 row in set (0.02 sec) But it gives SIP/2.0 401 Unauthorized. when I try to register my soft phone with this account. Can someone help me. Thank you, -- Yasiru ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- 42com Telecommunication GmbH Straße der Pariser Kommune 12-16 / D-10243 Berlin E-mail: m...@42com.com Homepage: www.42com.com Firmenangaben/Company information: Handelsregister/Commercial register: Amtsgericht Berlin HRB 99071 B Umsatzsteuer-ID/VAT-ID: DE223812306, Geschäftsführer/CEO: Thomas Reinig, Alexander Reinig Diese E-Mail enthält Informationen von 42com Telecommunication GmbH. Diese sind möglicherweise vertraulich und ausschließlich für den Adressaten bestimmt. Sollten Sie diese elektronische Nachricht irrtümlicherweise erhalten haben, so informieren Sie uns bitte unverzüglich telefonisch oder per E-Mail. This message is intended only for the use of the individual or entity to which it is addressed. If you have received this message in error, please delete the message and notify us immediately. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] alias_db not working
Hi all, I'm new to Opensips application. I want to route calls coming to two different sip accounts to a single sip account. I heard that we can do this using dbaliases table. but it didn't work. Glad if anyone can help me :s Thanks -- Yasiru___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Trying to start opensips
Hi All, I just start to learn opensips, and i complete installing it using apt. When I try this /etc/init.d/opensips start it gives, astboxvm:~# /etc/init.d/opensips start Starting opensips: opensipsListening on udp: 127.0.0.1 [127.0.0.1]:5065 udp: 192.168.102.24 [192.168.102.24]:5065 tcp: 127.0.0.1 [127.0.0.1]:5065 tcp: 192.168.102.24 [192.168.102.24]:5065 Aliases: tcp: localhost:5065 udp: localhost:5065 already running. and syslog log follows, Sep 17 14:15:38 astboxvm opensips: WARNING:core:fix_socket_list: could not rev. resolve 192.168.102.24 Sep 17 14:15:39 astboxvm opensips: WARNING:core:fix_socket_list: could not rev. resolve 192.168.102.24 Sep 17 14:15:39 astboxvm opensips: INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected) Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: NOTICE:core:main: version: opensips 1.7.0-notls (i386/linux) Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:core:main: using 64 Mb shared memory Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:core:main: using 2 Mb private memory per process Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: NOTICE:signaling:mod_init: initializing module ... Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:sl:mod_init: Initializing StateLess engine Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:tm:mod_init: TM - initializing... Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:rr:mod_init: rr - initializing Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:maxfwd:mod_init: initializing... Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:usrloc:ul_init_locks: locks array size 512 Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:registrar:mod_init: initializing... Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:textops:mod_init: initializing... Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: ERROR:core:db_check_api: module db_mysql does not export db_use_table function Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: ERROR:uri:mod_init: No database module found Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: ERROR:core:init_mod: failed to initialize module uri Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: ERROR:core:main: error while initializing modules Sep 17 14:15:39 astboxvm opensips: INFO:core:daemonize: pre-daemon process exiting with -1 Can anyone help me. Thank you regards Yasiru___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Trying to start opensips
Thank you Robert, I found that I wasn't add the db_mysql module. After I adding it, now opensips.cfg looks changed. But opensips still not starting. Now it gives following errors; Must be mysql connection error. I have no idea how to fix it. astboxvm:~# /etc/init.d/opensips start Starting opensips: opensipsListening on udp: 127.0.0.1 [127.0.0.1]:5065 udp: 192.168.102.24 [192.168.102.24]:5065 tcp: 127.0.0.1 [127.0.0.1]:5065 tcp: 192.168.102.24 [192.168.102.24]:5065 Aliases: tcp: localhost:5065 udp: localhost:5065 already running. syslog: Sep 17 14:54:08 astboxvm opensips: WARNING:core:fix_socket_list: could not rev. resolve 192.168.102.24 Sep 17 14:54:08 astboxvm opensips: WARNING:core:fix_socket_list: could not rev. resolve 192.168.102.24 Sep 17 14:54:08 astboxvm opensips: INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected) Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: NOTICE:core:main: version: opensips 1.7.0-notls (i386/linux) Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: INFO:core:main: using 64 Mb shared memory Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: INFO:core:main: using 2 Mb private memory per process Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: NOTICE:signaling:mod_init: initializing module ... Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: INFO:sl:mod_init: Initializing StateLess engine Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: INFO:tm:mod_init: TM - initializing... Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: INFO:rr:mod_init: rr - initializing Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: INFO:maxfwd:mod_init: initializing... Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: INFO:usrloc:ul_init_locks: locks array size 512 Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: INFO:registrar:mod_init: initializing... Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: INFO:textops:mod_init: initializing... Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user 'opensips'@'localhost' (using password: YES) Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: ERROR:core:db_do_init: could not add connection to the pool Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: ERROR:uri:mod_init: Could not connect to database Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: ERROR:core:init_mod: failed to initialize module uri Sep 17 14:54:08 astboxvm /usr/sbin/opensips[2166]: ERROR:core:main: error while initializing modules Sep 17 14:54:08 astboxvm opensips: INFO:core:daemonize: pre-daemon process exiting with -1 Thank you Regards Yasiru From: Robert Thomas tho...@gmail.com To: yasiru welandawe mod...@yahoo.com; OpenSIPS users mailling list users@lists.opensips.org Sent: Friday, September 16, 2011 10:25 AM Subject: Re: [OpenSIPS-Users] Trying to start opensips Looks like your config uses a function or a module that depends on a database backend and either you didnt register one, or it was not compiled On Thu, Sep 15, 2011 at 10:34 PM, yasiru welandawe mod...@yahoo.com wrote: Hi All, I just start to learn opensips, and i complete installing it using apt. When I try this /etc/init.d/opensips start it gives, astboxvm:~# /etc/init.d/opensips start Starting opensips: opensipsListening on udp: 127.0.0.1 [127.0.0.1]:5065 udp: 192.168.102.24 [192.168.102.24]:5065 tcp: 127.0.0.1 [127.0.0.1]:5065 tcp: 192.168.102.24 [192.168.102.24]:5065 Aliases: tcp: localhost:5065 udp: localhost:5065 already running. and syslog log follows, Sep 17 14:15:38 astboxvm opensips: WARNING:core:fix_socket_list: could not rev. resolve 192.168.102.24 Sep 17 14:15:39 astboxvm opensips: WARNING:core:fix_socket_list: could not rev. resolve 192.168.102.24 Sep 17 14:15:39 astboxvm opensips: INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected) Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: NOTICE:core:main: version: opensips 1.7.0-notls (i386/linux) Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:core:main: using 64 Mb shared memory Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:core:main: using 2 Mb private memory per process Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: NOTICE:signaling:mod_init: initializing module ... Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:sl:mod_init: Initializing StateLess engine Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:tm:mod_init: TM - initializing... Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:rr:mod_init: rr - initializing Sep 17 14:15:39 astboxvm /usr/sbin/opensips[2002]: INFO:maxfwd:mod_init: initializing... Sep 17 14:15