Hello, can someone let me know how I can start Kamailio with the init script? In the /etc/default/kamailio file I have commented out RUN_KAMAILIO=yes, this starts Kamailio but my phones do not register. If I stop the init script and start kamailio with kamctl then my phones register, what am I doing wrong here?
Also, if my understanding is correct, if I start Kamailio with the init script I should not start kamailio with kamctl, in that case how do I run the kamctl commands, for eg like kamctl ul show ?
Thanks for the help.
Arun
Hi Arun,
take a look at the /var/log/messages like
# tail -n 200 /var/log/messages | grep kamailio
my guess ... you installed kamailio as root and kamailio (look at the /etc/defaults/kamailio) is trying to start as user=kamailio and group=kamailio
Regards Rainer
Am 08.05.2014 14:46, schrieb VOIP Tests:
Hello, can someone let me know how I can start Kamailio with the init script? In the /etc/default/kamailio file I have commented out RUN_KAMAILIO=yes, this starts Kamailio but my phones do not register. If I stop the init script and start kamailio with kamctl then my phones register, what am I doing wrong here?
Also, if my understanding is correct, if I start Kamailio with the init script I should not start kamailio with kamctl, in that case how do I run the kamctl commands, for eg like kamctl ul show ?
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
Hi,
start kamailio with initscript: /etc/init.d/kamailio start
Different behaviour with different starting methods might be due to different configs that are used for starting.
Start kamailio each way and do a 'ps aux | grep kamailio'. Then compare or post here.
greetz
Am 08.05.2014 14:46, schrieb VOIP Tests:
Hello, can someone let me know how I can start Kamailio with the init script? In the /etc/default/kamailio file I have commented out RUN_KAMAILIO=yes, this starts Kamailio but my phones do not register. If I stop the init script and start kamailio with kamctl then my phones register, what am I doing wrong here?
Also, if my understanding is correct, if I start Kamailio with the init script I should not start kamailio with kamctl, in that case how do I run the kamctl commands, for eg like kamctl ul show ?
Thanks for the help.
Arun
Moritz, thank your for your pointer. I changed some parementer in the /etc/init.d/kamailio file and now it seems fine. Can you please let me know if this output looks ok.
Output of 'ps aux | grep kamailio' with kamctl start:
*root 1498 0.6 0.2 255716 7980 ? S 15:29 0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -f /usr/local/etc/kamailio//kamailio.cfg*
Output of 'ps aux | grep kamailio' with init.d : r*oot 1805 0.0 0.2 294816 8036 ? S 15:44 0:00 /usr/local/sbin/kamailio -f /usr/local/etc/kamailio/kamaili .cfg -P /var/run/kamailio/kamailio.pid -m 64 -M 4 -u root -g root*
Thank you, Arun
On Thu, May 8, 2014 at 10:35 AM, Moritz Graf moritz.graf@g-fit.de wrote:
Hi,
start kamailio with initscript: /etc/init.d/kamailio start
Different behaviour with different starting methods might be due to different configs that are used for starting.
Start kamailio each way and do a 'ps aux | grep kamailio'. Then compare or post here.
greetz
Am 08.05.2014 14:46, schrieb VOIP Tests:
Hello, can someone let me know how I can start Kamailio with the init script? In the /etc/default/kamailio file I have commented out RUN_KAMAILIO=yes, this starts Kamailio but my phones do not register. If I stop the init script and start kamailio with kamctl then my phones register, what am I doing wrong here?
Also, if my understanding is correct, if I start Kamailio with the init script I should not start kamailio with kamctl, in that case how do I run the kamctl commands, for eg like kamctl ul show ?
Thanks for the help.
Arun
--
Moritz Graf, M.Sc. Betrieb NGN-Plattform
G-FIT GmbH & Co. KG Greflingerstr. 26, 93055 Regensburg
Telefon +49 (9 41) 46299 - 1 86 Telefax +49 (9 41) 46299 - 2 86 mailto:moritz.graf@g-fit.de http://www.g-fit.de
G-FIT Gesellschaft für innovative Telekommunikationsdienste mbH & Co. KG, Kommanditgesellschaft, Sitz Regensburg, Registergericht Regensburg, HRA 7626; Geschäftsführer: Dipl.Inf. (FH) Alfred Rauscher
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
Hi Arun,
Am 08.05.2014 22:54, wrote VOIP Tests:
Moritz, thank your for your pointer. I changed some parementer in the /etc/init.d/kamailio file and now it seems fine. Can you please let me know if this output looks ok.
Output of 'ps aux | grep kamailio' with kamctl start:
*root 1498 0.6 0.2 255716 7980 ? S 15:29 0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -f /usr/local/etc/kamailio//kamailio.cfg*
Output of 'ps aux | grep kamailio' with init.d : r*oot 1805 0.0 0.2 294816 8036 ? S 15:44 0:00 /usr/local/sbin/kamailio -f /usr/local/etc/kamailio/kamaili .cfg -P /var/run/kamailio/kamailio.pid -m 64 -M 4 -u root -g root*
Depends on what you want. Looking at the parameters: -u root -g root => Are you sure you want to run kamailio with root rights? It's absolutely discouraged! -m 64 -M 64 => defining the shared and private memory. Depends on your system, but if you don't know what this is... defaults seem reasonable.
Long story short, type a "man kamailio" and lookup the parameters. Then adjust them as you wish.
greetz
Thank you, Arun
On Thu, May 8, 2014 at 10:35 AM, Moritz Graf <moritz.graf@g-fit.de mailto:moritz.graf@g-fit.de> wrote:
Hi, start kamailio with initscript: /etc/init.d/kamailio start Different behaviour with different starting methods might be due to different configs that are used for starting. Start kamailio each way and do a 'ps aux | grep kamailio'. Then compare or post here. greetz Am 08.05.2014 14:46, schrieb VOIP Tests: > Hello, can someone let me know how I can start Kamailio with the init > script? In the /etc/default/kamailio file I have commented > out RUN_KAMAILIO=yes, this starts Kamailio but my phones do not > register. If I stop the init script and start kamailio with kamctl then > my phones register, what am I doing wrong here? > > Also, if my understanding is correct, if I start Kamailio with the init > script I should not start kamailio with kamctl, in that case how do I > run the kamctl commands, for eg like kamctl ul show ? > > Thanks for the help. > > Arun -- Moritz Graf, M.Sc. Betrieb NGN-Plattform G-FIT GmbH & Co. KG Greflingerstr. 26, 93055 Regensburg Telefon +49 (9 41) 46299 - 1 86 <tel:%2B49%20%289%2041%29%2046299%20-%201%2086> Telefax +49 (9 41) 46299 - 2 86 <tel:%2B49%20%289%2041%29%2046299%20-%202%2086> mailto:moritz.graf@g-fit.de <mailto:moritz.graf@g-fit.de> http://www.g-fit.de G-FIT Gesellschaft für innovative Telekommunikationsdienste mbH & Co. KG, Kommanditgesellschaft, Sitz Regensburg, Registergericht Regensburg, HRA 7626; Geschäftsführer: Dipl.Inf. (FH) Alfred Rauscher _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users