[SR-Users] starting kamailio method

Uri Shacked ushacked at gmail.com
Tue Nov 29 09:35:06 CET 2011


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
             udp: 10.2.0.55:5060
             udp: 172.16.60.161:5060
             tcp: 127.0.0.1:5060
             tcp: 10.2.0.55:5060
             tcp: 172.16.60.161:5060
Aliases:
             tcp: localhost:5060
             tcp: localhost.localdomain:5060
             udp: localhost:5060
             udp: localhost.localdomain:5060

On Mon, Nov 28, 2011 at 12:45 PM, Daniel-Constantin Mierla <
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
> 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/20111129/62460af0/attachment-0001.htm>


More information about the sr-users mailing list