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_786pk@hotmail.com Email: shaheryarkh@googlemail.com
and how can we do the same for console message? I noticed that if <param name="loglevel" value="err"/> 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 <jason@jasonjgw.net> wrote:
Muhammad Shahzad <shaheryarkh@googlemail.com> wrote:
Is there any CLI command to enable / disable SIP packet trace at runtime.
sofia profile <profilename> siptrace on sofia profile <profilename> 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
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
<param name="loglevel" value="err"/>
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
switch.conf.xml On Wed, Jul 15, 2009 at 6:06 PM, Brian West <brian@freeswitch.org> 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
<param name="loglevel" value="err"/>
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
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 mrene@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 <brian@freeswitch.org> 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
<param name="loglevel" value="err"/>
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
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 mrene@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 <brian@freeswitch.org> 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
<param name="loglevel" value="err"/>
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
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 <mrene_lists@avgs.ca> 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 mrene@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 <brian@freeswitch.org> 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
<param name="loglevel" value="err"/>
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
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
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 <X-PRE-PROCESS cmd="set" data="console_loglevel=info"/> i think its nothing to do with that! On Wed, Jul 15, 2009 at 6:51 PM, Brian West <brian@freeswitch.org> 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
console loglevel 8 too On Wed, Jul 15, 2009 at 7:28 PM, Saeed Ahmad <saeedahmad1981@gmail.com>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
<X-PRE-PROCESS cmd="set" data="console_loglevel=info"/>
i think its nothing to do with that!
On Wed, Jul 15, 2009 at 6:51 PM, Brian West <brian@freeswitch.org> 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
it works! thanks On Wed, Jul 15, 2009 at 7:29 PM, Saeed Ahmad <saeedahmad1981@gmail.com>wrote:
console loglevel 8 too
On Wed, Jul 15, 2009 at 7:28 PM, Saeed Ahmad <saeedahmad1981@gmail.com>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
<X-PRE-PROCESS cmd="set" data="console_loglevel=info"/>
i think its nothing to do with that!
On Wed, Jul 15, 2009 at 6:51 PM, Brian West <brian@freeswitch.org> 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
participants (5)
-
Brian West
-
Jason White
-
Mathieu Rene
-
Muhammad Shahzad
-
Saeed Ahmad