Re: [Freeswitch-users] SIP Trace Option at Runtime
it works! thanks On Wed, Jul 15, 2009 at 7:29 PM, Saeed Ahmad wrote: > console loglevel 8 > too > > On Wed, Jul 15, 2009 at 7:28 PM, Saeed Ahmad wrote: > >> fsctl loglevel 8 >> console loglevel >> now freeswitch.log is showing what i wanted but nothing on console, i am >> connected to ./fs_cli >> >> in vars.conf.xml >> >> >> >> i think its nothing to do with that! >> >> On Wed, Jul 15, 2009 at 6:51 PM, Brian West wrote: >> >>> fsctl loglevel xxx - controls core loglevel >>> console loglevel xxx - controls console loglevel >>> >>> If you fsctl loglevel 0 you basically turn it of and console loglevel >>> 8 won't work anymore because you turned it off in the core. >>> >>> /b >>> >>> >>> On Jul 15, 2009, at 11:45 AM, Saeed Ahmad wrote: >>> >>> > still a little confusion, >>> > >>> > what should be set in switch.conf.xml and console.conf.xml when >>> > system is in production and we only want to enable/disable logs on >>> > runtime. please also consider log files freeswitch.log & >>> > freeswitch.xml.fsxml, we don't want to log debug here. >>> > >>> > So main goal is without restarting FS we should be able to enable/ >>> > disable logs on runtime (when logs are enabled then its ok to write >>> > logs in log files, but on disable it should stop writing) and >>> > everything on runtime. >>> > >>> > Thanks >>> > - Saeed >>> > >>> >>> >>> ___ >>> Freeswitch-users mailing list >>> Freeswitch-users@lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> > ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] SIP Trace Option at Runtime
console loglevel 8 too On Wed, Jul 15, 2009 at 7:28 PM, Saeed Ahmad wrote: > fsctl loglevel 8 > console loglevel > now freeswitch.log is showing what i wanted but nothing on console, i am > connected to ./fs_cli > > in vars.conf.xml > > > > i think its nothing to do with that! > > On Wed, Jul 15, 2009 at 6:51 PM, Brian West wrote: > >> fsctl loglevel xxx - controls core loglevel >> console loglevel xxx - controls console loglevel >> >> If you fsctl loglevel 0 you basically turn it of and console loglevel >> 8 won't work anymore because you turned it off in the core. >> >> /b >> >> >> On Jul 15, 2009, at 11:45 AM, Saeed Ahmad wrote: >> >> > still a little confusion, >> > >> > what should be set in switch.conf.xml and console.conf.xml when >> > system is in production and we only want to enable/disable logs on >> > runtime. please also consider log files freeswitch.log & >> > freeswitch.xml.fsxml, we don't want to log debug here. >> > >> > So main goal is without restarting FS we should be able to enable/ >> > disable logs on runtime (when logs are enabled then its ok to write >> > logs in log files, but on disable it should stop writing) and >> > everything on runtime. >> > >> > Thanks >> > - Saeed >> > >> >> >> ___ >> Freeswitch-users mailing list >> Freeswitch-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] SIP Trace Option at Runtime
fsctl loglevel 8 console loglevel now freeswitch.log is showing what i wanted but nothing on console, i am connected to ./fs_cli in vars.conf.xml i think its nothing to do with that! On Wed, Jul 15, 2009 at 6:51 PM, Brian West wrote: > fsctl loglevel xxx - controls core loglevel > console loglevel xxx - controls console loglevel > > If you fsctl loglevel 0 you basically turn it of and console loglevel > 8 won't work anymore because you turned it off in the core. > > /b > > > On Jul 15, 2009, at 11:45 AM, Saeed Ahmad wrote: > > > still a little confusion, > > > > what should be set in switch.conf.xml and console.conf.xml when > > system is in production and we only want to enable/disable logs on > > runtime. please also consider log files freeswitch.log & > > freeswitch.xml.fsxml, we don't want to log debug here. > > > > So main goal is without restarting FS we should be able to enable/ > > disable logs on runtime (when logs are enabled then its ok to write > > logs in log files, but on disable it should stop writing) and > > everything on runtime. > > > > Thanks > > - Saeed > > > > > ___ > Freeswitch-users mailing list > Freeswitch-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] SIP Trace Option at Runtime
fsctl loglevel xxx - controls core loglevel console loglevel xxx - controls console loglevel If you fsctl loglevel 0 you basically turn it of and console loglevel 8 won't work anymore because you turned it off in the core. /b On Jul 15, 2009, at 11:45 AM, Saeed Ahmad wrote: > still a little confusion, > > what should be set in switch.conf.xml and console.conf.xml when > system is in production and we only want to enable/disable logs on > runtime. please also consider log files freeswitch.log & > freeswitch.xml.fsxml, we don't want to log debug here. > > So main goal is without restarting FS we should be able to enable/ > disable logs on runtime (when logs are enabled then its ok to write > logs in log files, but on disable it should stop writing) and > everything on runtime. > > Thanks > - Saeed > ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] SIP Trace Option at Runtime
still a little confusion, what should be set in switch.conf.xml and console.conf.xml when system is in production and we only want to enable/disable logs on runtime. please also consider log files freeswitch.log & freeswitch.xml.fsxml, we don't want to log debug here. So main goal is without restarting FS we should be able to enable/disable logs on runtime (when logs are enabled then its ok to write logs in log files, but on disable it should stop writing) and everything on runtime. Thanks - Saeed On Wed, Jul 15, 2009 at 6:16 PM, Mathieu Rene wrote: > Oh and the default level for "siptrace" is CONSOLE, you can change it > runtime (if you want to log it into log files) by doing sofia tracelevel > [xxx] (where [xxx] is the loglevel) > Mathieu Rene > Avant-Garde Solutions Inc > Office: + 1 (514) 664-1044 x100 > Cell: +1 (514) 664-1044 x200 > mr...@avgs.ca > > > > Am 15-Jul-09 um 12:08 PM schrieb Saeed Ahmad: > > switch.conf.xml > > > On Wed, Jul 15, 2009 at 6:06 PM, Brian West wrote: > >> where are you setting the loglevel to err at? >> >> /b >> >> On Jul 15, 2009, at 11:03 AM, Saeed Ahmad wrote: >> >> > and how can we do the same for console message? >> > >> > I noticed that if >> > >> > >> > >> > then even we press F8 on cli then it won't turn on the log message, >> > is there anyway to enable them even loglevel is set to 'err' >> > >> > - Saeed >> > >> >> >> ___ >> Freeswitch-users mailing list >> Freeswitch-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > ___ > Freeswitch-users mailing list > Freeswitch-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > > ___ > Freeswitch-users mailing list > Freeswitch-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] SIP Trace Option at Runtime
Oh and the default level for "siptrace" is CONSOLE, you can change it runtime (if you want to log it into log files) by doing sofia tracelevel [xxx] (where [xxx] is the loglevel) Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mr...@avgs.ca Am 15-Jul-09 um 12:08 PM schrieb Saeed Ahmad: switch.conf.xml On Wed, Jul 15, 2009 at 6:06 PM, Brian West wrote: where are you setting the loglevel to err at? /b On Jul 15, 2009, at 11:03 AM, Saeed Ahmad wrote: > and how can we do the same for console message? > > I noticed that if > > > > then even we press F8 on cli then it won't turn on the log message, > is there anyway to enable them even loglevel is set to 'err' > > - Saeed > ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] SIP Trace Option at Runtime
Thats the global loglevel here's a summary of how logging works: When a log message is issued, FS checks the global level (fsctl loglevel xxx, or the one in switch.conf.xml) and discards anything less important than this loglevel. Once this is passed, the module which you use control FS will filter the logs it displays for you. This can be mod_console, mod_event_socket (for fs_cli), and even mod_logfile. It is clear that most messages wont make it to your screen if your global loglevel is at error. Change your switch.conf.xml level to debug and then you'll see them. Pressing F8 only control whatever you are using to connect to FS, not the global level. Let me know if that makes any sense to you, and if it does, a little documentation on the wiki could be of great use. Regards,, Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mr...@avgs.ca Am 15-Jul-09 um 12:08 PM schrieb Saeed Ahmad: switch.conf.xml On Wed, Jul 15, 2009 at 6:06 PM, Brian West wrote: where are you setting the loglevel to err at? /b On Jul 15, 2009, at 11:03 AM, Saeed Ahmad wrote: > and how can we do the same for console message? > > I noticed that if > > > > then even we press F8 on cli then it won't turn on the log message, > is there anyway to enable them even loglevel is set to 'err' > > - Saeed > ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] SIP Trace Option at Runtime
you're lowering the core loglevel so you'll fsctl logelvel debug then console loglevel debug../. If you wish to start in err then edit console.conf.xml /b On Jul 15, 2009, at 11:08 AM, Saeed Ahmad wrote: > switch.conf.xml > ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] SIP Trace Option at Runtime
switch.conf.xml On Wed, Jul 15, 2009 at 6:06 PM, Brian West wrote: > where are you setting the loglevel to err at? > > /b > > On Jul 15, 2009, at 11:03 AM, Saeed Ahmad wrote: > > > and how can we do the same for console message? > > > > I noticed that if > > > > > > > > then even we press F8 on cli then it won't turn on the log message, > > is there anyway to enable them even loglevel is set to 'err' > > > > - Saeed > > > > > ___ > Freeswitch-users mailing list > Freeswitch-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] SIP Trace Option at Runtime
where are you setting the loglevel to err at? /b On Jul 15, 2009, at 11:03 AM, Saeed Ahmad wrote: > and how can we do the same for console message? > > I noticed that if > > > > then even we press F8 on cli then it won't turn on the log message, > is there anyway to enable them even loglevel is set to 'err' > > - Saeed > ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] SIP Trace Option at Runtime
and how can we do the same for console message? I noticed that if then even we press F8 on cli then it won't turn on the log message, is there anyway to enable them even loglevel is set to 'err' - Saeed On Wed, Jul 15, 2009 at 6:32 AM, Jason White wrote: > Muhammad Shahzad wrote: > > Is there any CLI command to enable / disable SIP packet trace at > runtime. > > sofia profile siptrace on > sofia profile siptrace off > > sofia help would have answered your question. > > > ___ > Freeswitch-users mailing list > Freeswitch-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] SIP Trace Option at Runtime
Muhammad Shahzad wrote: > Is there any CLI command to enable / disable SIP packet trace at runtime. sofia profile siptrace on sofia profile siptrace off sofia help would have answered your question. ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] SIP Trace Option at Runtime
Hi, Is there any CLI command to enable / disable SIP packet trace at runtime. I do know an option in SIP profile which enables / disable SIP trace but it to apply it i have reload mod_sofia, which at many times fail due to a running call. Thank you. -- Muhammad Shahzad --- CISCO Rich Media Communication Specialist (CRMCS) CISCO Certified Network Associate (CCNA) Cell: +92 334 422 40 88 MSN: shari_78...@hotmail.com Email: shaherya...@googlemail.com ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org