Hello,
I am using Kamailio with a multidomain set up. It is working well but for one issue: I first populate the /etc/hosts file with the domain name and the IP address ( and of course the domain table ) but the new domain does not take effect till I restart the kamailio. Does anyone know how I can overcome this problem as it is not possible for me to keep restarting the server each time a new user registers.
Thanks for the help.
Arun
Hello,
reverse dns to discover hostnames is done only at startup, being a rather time expensive operation.
You should use domain module where you put the list of local domains in a database table and issue reload commands via kamctl. You can enable a parameter so that domains managed by this module match the 'mysql' keyword.
Cheers, Daniel
On 03/01/14 06:50, arun Jayaprakash wrote:
Hello,
I am using Kamailio with a multidomain set up. It is working well but for one issue: I first populate the /etc/hosts file with the domain name and the IP address ( and of course the domain table ) but the new domain does not take effect till I restart the kamailio. Does anyone know how I can overcome this problem as it is not possible for me to keep restarting the server each time a new user registers.
Thanks for the help.
Arun
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Daniel, will there be a problem if I set up a cron job to run the domain reload command every 5 minutes?
Thanks, Arun
________________________________ From: Daniel-Constantin Mierla miconda@gmail.com To: arun Jayaprakash jayaprakasharun@yahoo.com; Kamailio (SER) - Users Mailing List sr-users@lists.sip-router.org Sent: Friday, January 3, 2014 3:24 AM Subject: Re: [SR-Users] Kamailio multi domain issue..
Hello,
reverse dns to discover hostnames is done only at startup, being a rather time expensive operation.
You should use domain module where you put the list of local domains in a database table and issue reload commands via kamctl. You can enable a parameter so that domains managed by this module match the 'mysql' keyword.
Cheers, Daniel
On 03/01/14 06:50, arun Jayaprakash wrote:
Hello,
I am using Kamailio with a multidomain set up. It is working well but for one issue: I first populate the /etc/hosts file with the domain name and the IP address ( and of course the domain table ) but the new domain does not take effect till I restart the kamailio. Does anyone know how I can overcome this problem as it is not possible for me to keep restarting the server each time a new user registers.
Thanks for the help.
Arun
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello, when I use the domain module in non caching mode will I need to issue the domain reload command when a new domain is added to to the table?
Thank you, Arun
________________________________ From: Daniel-Constantin Mierla miconda@gmail.com To: arun Jayaprakash jayaprakasharun@yahoo.com; Kamailio (SER) - Users Mailing List sr-users@lists.sip-router.org Sent: Friday, January 3, 2014 3:24 AM Subject: Re: [SR-Users] Kamailio multi domain issue..
Hello,
reverse dns to discover hostnames is done only at startup, being a rather time expensive operation.
You should use domain module where you put the list of local domains in a database table and issue reload commands via kamctl. You can enable a parameter so that domains managed by this module match the 'mysql' keyword.
Cheers, Daniel
On 03/01/14 06:50, arun Jayaprakash wrote:
Hello,
I am using Kamailio with a multidomain set up. It is working well but for one issue: I first populate the /etc/hosts file with the domain name and the IP address ( and of course the domain table ) but the new domain does not take effect till I restart the kamailio. Does anyone know how I can overcome this problem as it is not possible for me to keep restarting the server each time a new user registers.
Thanks for the help.
Arun
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users