I am not familiar with Centos but I suspect there is another script being
run from somewhere. What I would do is move the /etc/init.d/kamailio script
somewhere safe (your home directory for eg). Then reboot and see if
kamailio still starts - if it does you need to find out whihc script is
being called and where it is.
If you are not running X by default you are prob in runlevel 3. If you are
running X, then it will be 5. check where you runlevel scripts are
pointing. e.g.
ls -al /etc/rc3.d/…
[View More]SXXkamailio (X = [0-9])
Cheers
Jason
On Wed, Feb 1, 2012 at 4:26 PM, Uri Shacked <uri.shacked(a)gmail.com> wrote:
> Hi,
>
> when i reboot the machine, it starts with 32Mb and i do not understand
> why...
> so, does it use a startup file that i am not familiar with?
> what is the appropriate runlevel? how do i set it and where?
>
> thanks,
> Uri
>
>
> >Hi Sammy,
> >
> >When you use the init script, it is starting Kamailio with the correct
> >arguments to get the environment you wish (-m 2048 probably). If however,
> >you just call kamailio these args are not there. Im not sure why you are
> >running with kamailio command directly. Why don't you add your init script
> >to the appropriate runlevel for auto startup?
> >
> >Cheers
> >Jason
>
> On Wed, Feb 1, 2012 at 3:06 PM, Uri Shacked <ushacked at gmail.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>
> wrote:
>
> >* Hi again....
> *>*
> *>* i installed kamailio 3.2.2 today.
> *>* i used the chkconfig tool to get kamailio run at boot.
> *>* i edited both /etc/init.d/kamailio and /etc/default/kamailio files to
> run
> *>* with 2048Mg of memory.
> *>* now, when i run /etc/init.d/kamailio start, it starts with the right
> *>* amount of memory.
> *>* when i rum "kamailio" only, it starts with 32Mb....
> *>*
> *>* i use centos 6.2 64bit.
> *>* any ideas?
> *>*
> *>*
> *>*
> *>*
> *>*
> *>* On Tue, Oct 25, 2011 at 1:18 PM, Uri Shacked <ushacked at gmail.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>
> wrote:
> *>*
> *>>* Hi.
> *>>* I already checked it all. The kamailio start and stop command did not
> *>>* work. The init script i used was for debian. Now i use another
> script,
> *>>* for centos. It works. I add the kamailio proccess with chkconfig
> tool.
> *>>* Thanks.
> *>>*
> *>>* On 10/25/11, Sammy Govind <govoiper at gmail.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>
> wrote:
> *>>* > Thanks Alex,
> *>>* >
> *>>* > Hey Uri, can you check if you've /etc/init.d/kamailio file exists
> - open
> *>>* > that file if exists and cross verify few parameters.
> *>>* > Few of these are as follows
> *>>* >
> *>>* > PATH=/sbin:/bin:/usr/sbin:/usr/bin
> *>>* > DAEMON=*/usr/local/sbin/kamailio*
> *>>* > NAME=kamailio
> *>>* > DESC=kamailio
> *>>* > HOMEDIR=/var/run/
> *>>* > *PIDFILE*=$HOMEDIR/$NAME.pid
> *>>* > DEFAULTS=*/etc/default/kamailio.default*
> *>>* > RUN_KAMAILIO=yes
> *>>* >
> *>>* > Make sure /etc/default/kamailio.default file exits. here are the
> *>>* contents of
> *>>* > my file.
> *>>* >
> *>>* > RUN_KAMAILIO=yes
> *>>* > USER=kamailio
> *>>* > GROUP=kamailio
> *>>* > MEMORY=64
> *>>* > DUMP_CORE=no
> *>>* >
> *>>* > On Tue, Oct 25, 2011 at 3:38 AM, Klaus Darilion <
> *>>* > klaus.mailinglists at pernau.at<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>
> wrote:
> *>>* >
> *>>* >> Test the startupscript if they work:
> *>>* >>
> *>>* >> /etc/init.d/kamailio start
> *>>* >> /etc/init.d/kamailio stop
> *>>* >>
> *>>* >> If this works, then make sure to have proper symlinks from the
> *>>* >> corresponding runlevel to the startup script. Do it manually or
> use the
> *>>* >> chkconfig tool.
> *>>* >>
> *>>* >> klaus
> *>>* >>
> *>>* >>
> *>>* >> On 24.10.2011 08:00, Uri Shacked wrote:
> *>>* >>
> *>>* >>> hi again,
> *>>* >>> i found out that on my centos 5.4 the command start-stop-daemon
> that
> *>>* the
> *>>* >>> /etc/init.d/kamailio uses is not recognized.
> *>>* >>> it is kamailio3.2 any ideas?
> *>>* >>>
> *>>* >>>
> *>>* >>> On Mon, Oct 24, 2011 at 3:03 PM, Uri Shacked <ushacked at
> gmail.com <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
> *>>* >>> <mailto:ushacked at gmail.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>>
> wrote:
> *>>* >>>
> *>>* >>> Hi,
> *>>* >>> what is the best way to start kamailio at boot?
> *>>* >>> the example in the install is not working for me....
> *>>* >>>
> *>>* >>>
> *
>
This email is subject to the disclaimer of Smile Communications (PTY) Ltd. at http://www.smilecoms.com/disclaimer
[View Less]
On Wed, Feb 1, 2012 at 4:26 PM, Uri Shacked <uri.shacked(a)gmail.com> wrote:
> Hi,
>
> when i reboot the machine, it starts with 32Mb and i do not understand
> why...
> so, does it use a startup file that i am not familiar with?
> what is the appropriate runlevel? how do i set it and where?
>
> thanks,
> Uri
>
>
> >Hi Sammy,
> >
> >When you use the init script, it is starting Kamailio with the correct
> >arguments to get the …
[View More]environment you wish (-m 2048 probably). If however,
> >you just call kamailio these args are not there. Im not sure why you are
> >running with kamailio command directly. Why don't you add your init script
> >to the appropriate runlevel for auto startup?
> >
> >Cheers
> >Jason
>
> On Wed, Feb 1, 2012 at 3:06 PM, Uri Shacked <ushacked at gmail.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>
> wrote:
>
> >* Hi again....
> *>*
> *>* i installed kamailio 3.2.2 today.
> *>* i used the chkconfig tool to get kamailio run at boot.
> *>* i edited both /etc/init.d/kamailio and /etc/default/kamailio files to
> run
> *>* with 2048Mg of memory.
> *>* now, when i run /etc/init.d/kamailio start, it starts with the right
> *>* amount of memory.
> *>* when i rum "kamailio" only, it starts with 32Mb....
> *>*
> *>* i use centos 6.2 64bit.
> *>* any ideas?
> *>*
> *>*
> *>*
> *>*
> *>*
> *>* On Tue, Oct 25, 2011 at 1:18 PM, Uri Shacked <ushacked at gmail.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>
> wrote:
> *>*
> *>>* Hi.
> *>>* I already checked it all. The kamailio start and stop command did not
> *>>* work. The init script i used was for debian. Now i use another
> script,
> *>>* for centos. It works. I add the kamailio proccess with chkconfig
> tool.
> *>>* Thanks.
> *>>*
> *>>* On 10/25/11, Sammy Govind <govoiper at gmail.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>
> wrote:
> *>>* > Thanks Alex,
> *>>* >
> *>>* > Hey Uri, can you check if you've /etc/init.d/kamailio file exists
> - open
> *>>* > that file if exists and cross verify few parameters.
> *>>* > Few of these are as follows
> *>>* >
> *>>* > PATH=/sbin:/bin:/usr/sbin:/usr/bin
> *>>* > DAEMON=*/usr/local/sbin/kamailio*
> *>>* > NAME=kamailio
> *>>* > DESC=kamailio
> *>>* > HOMEDIR=/var/run/
> *>>* > *PIDFILE*=$HOMEDIR/$NAME.pid
> *>>* > DEFAULTS=*/etc/default/kamailio.default*
> *>>* > RUN_KAMAILIO=yes
> *>>* >
> *>>* > Make sure /etc/default/kamailio.default file exits. here are the
> *>>* contents of
> *>>* > my file.
> *>>* >
> *>>* > RUN_KAMAILIO=yes
> *>>* > USER=kamailio
> *>>* > GROUP=kamailio
> *>>* > MEMORY=64
> *>>* > DUMP_CORE=no
> *>>* >
> *>>* > On Tue, Oct 25, 2011 at 3:38 AM, Klaus Darilion <
> *>>* > klaus.mailinglists at pernau.at<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>
> wrote:
> *>>* >
> *>>* >> Test the startupscript if they work:
> *>>* >>
> *>>* >> /etc/init.d/kamailio start
> *>>* >> /etc/init.d/kamailio stop
> *>>* >>
> *>>* >> If this works, then make sure to have proper symlinks from the
> *>>* >> corresponding runlevel to the startup script. Do it manually or
> use the
> *>>* >> chkconfig tool.
> *>>* >>
> *>>* >> klaus
> *>>* >>
> *>>* >>
> *>>* >> On 24.10.2011 08:00, Uri Shacked wrote:
> *>>* >>
> *>>* >>> hi again,
> *>>* >>> i found out that on my centos 5.4 the command start-stop-daemon
> that
> *>>* the
> *>>* >>> /etc/init.d/kamailio uses is not recognized.
> *>>* >>> it is kamailio3.2 any ideas?
> *>>* >>>
> *>>* >>>
> *>>* >>> On Mon, Oct 24, 2011 at 3:03 PM, Uri Shacked <ushacked at
> gmail.com <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
> *>>* >>> <mailto:ushacked at gmail.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>>
> wrote:
> *>>* >>>
> *>>* >>> Hi,
> *>>* >>> what is the best way to start kamailio at boot?
> *>>* >>> the example in the install is not working for me....
> *>>* >>>
> *>>* >>>
> *
>
[View Less]
Hi,
I'm trying to make when each subscriber dials 7 digits add subscriber based
specific prefix to dialed number defined in subscriber or dialplan table. I
know that it's possible with avp but I'm not professional about avp. could
you send me a successful scenario and config example please?
Hello,
assuming that I want to use contact from 302 response as outbound proxy
but keep the original Request-URI, what should I do? Calling the
revert_uri() after get_redirects() in failure_route doesn't do the trick.
Hi guys.....
the header searching and saving the Q850 code didn't work.
here is what i wrote in the cfg, in the failure route:
*# manage failure routing cases
failure_route[MANAGE_FAILURE] {
xlog("L_CRIT", "failure \n");
if($avp(CAR)=="CALLOUT"){
xlog("L_CRIT", "failure in callout \n");
##if(is_present_hf("Reason")) {
xlog("L_CRIT", "failure in reason\n");
$avp(Q850)=$(hdr(Reason){param.value,cause}{s.int});
xlog("L_CRIT", "failure in reason $avp(Q850)\n");
##}*
here is the …
[View More]log print......
* 3(3433) CRITICAL: <script>: failure
3(3433) CRITICAL: <script>: failure in callout
3(3433) CRITICAL: <script>: failure in reason
3(3433) ERROR: <core> [lvalue.c:347]: non existing right pvar
3(3433) ERROR: <core> [lvalue.c:407]: assignment failed at pos:
(524,15-524,54)
3(3433) CRITICAL: <script>: failure in reason <null>*
the command *is_present_hf("Reason")) * is under ## because of tests...
when it was in use, the script didn't even went in the "if", the command
didn't recognize the header.
**
here is the sip trace for the 486, the header is there...
* Message Header
Call-ID: 6994099017399497785-1328029200-13379
From: <sip:36264529;ss7-cpc=10;cpc=ordinary@172.16.10.3
;user=phone>;tag=6994099017399497785
To: <sip:39955011@172.16.60.161;user=phone>;tag=9299942026613191738
CSeq: 1 INVITE
Via: SIP/2.0/UDP
172.16.60.161;received=172.16.60.161;branch=z9hG4bK08d6.c653f346.2,SIP/2.0/UDP
172.16.10.3:5060;branch=z9hG4bK-6110080000017439-ac100a03-1
Supported: timer,100rel
Reason: Q.850;cause=17;text="UserBusy"
Reason Protocols: Q.850
Cause: 17(0x11)[User busy]
Content-Length: 0*
[View Less]
On 2/1/12 11:58 AM, Uri Shacked wrote:
> worked OK, thanks.
> [...]
ok, keep cc-ing the list for topics discussed there, so people reading
the archive later know what was the final solution.
Cheers,
Daniel
>
> On Wed, Feb 1, 2012 at 11:40 AM, Uri Shacked <ushacked(a)gmail.com
> <mailto:ushacked@gmail.com>> wrote:
>
> i will try again.
> i did edit the modules.lst file with all the modules i use....
> will let you know ASAP.
>
> On …
[View More]Wed, Feb 1, 2012 at 11:33 AM, Daniel-Constantin Mierla
> <miconda(a)gmail.com <mailto:miconda@gmail.com>> wrote:
>
> Hello,
>
> you haven't compiled and installed db_mysql from 3.2.2, so it
> is installed the one from 3.2.1. Be sure you include db_mysql
> in the list of modules to be compiled and installed, one
> option is:
>
> make FLAVOUR=kamailio include_modules="db_mysql" cfg
> make all
> make install
>
> Cheers,
> Daniel
>
>
> On 2/1/12 10:30 AM, Uri Shacked wrote:
>>
>> made install and got the following error:
>> "kamailio
>> loading modules under
>> /usr/local/lib64/kamailio/modules_k/:/usr/local/lib64/kamailio/modules/
>> 0(21428) ERROR: <core> [sr_module.c:415]: ERROR: module
>> version mismatch for
>> /usr/local/lib64/kamailio/modules/db_mysql.so; core:
>> kamailio 3.2.2 (x86_64/linux); module: kamailio 3.2.1
>> (x86_64/linux)"
>>
>>
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla --http://www.asipto.com <http://www.asipto.com/>
> http://linkedin.com/in/miconda -- http://twitter.com/miconda
>
>
>
--
Daniel-Constantin Mierla -- http://www.asipto.comhttp://linkedin.com/in/miconda -- http://twitter.com/miconda
[View Less]
Hello,
besides existing deb.kamailio.org, I added builds for Debian 5.0, 6.0
and Ubuntu 10.04 to the OpenSUSE Build Service (OBS). These repositories
are built only for stable releases in 3.2.x series. Main target for them
is to be sure the releases compile properly, across main Linux
distributions, OBS providing an easy interface to keep updating and
building until everything is ok.
Anyhow, these alternative repositories may be handy to use for some of
you. Details about setting APT …
[View More]sources are available at:
http://www.kamailio.org/wiki/packages/debs#using_obs_repository
Cheers,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.comhttp://linkedin.com/in/miconda -- http://twitter.com/miconda
[View Less]