[SR-Users] starting kamailio method

Daniel-Constantin Mierla miconda at gmail.com
Wed Nov 30 11:50:52 CET 2011


Hello,

On 11/29/11 9:35 AM, Uri Shacked wrote:
> hi,
> both methods run the same cfg file.
> when i run kamailio i get the following output and syslog running (i 
> like it...)
> when i run the /etc/init.d/kamailio start i do not get this output and 
> can't follow the debug on line...
>
> [root at kamailiolabroute /]# kamailio
> loading modules under 
> /usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/
>  0(12605) WARNING: <core> [socket_info.c:1275]: WARNING: fix_hostname: 
> could not rev. resolve 10.2.0.55
>  0(12605) WARNING: <core> [socket_info.c:1275]: WARNING: fix_hostname: 
> could not rev. resolve 172.16.60.161
>  0(12605) WARNING: <core> [socket_info.c:1275]: WARNING: fix_hostname: 
> could not rev. resolve 10.2.0.55
>  0(12605) WARNING: <core> [socket_info.c:1275]: WARNING: fix_hostname: 
> could not rev. resolve 172.16.60.161
> Listening on
>              udp: 127.0.0.1:5060 <http://127.0.0.1:5060>
>              udp: 10.2.0.55:5060 <http://10.2.0.55:5060>
>              udp: 172.16.60.161:5060 <http://172.16.60.161:5060>
>              tcp: 127.0.0.1:5060 <http://127.0.0.1:5060>
>              tcp: 10.2.0.55:5060 <http://10.2.0.55:5060>
>              tcp: 172.16.60.161:5060 <http://172.16.60.161:5060>
> Aliases:
>              tcp: localhost:5060
>              tcp: localhost.localdomain:5060
>              udp: localhost:5060
>              udp: localhost.localdomain:5060

Above output is not sent to syslog, but printed to terminat. The init.d 
script suppresses the output to terminal from application, printing the 
messages from the script itself.

Cheers,
Daniel

>
> On Mon, Nov 28, 2011 at 12:45 PM, Daniel-Constantin Mierla 
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
>
>
>     On 11/27/11 4:14 PM, Alex Balashov wrote:
>
>         On 11/27/2011 09:56 AM, Uri Shacked wrote:
>
>             hi,
>             what is the differebt when i start kamailio with the
>             command "kamailio"
>             only, or using "/etc/init.d/kamailio start ?
>             using the first one gets me to see the log running...
>             second one does
>             not....
>             and with the second one i can configure the memory usage
>             and so....
>             how do i make them do the same?
>
>
>         These parameters are in a defaults file that, depending on
>         your distribution, goes either in /etc/sysconfig/kamailio or
>         /etc/default/kamailio.  It is sourced by the init script.
>
>     /etc/init.d/kamailio is just a wrapper around kamailio. As Alex
>     said, /etc/init.d/kamailio takes some parameters from different
>     files (a matter of OS distro) and passes them to kamailio as
>     command line parameters.
>
>     You can see what parameters can be passed to kamailio via command
>     line with'kamailio -h' -- this will print also the path to default
>     configuration file.
>
>     When you simply run kamailio, it will load the default
>     configuration file, with no other command line parameters.
>
>     If you have different output, means that either the init.d script
>     is using another config file (passed with -f) or it has command
>     line parameters that overwrite the values from config file.
>
>     Cheers,
>     Daniel
>
>     -- 
>     Daniel-Constantin Mierla -- http://www.asipto.com
>     <http://www.asipto.com/>
>     Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
>     http://linkedin.com/in/miconda -- http://twitter.com/miconda
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111130/9ee344d0/attachment.htm>


More information about the sr-users mailing list