[SR-Users] Starting Kamailio with init script
Moritz Graf
moritz.graf at g-fit.de
Fri May 9 11:12:47 CEST 2014
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 at g-fit.de
> <mailto:moritz.graf at 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 at g-fit.de <mailto:moritz.graf at 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 at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
--
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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 538 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140509/af1af805/attachment.pgp>
More information about the sr-users
mailing list