VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
shaheryarkh at googlem... Guest
|
Posted: Tue Jul 14, 2009 11:24 pm Post subject: [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_786pk@hotmail.com (shari_786pk@hotmail.com)
Email: shaheryarkh@googlemail.com (shaheryarkh@googlemail.com) |
|
Back to top |
|
|
jason at jasonjgw.net Guest
|
Posted: Tue Jul 14, 2009 11:33 pm Post subject: [Freeswitch-users] SIP Trace Option at Runtime |
|
|
Muhammad Shahzad <shaheryarkh@googlemail.com> wrote:
Quote: | 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 |
|
Back to top |
|
|
saeedahmad1981 at gmai... Guest
|
Posted: Wed Jul 15, 2009 11:08 am Post subject: [Freeswitch-users] SIP Trace Option at Runtime |
|
|
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 (jason@jasonjgw.net)> wrote:
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
|
Back to top |
|
|
mrene_lists at avgs.ca Guest
|
Posted: Wed Jul 15, 2009 11:20 am Post subject: [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
mrene@avgs.ca (mrene@avgs.ca)
Am 15-Jul-09 um 12:08 PM schrieb Saeed Ahmad:
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Wed Jul 15, 2009 11:23 am Post subject: [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:
Quote: | 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 |
|
Back to top |
|
|
saeedahmad1981 at gmai... Guest
|
Posted: Wed Jul 15, 2009 11:26 am Post subject: [Freeswitch-users] SIP Trace Option at Runtime |
|
|
switch.conf.xml
On Wed, Jul 15, 2009 at 6:06 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
|
|
Back to top |
|
|
mrene_lists at avgs.ca Guest
|
Posted: Wed Jul 15, 2009 11:29 am Post subject: [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
mrene@avgs.ca (mrene@avgs.ca)
Am 15-Jul-09 um 12:08 PM schrieb Saeed Ahmad:
|
|
Back to top |
|
|
saeedahmad1981 at gmai... Guest
|
Posted: Wed Jul 15, 2009 11:52 am Post subject: [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 <mrene_lists@avgs.ca (mrene_lists@avgs.ca)> wrote:
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Wed Jul 15, 2009 11:54 am Post subject: [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:
Quote: | 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 |
|
Back to top |
|
|
saeedahmad1981 at gmai... Guest
|
Posted: Wed Jul 15, 2009 12:34 pm Post subject: [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
<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 (brian@freeswitch.org)> wrote:
Quote: | 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:
Quote: | 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 (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
|
|
|
Back to top |
|
|
saeedahmad1981 at gmai... Guest
|
Posted: Wed Jul 15, 2009 12:36 pm Post subject: [Freeswitch-users] SIP Trace Option at Runtime |
|
|
console loglevel 8
too
On Wed, Jul 15, 2009 at 7:28 PM, Saeed Ahmad <saeedahmad1981@gmail.com (saeedahmad1981@gmail.com)> wrote:
Quote: | 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 (brian@freeswitch.org)> wrote:
Quote: | 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:
Quote: | 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 (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
|
|
|
|
Back to top |
|
|
saeedahmad1981 at gmai... Guest
|
Posted: Wed Jul 15, 2009 12:52 pm Post subject: [Freeswitch-users] SIP Trace Option at Runtime |
|
|
it works!
thanks
On Wed, Jul 15, 2009 at 7:29 PM, Saeed Ahmad <saeedahmad1981@gmail.com (saeedahmad1981@gmail.com)> wrote:
Quote: | console loglevel 8
too
On Wed, Jul 15, 2009 at 7:28 PM, Saeed Ahmad <saeedahmad1981@gmail.com (saeedahmad1981@gmail.com)> wrote:
Quote: | 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 (brian@freeswitch.org)> wrote:
Quote: | 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:
Quote: | 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 (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
|
|
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|