Re: [SR-Users] How to set variable externally

2012-12-21 Thread Olle E. Johansson
21 dec 2012 kl. 17:34 skrev Mino Haluz : > 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

Re: [SR-Users] How to set variable externally

2012-12-21 Thread Mino Haluz
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

Re: [SR-Users] How to set variable externally

2012-12-21 Thread Daniel-Constantin Mierla
On 12/21/12 5:15 PM, Olle E. Johansson wrote: 21 dec 2012 kl. 17:10 skrev Ovidiu Sas : 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)

Re: [SR-Users] How to set variable externally

2012-12-21 Thread Olle E. Johansson
21 dec 2012 kl. 17:10 skrev Ovidiu Sas : > 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 fl

Re: [SR-Users] How to set variable externally

2012-12-21 Thread Ovidiu Sas
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/

Re: [SR-Users] How to set variable externally

2012-12-21 Thread Daniel-Constantin Mierla
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

Re: [SR-Users] How to set variable externally

2012-12-21 Thread Mino Haluz
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 wrote: > Hi, > > I would like to set my custom different debug levels (with flag?) > externally with kamctl command. So I need

[SR-Users] How to set variable externally

2012-12-21 Thread Mino Haluz
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