Enabling SIP traces from the command line interface
The sofia loglevel command is very useful. However, even with sofia loglevel 9, I still don't get a SIP trace. I know all about shutting down FreeSWITCH and setting the environment variables to obtain a SIP trace and voluminous debugging output: # source this file in the current shell, then # run FreeSWITCH. At the FreeSWITCH prompt, # press F8, then make the call that requires debugging, and # capture the output. # type shutdown to end the FreeSWITCH session export SOFIA_DEBUG=9 export NUA_DEBUG=9 export NTA_DEBUG=9 export TPORT_DEBUG=9 export TPORT_LOG=1 this is fine for me, but for people in production for whom uptime is significant, I'm wondering whether there are plans to allow tracing to be dynamically enabled/disabled from the CLI, or whether this is possible now with options that I haven't yet discovered. Please don't interpret this as a complaint or as one of those nagging feature request posts! As mentioned, it doesn't affect my usage scenario - testing and experimentation at home on my desktop Linux box.
Jason, Its something that needs to be added to the sofia lib. Till then its gonna be on the wish list. ;) /b On Jan 2, 2009, at 8:45 PM, Jason White wrote:
The sofia loglevel command is very useful. However, even with sofia loglevel 9, I still don't get a SIP trace.
I know all about shutting down FreeSWITCH and setting the environment variables to obtain a SIP trace and voluminous debugging output:
# source this file in the current shell, then # run FreeSWITCH. At the FreeSWITCH prompt, # press F8, then make the call that requires debugging, and # capture the output. # type shutdown to end the FreeSWITCH session export SOFIA_DEBUG=9 export NUA_DEBUG=9 export NTA_DEBUG=9 export TPORT_DEBUG=9 export TPORT_LOG=1
this is fine for me, but for people in production for whom uptime is significant, I'm wondering whether there are plans to allow tracing to be dynamically enabled/disabled from the CLI, or whether this is possible now with options that I haven't yet discovered.
Please don't interpret this as a complaint or as one of those nagging feature request posts! As mentioned, it doesn't affect my usage scenario - testing and experimentation at home on my desktop Linux box.
_______________________________________________ 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
Brian West <brian@freeswitch.org> wrote:
Its something that needs to be added to the sofia lib. Till then its gonna be on the wish list. ;)
Meanwhile (and I hope the Sofia developers eventually implement it), you can set it in the Sip profile configuration. Running sofia profile <profile_name> restart reloadxml is enough to enable it; I've just tested it.
participants (2)
-
Brian West
-
Jason White