<div dir="ltr"><div>Hi,</div>
<div> </div>
<div>any help will be graet....</div>
<div> </div>
<div> </div>
<div><em> hi,<br></em>&gt;<i><br></i>&gt;<i> when i moved the /etc/init.d/kamailio file. kamailio did not start at boot.<br></i>&gt;<i> now, i set the debug level to 4 and run kamailio in both ways.<br></i>&gt;<i><br></i>&gt;<i> 1. &quot;/etc/init.d/kamailio start&quot;<br>
</i>&gt;<i><br></i>  the resault was :<br><br>*Feb  1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: &lt;core&gt;<br>[mem/q_malloc.c:202]: qm_malloc_init: QM_OPTIMIZE=16384, /ROUNDTO=2048<br>Feb  1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: &lt;core&gt;<br>
[mem/q_malloc.c:204]: qm_malloc_init: QM_HASH_SIZE=2099, qm_block<br>size=218344<br>Feb  1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: &lt;core&gt;<br>[mem/q_malloc.c:205]: qm_malloc_init(0x7f1cf585b000, 2147483648),<br>start=0x7f1cf585b000<br>
Feb  1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: &lt;core&gt;<br>[mem/q_malloc.c:213]: qm_malloc_init: size= 2147483648, init_overhead=218440<br>Feb  1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: &lt;core&gt;<br>[mem/shm_mem.c:203]: shm_mem_init: success*<br>
<br>&gt;<i><br></i>&gt;<i> you can see the shm_mem size is 2048Mb.<br></i>&gt;<i><br></i><br>2.&quot;kamailio&quot;<br>the resault was :<br><br>*Feb  1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: &lt;core&gt;<br>[mem/q_malloc.c:202]: qm_malloc_init: QM_OPTIMIZE=16384, /ROUNDTO=2048<br>
Feb  1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: &lt;core&gt;<br>[mem/q_malloc.c:204]: qm_malloc_init: QM_HASH_SIZE=2099, qm_block<br>size=218344<br>Feb  1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: &lt;core&gt;<br>[mem/q_malloc.c:205]: qm_malloc_init(0x7f8618310000, 33554432),<br>
start=0x7f8618310000<br>Feb  1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: &lt;core&gt;<br>[mem/q_malloc.c:213]: qm_malloc_init: size= 33554432, init_overhead=218440<br>Feb  1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: &lt;core&gt;<br>
[mem/shm_mem.c:203]: shm_mem_init: success*<br>**<br>the resault is 32Mb.<br><br>any ideas?<br><br><br>&gt;<i><br></i>&gt;<i> On Wed, Feb 1, 2012 at 5:01 PM, Jason Penton &lt;<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">jason.penton at smilecoms.com</a>&gt;wrote:<br>
</i>&gt;<i><br></i>&gt;&gt;<i> I am not familiar with Centos but I suspect there is another script being<br></i>&gt;&gt;<i> run from somewhere. What I would do is move the /etc/init.d/kamailio script<br></i>&gt;&gt;<i> somewhere safe (your home directory for eg). Then reboot and see if<br>
</i>&gt;&gt;<i> kamailio still starts - if it does you need to find out whihc script is<br></i>&gt;&gt;<i> being called and where it is.<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> If you are not running X by default you are prob in runlevel 3. If you<br>
</i>&gt;&gt;<i> are running X, then it will be 5. check where you runlevel scripts are<br></i>&gt;&gt;<i> pointing. e.g.<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> ls -al /etc/rc3.d/SXXkamailio (X = [0-9])<br></i>&gt;&gt;<i><br>
</i>&gt;&gt;<i> Cheers<br></i>&gt;&gt;<i> Jason<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i>  On Wed, Feb 1, 2012 at 4:26 PM, Uri Shacked &lt;<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">uri.shacked at gmail.com</a>&gt;wrote:<br>
</i>&gt;&gt;<i><br></i>&gt;&gt;&gt;<i>  Hi,<br></i>&gt;&gt;&gt;<i><br></i>&gt;&gt;&gt;<i> when i reboot the machine, it starts with 32Mb and i do not understand<br></i>&gt;&gt;&gt;<i> why...<br></i>&gt;&gt;&gt;<i> so, does it use a startup file that i am not familiar with?<br>
</i>&gt;&gt;&gt;<i> what is the appropriate runlevel? how do i set it and where?<br></i>&gt;&gt;&gt;<i><br></i>&gt;&gt;&gt;<i> thanks,<br></i>&gt;&gt;&gt;<i> Uri<br></i>&gt;&gt;&gt;<i><br></i>&gt;&gt;&gt;<i><br></i>&gt;&gt;&gt;<i> &gt;Hi Sammy,<br>
</i>&gt;&gt;&gt;<i> &gt;<br></i>&gt;&gt;&gt;<i> &gt;When you use the init script, it is starting Kamailio with the correct<br></i>&gt;&gt;&gt;<i> &gt;arguments to get the environment you wish (-m 2048 probably). If<br></i>&gt;&gt;&gt;<i> however,<br>
</i>&gt;&gt;&gt;<i> &gt;you just call kamailio these args are not there. Im not sure why you are<br></i>&gt;&gt;&gt;<i> &gt;running with kamailio command directly. Why don&#39;t you add your init<br></i>&gt;&gt;&gt;<i> script<br>
</i>&gt;&gt;&gt;<i> &gt;to the appropriate runlevel for auto startup?<br></i>&gt;&gt;&gt;<i> &gt;<br></i>&gt;&gt;&gt;<i> &gt;Cheers<br></i>&gt;&gt;&gt;<i> &gt;Jason<br></i>&gt;&gt;&gt;<i><br></i>&gt;&gt;&gt;<i> On Wed, Feb 1, 2012 at 3:06 PM, Uri Shacked &lt;ushacked at <a href="http://gmail.com">gmail.com</a>&lt;<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>&gt;&gt;<br>
</i>&gt;&gt;&gt;<i> wrote:<br></i>&gt;&gt;&gt;<i><br></i>&gt;&gt;&gt;<i> &gt;* Hi again....<br></i>&gt;&gt;&gt;<i> *&gt;*<br></i>&gt;&gt;&gt;<i> *&gt;* i installed kamailio 3.2.2 today.<br></i>&gt;&gt;&gt;<i> *&gt;* i used the chkconfig tool to get kamailio run at boot.<br>
</i>&gt;&gt;&gt;<i> *&gt;* i edited both /etc/init.d/kamailio and /etc/default/kamailio files<br></i>&gt;&gt;&gt;<i> to run<br></i>&gt;&gt;&gt;<i> *&gt;* with 2048Mg of memory.<br></i>&gt;&gt;&gt;<i> *&gt;* now, when i run /etc/init.d/kamailio start, it starts with the right<br>
</i>&gt;&gt;&gt;<i> *&gt;* amount of memory.<br></i>&gt;&gt;&gt;<i> *&gt;* when i rum &quot;kamailio&quot; only, it starts with 32Mb....<br></i>&gt;&gt;&gt;<i> *&gt;*<br></i>&gt;&gt;&gt;<i> *&gt;*  i use centos 6.2 64bit.<br>
</i>&gt;&gt;&gt;<i> *&gt;* any ideas?<br></i>&gt;&gt;&gt;<i> *&gt;*<br></i>&gt;&gt;&gt;<i> *&gt;*<br></i>&gt;&gt;&gt;<i> *&gt;*<br></i>&gt;&gt;&gt;<i> *&gt;*<br></i>&gt;&gt;&gt;<i> *&gt;*<br></i>&gt;&gt;&gt;<i> *&gt;* On Tue, Oct 25, 2011 at 1:18 PM, Uri Shacked &lt;ushacked at <a href="http://gmail.com">gmail.com</a>&lt;<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>&gt;&gt;<br>
</i>&gt;&gt;&gt;<i> wrote:<br></i>&gt;&gt;&gt;<i> *&gt;*<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* Hi.<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* I already checked it all. The kamailio start and stop command did<br></i>&gt;&gt;&gt;<i> not<br>
</i>&gt;&gt;&gt;<i> *&gt;&gt;* work. The init script i used was for debian. Now i use another<br></i>&gt;&gt;&gt;<i> script,<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* for centos. It works. I add the kamailio proccess with chkconfig<br>
</i>&gt;&gt;&gt;<i> tool.<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* Thanks.<br></i>&gt;&gt;&gt;<i> *&gt;&gt;*<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* On 10/25/11, Sammy Govind &lt;govoiper at <a href="http://gmail.com">gmail.com</a>&lt;<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>&gt;&gt;<br>
</i>&gt;&gt;&gt;<i> wrote:<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; Thanks Alex,<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; Hey Uri, can you check if you&#39;ve /etc/init.d/kamailio file<br>
</i>&gt;&gt;&gt;<i> exists - open<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; that file if exists and cross verify few parameters.<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; Few of these are as follows<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;<br>
</i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; PATH=/sbin:/bin:/usr/sbin:/usr/bin<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; DAEMON=*/usr/local/sbin/kamailio*<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; NAME=kamailio<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; DESC=kamailio<br>
</i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; HOMEDIR=/var/run/<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; *PIDFILE*=$HOMEDIR/$NAME.pid<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; DEFAULTS=*/etc/default/kamailio.default*<br></i>&gt;&gt;&gt;<i> *&gt;&gt;*  &gt; RUN_KAMAILIO=yes<br>
</i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; Make sure /etc/default/kamailio.default file exits. here are the<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* contents of<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; my file.<br>
</i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; RUN_KAMAILIO=yes<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; USER=kamailio<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; GROUP=kamailio<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; MEMORY=64<br>
</i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; DUMP_CORE=no<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; On Tue, Oct 25, 2011 at 3:38 AM, Klaus Darilion &lt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt; klaus.mailinglists at <a href="http://pernau.at">pernau.at</a>&lt;<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>&gt;&gt;<br>
</i>&gt;&gt;&gt;<i> wrote:<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt; Test the startupscript if they work:<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt; /etc/init.d/kamailio start<br>
</i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt; /etc/init.d/kamailio stop<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt; If this works, then make sure to have proper symlinks from the<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt; corresponding runlevel to the startup script. Do it manually or<br>
</i>&gt;&gt;&gt;<i> use the<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt; chkconfig tool.<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt; klaus<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;<br>
</i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt; On 24.10.2011 08:00, Uri Shacked wrote:<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt; hi again,<br>
</i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt; i found out that on my centos 5.4 the command<br></i>&gt;&gt;&gt;<i> start-stop-daemon that<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* the<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt; /etc/init.d/kamailio uses is not recognized.<br>
</i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt; it is kamailio3.2 any ideas?<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt; On Mon, Oct 24, 2011 at 3:03 PM, Uri Shacked &lt;ushacked at<br>
</i>&gt;&gt;&gt;<i> <a href="http://gmail.com">gmail.com</a>&lt;<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>&gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt; &lt;mailto:<a href="mailto:ushacked">ushacked</a> at <a href="http://gmail.com">gmail.com</a>&lt;<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>&gt;&gt;&gt;<br>
</i>&gt;&gt;&gt;<i> wrote:<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt;    Hi,<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt;    what is the best way to start kamailio at boot?<br>
</i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt;    the example in the install is not working for me....<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt;<br></i>&gt;&gt;&gt;<i> *&gt;&gt;* &gt;&gt;&gt;<br></i>&gt;&gt;&gt;<i> *<br>
</i>&gt;&gt;&gt;<i><br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> This email is subject to the disclaimer of Smile Communications (PTY) Ltd. at <a href="http://www.smilecoms.com/disclaimer">http://www.smilecoms.com/disclaimer</a><br>
</i>&gt;&gt;<i><br></i>&gt;&gt;<i><br></i>&gt;<i><br></i></div></div>