Hi,
I would like to set my custom different debug levels (with flag?) externally with kamctl command. So I neednt restart kamailio if I want to enable/disable debug.
Which module should I use in that case?
Thanks, Mino
Ok I see that it is possible with pv module and shv_set MI command. How can I get value of this shared variable inside code?
On Fri, Dec 21, 2012 at 1:17 PM, Mino Haluz mino.haluz@gmail.com wrote:
Hi,
I would like to set my custom different debug levels (with flag?) externally with kamctl command. So I neednt restart kamailio if I want to enable/disable debug.
Which module should I use in that case?
Thanks, Mino
Hi all, i using debian squeeze. I installled kamailio from the package system. I set in the kamailio.cfg file: loadmodule "uac.so" I become the error: Dec 21 16:37:35 1a-7567 /usr/sbin/kamailio[3015]: ERROR: <core> [sr_module.c:939]: init_mod(): Error while initializing module uac (/usr/lib64/kamailio/modules_k/uac.so)
Can you help plese? thanks.
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
Hello,
do you get another error message before?
If not, set debug=3 in kamailio.cfg and run again. Then look at the logs to see if there is another message giving hints about what is wrong. Probably some mis-configured parameter.
Cheers, Daniel
On 12/21/12 4:38 PM, Thomas Hoellriegel wrote:
Hi all, i using debian squeeze. I installled kamailio from the package system. I set in the kamailio.cfg file: loadmodule "uac.so" I become the error: Dec 21 16:37:35 1a-7567 /usr/sbin/kamailio[3015]: ERROR: <core> [sr_module.c:939]: init_mod(): Error while initializing module uac (/usr/lib64/kamailio/modules_k/uac.so)
Can you help plese? thanks.
Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Am 21.12.12 um 16:43 schrieb Daniel-Constantin Mierla:
do you get another error message before?
Yes,: Dec 21 17:49:42 1a-7567 kamailio: INFO: <core> [tcp_main.c:4832]: init_tcp: using epoll_lt as the io watch method (auto detected) Dec 21 17:49:42 1a-7567 /usr/sbin/kamailio[3077]: INFO: usrloc [hslot.c:53]: locks array size 512 Dec 21 17:49:42 1a-7567 /usr/sbin/kamailio[3077]: ERROR: uac [uac.c:292]: 'append_fromtag' RR param is not enabled - required by AUTO restore mode! Or you should set from_restore_mode param to 'none' Dec 21 17:49:42 1a-7567 /usr/sbin/kamailio[3077]: ERROR: <core> [sr_module.c:939]: init_mod(): Error while initializing module uac (/usr/lib64/kamailio/modules_k/uac.so)
What parameter i must set please?
thanks.
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
2012-12-21 17:56, Thomas Hoellriegel skrev:
Am 21.12.12 um 16:43 schrieb Daniel-Constantin Mierla:
do you get another error message before?
Yes,: Dec 21 17:49:42 1a-7567 kamailio: INFO: <core> [tcp_main.c:4832]: init_tcp: using epoll_lt as the io watch method (auto detected) Dec 21 17:49:42 1a-7567 /usr/sbin/kamailio[3077]: INFO: usrloc [hslot.c:53]: locks array size 512 Dec 21 17:49:42 1a-7567 /usr/sbin/kamailio[3077]: ERROR: uac [uac.c:292]: 'append_fromtag' RR param is not enabled - required by AUTO restore mode! Or you should set from_restore_mode param to 'none' Dec 21 17:49:42 1a-7567 /usr/sbin/kamailio[3077]: ERROR: <core> [sr_module.c:939]: init_mod(): Error while initializing module uac (/usr/lib64/kamailio/modules_k/uac.so)
What parameter i must set please?
Try this:
# ----- rr params ----- # append the from tag to the RR (uac module need this) modparam("rr", "append_fromtag", 1)
Hi all, I don.t find a howto to register sip providers from kamailio and rederect incoming calls to a host. I find only a description from the uac module.
I have the sip providers: sipgate germany, sipgate uk and easybell.
I like to register these providers with kamailio, and redirect incoming calls to my freeswitchbox.
I don.t find a sulution how to can i make these functions.
Can your help please? tanks.
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
Hello,
look at the code in pv module for the mi/rpc command shv_get.
Cheers, Daniel
On 12/21/12 2:02 PM, Mino Haluz wrote:
Ok I see that it is possible with pv module and shv_set MI command. How can I get value of this shared variable inside code?
On Fri, Dec 21, 2012 at 1:17 PM, Mino Haluz <mino.haluz@gmail.com mailto:mino.haluz@gmail.com> wrote:
Hi, I would like to set my custom different debug levels (with flag?) externally with kamctl command. So I neednt restart kamailio if I want to enable/disable debug. Which module should I use in that case? Thanks, Mino
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you just want to control the debug level externally, take a look at the debug parameter: http://www.kamailio.org/wiki/cookbooks/3.3.x/core#debug It can be controlled via sercmd (kamcmd in future versions).
If you want to play with global flags, take a look at cfgutils: http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2533439 http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2494518 http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2494559
Regards, Ovidiu Sas
On Fri, Dec 21, 2012 at 7:17 AM, Mino Haluz mino.haluz@gmail.com wrote:
Hi,
I would like to set my custom different debug levels (with flag?) externally with kamctl command. So I neednt restart kamailio if I want to enable/disable debug.
Which module should I use in that case?
Thanks, Mino
21 dec 2012 kl. 17:10 skrev Ovidiu Sas osas@voipembedded.com:
If you just want to control the debug level externally, take a look at the debug parameter: http://www.kamailio.org/wiki/cookbooks/3.3.x/core#debug It can be controlled via sercmd (kamcmd in future versions).
If you want to play with global flags, take a look at cfgutils: http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2533439 http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2494518 http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2494559
For your own logs:
I usually declare a shared variable called "debug" in the pv module modparams.
When logging i do
if ($shv(debug) > 0) xlog(....)
All shared variables, like Daniel said, can be changed with kamctl/sercmd.
/O
On 12/21/12 5:15 PM, Olle E. Johansson wrote:
21 dec 2012 kl. 17:10 skrev Ovidiu Sas osas@voipembedded.com:
If you just want to control the debug level externally, take a look at the debug parameter: http://www.kamailio.org/wiki/cookbooks/3.3.x/core#debug It can be controlled via sercmd (kamcmd in future versions).
If you want to play with global flags, take a look at cfgutils: http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2533439 http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2494518 http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2494559
For your own logs:
I usually declare a shared variable called "debug" in the pv module modparams.
When logging i do
if ($shv(debug) > 0) xlog(....)
All shared variables, like Daniel said, can be changed with kamctl/sercmd.
More for the sake of archiving, one can even do:
xlog("$shv(debug)", ...);
and if $shv(debug) > than the value of debug parameter, then the message is not printed, otherwise will be printed to the level corresponding to its value.
Cheers, Daniel
Ok I did it like this, every xlog I'm calling is in the form:
xlog("L_INFO","XLOG: $ci [ROUTENAME] debuginformation");
and also after every sql_query I have
xlog("L_INFO","XLOG: $ci [ROUTENAME] SQL: select * from ....");
and when SIP message is received/sent
xlog("L_INFO","XLOG: $ci [MAIN] $mb"); xlog("L_INFO","XLOG: $ci [event:onsend_route] $snd(buf)");
So when I'm vizualizing the siptrace, I can view all SQL queries, raw packets (it is done already by siptrace however) and additional debug logs associated to one particular callid.
The question is, has xlog maximum length of the second parameter ? Because when SIP message length exceed some value (around 1500bytes, maybe some relation to packet max size) it is stripped. So when calling xlog("L_INFO","XLOG: $ci [event:onsend_route] START $snd(buf) END"); and $snd(buf) is too big, it is stripped and END is not in the logs.
Are you aware of maximum length of this xlog message parameter? I cannot find it in documentation.
Mino.
On Fri, Dec 21, 2012 at 5:18 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
On 12/21/12 5:15 PM, Olle E. Johansson wrote:
21 dec 2012 kl. 17:10 skrev Ovidiu Sas osas@voipembedded.com:
If you just want to control the debug level externally, take a look at
the debug parameter: http://www.kamailio.org/wiki/**cookbooks/3.3.x/core#debughttp://www.kamailio.org/wiki/cookbooks/3.3.x/core#debug It can be controlled via sercmd (kamcmd in future versions).
If you want to play with global flags, take a look at cfgutils: http://kamailio.org/docs/**modules/3.3.x/modules_k/**cfgutils.htmlhttp://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html http://kamailio.org/docs/**modules/3.3.x/modules_k/** cfgutils.html#id2533439http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2533439 http://kamailio.org/docs/**modules/3.3.x/modules_k/** cfgutils.html#id2494518http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2494518 http://kamailio.org/docs/**modules/3.3.x/modules_k/** cfgutils.html#id2494559http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2494559
For your own logs:
I usually declare a shared variable called "debug" in the pv module modparams.
When logging i do
if ($shv(debug) > 0) xlog(....)
All shared variables, like Daniel said, can be changed with kamctl/sercmd.
More for the sake of archiving, one can even do:
xlog("$shv(debug)", ...);
and if $shv(debug) > than the value of debug parameter, then the message is not printed, otherwise will be printed to the level corresponding to its value.
Cheers, Daniel
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/**micondahttp://www.linkedin.com/in/miconda
______________________________**_________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**usershttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
21 dec 2012 kl. 17:34 skrev Mino Haluz mino.haluz@gmail.com:
Ok I did it like this, every xlog I'm calling is in the form:
xlog("L_INFO","XLOG: $ci [ROUTENAME] debuginformation");
and also after every sql_query I have
xlog("L_INFO","XLOG: $ci [ROUTENAME] SQL: select * from ....");
and when SIP message is received/sent
xlog("L_INFO","XLOG: $ci [MAIN] $mb"); xlog("L_INFO","XLOG: $ci [event:onsend_route] $snd(buf)");
So when I'm vizualizing the siptrace, I can view all SQL queries, raw packets (it is done already by siptrace however) and additional debug logs associated to one particular callid.
The question is, has xlog maximum length of the second parameter ? Because when SIP message length exceed some value (around 1500bytes, maybe some relation to packet max size) it is stripped. So when calling xlog("L_INFO","XLOG: $ci [event:onsend_route] START $snd(buf) END"); and $snd(buf) is too big, it is stripped and END is not in the logs.
Could be the syslog/rsyslog configuration. Check syslog. There's also a pv buffer size you can set in the kamailio configuration - check the core cookbook.
Kamailio xlog logs to your syslog daemon.
Guessing a bit here. /O
Are you aware of maximum length of this xlog message parameter? I cannot find it in documentation.
Mino.
On Fri, Dec 21, 2012 at 5:18 PM, Daniel-Constantin Mierla miconda@gmail.com wrote:
On 12/21/12 5:15 PM, Olle E. Johansson wrote: 21 dec 2012 kl. 17:10 skrev Ovidiu Sas osas@voipembedded.com:
If you just want to control the debug level externally, take a look at the debug parameter: http://www.kamailio.org/wiki/cookbooks/3.3.x/core#debug It can be controlled via sercmd (kamcmd in future versions).
If you want to play with global flags, take a look at cfgutils: http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2533439 http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2494518 http://kamailio.org/docs/modules/3.3.x/modules_k/cfgutils.html#id2494559
For your own logs:
I usually declare a shared variable called "debug" in the pv module modparams.
When logging i do
if ($shv(debug) > 0) xlog(....)
All shared variables, like Daniel said, can be changed with kamctl/sercmd. More for the sake of archiving, one can even do:
xlog("$shv(debug)", ...);
and if $shv(debug) > than the value of debug parameter, then the message is not printed, otherwise will be printed to the level corresponding to its value.
Cheers, Daniel
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users