Hello, In fs_cli, I can issue this command: sofia global siptrace on And I see all SIP traffic. But the SIP does not get logged to the actual log file. How do I get the same output to be sent to the log? I've searched through the Wiki but I'm not seeing a clear way to do it. Thanks! ----------------------- Eric Z. Beard, CTO Loop LLC w (877) 850-2010 x9249 m (727) 776-2768 eric@loopfx.com<mailto:eric@loopfx.com>
By default it only goes to console. 'sofia tracelevel debug' will let you set a log level which'll let you log it to the logfile (you can choose any of the log files). -Steve On 19 May 2011 15:57, Eric Beard <eric@loopfx.com> wrote:
Hello,
In fs_cli, I can issue this command:
sofia global siptrace on
And I see all SIP traffic. But the SIP does not get logged to the actual log file. How do I get the same output to be sent to the log? I’ve searched through the Wiki but I’m not seeing a clear way to do it.
Thanks!
-----------------------
*Eric Z. Beard, CTO*
Loop LLC
w (877) 850-2010 x9249
m (727) 776-2768
eric@loopfx.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
Sorry for interrupt, but is there any way to filter messages from sip trace ? For example show only one ext/host/uri etc -- Michal ---------------
By default it only goes to console. 'sofia tracelevel debug' will let you set a log level which'll let you log it to the logfile (you can choose any of the log files).
-Steve
On 19 May 2011 15:57, Eric Beard <eric@loopfx.com <mailto:eric@loopfx.com>> wrote:
Hello,
In fs_cli, I can issue this command:
sofia global siptrace on
And I see all SIP traffic. But the SIP does not get logged to the actual log file. How do I get the same output to be sent to the log? I’ve searched through the Wiki but I’m not seeing a clear way to do it.
Thanks!
-----------------------
*Eric Z. Beard, CTO*
Loop LLC
w (877) 850-2010 x9249
m (727) 776-2768
eric@loopfx.com <mailto:eric@loopfx.com>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
No. If you need that it's best to use tshark, wireshark, ngrep or some similar tool. -Steve On 19 May 2011 17:40, Michal Kopacki <mkopacki@gmail.com> wrote:
Sorry for interrupt, but is there any way to filter messages from sip trace ? For example show only one ext/host/uri etc
-- Michal
---------------
By default it only goes to console. 'sofia tracelevel debug' will let you set a log level which'll let you log it to the logfile (you can choose any of the log files).
-Steve
On 19 May 2011 15:57, Eric Beard <eric@loopfx.com> wrote:
Hello,
In fs_cli, I can issue this command:
sofia global siptrace on
And I see all SIP traffic. But the SIP does not get logged to the actual log file. How do I get the same output to be sent to the log? I’ve searched through the Wiki but I’m not seeing a clear way to do it.
Thanks!
-----------------------
*Eric Z. Beard, CTO*
Loop LLC
w (877) 850-2010 x9249
m (727) 776-2768
eric@loopfx.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
_______________________________________________ FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_______________________________________________ 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
Actually, I get the exact same output from the console in my logfile (log/freeswitch.log), I just do: fsctl loglevel 3 sofia profile_name siptrace on sofia tracelevel 3 I think you may use any loglevel, but that works fine, and I don't get all the debugging output. On Thu, May 19, 2011 at 12:48 PM, Steven Ayre <steveayre@gmail.com> wrote:
No.
If you need that it's best to use tshark, wireshark, ngrep or some similar tool.
-Steve
On 19 May 2011 17:40, Michal Kopacki <mkopacki@gmail.com> wrote:
Sorry for interrupt, but is there any way to filter messages from sip trace ? For example show only one ext/host/uri etc
-- Michal
---------------
By default it only goes to console. 'sofia tracelevel debug' will let you set a log level which'll let you log it to the logfile (you can choose any of the log files).
-Steve
On 19 May 2011 15:57, Eric Beard <eric@loopfx.com> wrote:
Hello,
In fs_cli, I can issue this command:
sofia global siptrace on
And I see all SIP traffic. But the SIP does not get logged to the actual log file. How do I get the same output to be sent to the log? I’ve searched through the Wiki but I’m not seeing a clear way to do it.
Thanks!
-----------------------
*Eric Z. Beard, CTO*
Loop LLC
w (877) 850-2010 x9249
m (727) 776-2768
eric@loopfx.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
_______________________________________________ FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_______________________________________________ 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
The only one of those 3 that sends SIP to the log file for me is "sofia tracelevel 3". But where do I put that in a configuration file so it is enabled by default? I tried setting this in the profile: <param name="sip-trace" value="yes"/> But it didn't do anything. ----------------------- Eric Z. Beard, CTO Loop LLC w (877) 850-2010 x9249 m (727) 776-2768 eric@loopfx.com<mailto:eric@loopfx.com> From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Nicolas Brenner Sent: Thursday, May 19, 2011 7:39 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] SIP Trace Actually, I get the exact same output from the console in my logfile (log/freeswitch.log), I just do: fsctl loglevel 3 sofia profile_name siptrace on sofia tracelevel 3 I think you may use any loglevel, but that works fine, and I don't get all the debugging output. On Thu, May 19, 2011 at 12:48 PM, Steven Ayre <steveayre@gmail.com<mailto:steveayre@gmail.com>> wrote: No. If you need that it's best to use tshark, wireshark, ngrep or some similar tool. -Steve On 19 May 2011 17:40, Michal Kopacki <mkopacki@gmail.com<mailto:mkopacki@gmail.com>> wrote: Sorry for interrupt, but is there any way to filter messages from sip trace ? For example show only one ext/host/uri etc -- Michal --------------- By default it only goes to console. 'sofia tracelevel debug' will let you set a log level which'll let you log it to the logfile (you can choose any of the log files). -Steve On 19 May 2011 15:57, Eric Beard <eric@loopfx.com<mailto:eric@loopfx.com>> wrote: Hello, In fs_cli, I can issue this command: sofia global siptrace on And I see all SIP traffic. But the SIP does not get logged to the actual log file. How do I get the same output to be sent to the log? I've searched through the Wiki but I'm not seeing a clear way to do it. Thanks! ----------------------- Eric Z. Beard, CTO Loop LLC w (877) 850-2010 x9249<tel:%28877%29%20850-2010%20x9249> m (727) 776-2768<tel:%28727%29%20776-2768> eric@loopfx.com<mailto:eric@loopfx.com> _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<mailto: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<mailto: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<mailto: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
in sofia.conf.xml ----- Original Message ----- From: Eric Beard To: FreeSWITCH Users Help Sent: Friday, May 20, 2011 9:25 AM Subject: Re: [Freeswitch-users] SIP Trace The only one of those 3 that sends SIP to the log file for me is "sofia tracelevel 3". But where do I put that in a configuration file so it is enabled by default? I tried setting this in the profile: <param name="sip-trace" value="yes"/> But it didn't do anything. ----------------------- Eric Z. Beard, CTO Loop LLC w (877) 850-2010 x9249 m (727) 776-2768 eric@loopfx.com From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Nicolas Brenner Sent: Thursday, May 19, 2011 7:39 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] SIP Trace Actually, I get the exact same output from the console in my logfile (log/freeswitch.log), I just do: fsctl loglevel 3 sofia profile_name siptrace on sofia tracelevel 3 I think you may use any loglevel, but that works fine, and I don't get all the debugging output. On Thu, May 19, 2011 at 12:48 PM, Steven Ayre <steveayre@gmail.com> wrote: No. If you need that it's best to use tshark, wireshark, ngrep or some similar tool. -Steve On 19 May 2011 17:40, Michal Kopacki <mkopacki@gmail.com> wrote: Sorry for interrupt, but is there any way to filter messages from sip trace ? For example show only one ext/host/uri etc -- Michal --------------- By default it only goes to console. 'sofia tracelevel debug' will let you set a log level which'll let you log it to the logfile (you can choose any of the log files). -Steve On 19 May 2011 15:57, Eric Beard <eric@loopfx.com> wrote: Hello, In fs_cli, I can issue this command: sofia global siptrace on And I see all SIP traffic. But the SIP does not get logged to the actual log file. How do I get the same output to be sent to the log? I've searched through the Wiki but I'm not seeing a clear way to do it. Thanks! ----------------------- Eric Z. Beard, CTO Loop LLC w (877) 850-2010 x9249 m (727) 776-2768 eric@loopfx.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 _______________________________________________FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:htt... _______________________________________________ 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
That's because it the combination of the three: fsctl loglevel 3 - Sets the logging level to 3 sofia profile_name siptrace on - Start tracing SIP packets (console level by default, which won't go to the logfile) sofia tracelevel 3 - Start logging SIP traces with loglevel 3. Because you just set the log level to 3 it'll show up.
From the sofia config you'll need to set a tracelevel other than the console default as well as enabling sip-trace:
<global_settings> ... <param name="tracelevel" value="DEBUG"/> ... </global_settings> <profiles> ... <profile name="..."> ... <param name="sip-trace" value="yes"/> ... </profile> ... </profiles> -Steve On 20 May 2011 14:25, Eric Beard <eric@loopfx.com> wrote:
The only one of those 3 that sends SIP to the log file for me is “sofia tracelevel 3”. But where do I put that in a configuration file so it is enabled by default?
I tried setting this in the profile:
<param name="sip-trace" value="yes"/>
But it didn’t do anything.
-----------------------
*Eric Z. Beard, CTO*
Loop LLC
w (877) 850-2010 x9249
m (727) 776-2768
eric@loopfx.com
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Nicolas Brenner *Sent:* Thursday, May 19, 2011 7:39 PM
*To:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] SIP Trace
Actually, I get the exact same output from the console in my logfile (log/freeswitch.log), I just do:
fsctl loglevel 3
sofia profile_name siptrace on
sofia tracelevel 3
I think you may use any loglevel, but that works fine, and I don't get all the debugging output.
On Thu, May 19, 2011 at 12:48 PM, Steven Ayre <steveayre@gmail.com> wrote:
No.
If you need that it's best to use tshark, wireshark, ngrep or some similar tool.
-Steve
On 19 May 2011 17:40, Michal Kopacki <mkopacki@gmail.com> wrote:
Sorry for interrupt, but is there any way to filter messages from sip trace ? For example show only one ext/host/uri etc
-- Michal
---------------
By default it only goes to console. 'sofia tracelevel debug' will let you set a log level which'll let you log it to the logfile (you can choose any of the log files).
-Steve
On 19 May 2011 15:57, Eric Beard <eric@loopfx.com> wrote:
Hello,
In fs_cli, I can issue this command:
sofia global siptrace on
And I see all SIP traffic. But the SIP does not get logged to the actual log file. How do I get the same output to be sent to the log? I’ve searched through the Wiki but I’m not seeing a clear way to do it.
Thanks!
-----------------------
*Eric Z. Beard, CTO*
Loop LLC
w (877) 850-2010 x9249
m (727) 776-2768
eric@loopfx.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
_______________________________________________
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
_______________________________________________ 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
That's what I was missing, thanks! I was searching the source code for "trace-level" (with a dash). I'm still not entirely clear on the difference between "loglevel" and "tracelevel", but at least it's logging the SIP to my log file automatically. ----------------------- Eric Z. Beard, CTO Loop LLC w (877) 850-2010 x9249 m (727) 776-2768 eric@loopfx.com<mailto:eric@loopfx.com> From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Friday, May 20, 2011 11:08 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] SIP Trace That's because it the combination of the three: fsctl loglevel 3 - Sets the logging level to 3 sofia profile_name siptrace on - Start tracing SIP packets (console level by default, which won't go to the logfile) sofia tracelevel 3 - Start logging SIP traces with loglevel 3. Because you just set the log level to 3 it'll show up.
From the sofia config you'll need to set a tracelevel other than the console default as well as enabling sip-trace:
<global_settings> ... <param name="tracelevel" value="DEBUG"/> ... </global_settings> <profiles> ... <profile name="..."> ... <param name="sip-trace" value="yes"/> ... </profile> ... </profiles> -Steve On 20 May 2011 14:25, Eric Beard <eric@loopfx.com<mailto:eric@loopfx.com>> wrote: The only one of those 3 that sends SIP to the log file for me is "sofia tracelevel 3". But where do I put that in a configuration file so it is enabled by default? I tried setting this in the profile: <param name="sip-trace" value="yes"/> But it didn't do anything. ----------------------- Eric Z. Beard, CTO Loop LLC w (877) 850-2010 x9249 m (727) 776-2768 eric@loopfx.com<mailto:eric@loopfx.com> From: freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org>] On Behalf Of Nicolas Brenner Sent: Thursday, May 19, 2011 7:39 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] SIP Trace Actually, I get the exact same output from the console in my logfile (log/freeswitch.log), I just do: fsctl loglevel 3 sofia profile_name siptrace on sofia tracelevel 3 I think you may use any loglevel, but that works fine, and I don't get all the debugging output. On Thu, May 19, 2011 at 12:48 PM, Steven Ayre <steveayre@gmail.com<mailto:steveayre@gmail.com>> wrote: No. If you need that it's best to use tshark, wireshark, ngrep or some similar tool. -Steve On 19 May 2011 17:40, Michal Kopacki <mkopacki@gmail.com<mailto:mkopacki@gmail.com>> wrote: Sorry for interrupt, but is there any way to filter messages from sip trace ? For example show only one ext/host/uri etc -- Michal --------------- By default it only goes to console. 'sofia tracelevel debug' will let you set a log level which'll let you log it to the logfile (you can choose any of the log files). -Steve On 19 May 2011 15:57, Eric Beard <eric@loopfx.com<mailto:eric@loopfx.com>> wrote: Hello, In fs_cli, I can issue this command: sofia global siptrace on And I see all SIP traffic. But the SIP does not get logged to the actual log file. How do I get the same output to be sent to the log? I've searched through the Wiki but I'm not seeing a clear way to do it. Thanks! ----------------------- Eric Z. Beard, CTO Loop LLC w (877) 850-2010 x9249<tel:%28877%29%20850-2010%20x9249> m (727) 776-2768<tel:%28727%29%20776-2768> eric@loopfx.com<mailto:eric@loopfx.com> _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<mailto: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<mailto: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<mailto: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<mailto: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
loglevel is the debug level of components of the sofia stack, the same as the 'sofia loglevel x' command. You shouldn't normally need it - it'll give you extremely ugly and verbose low level information about the processing of the packets -Steve On 20 May 2011 17:39, Eric Beard <eric@loopfx.com> wrote:
That’s what I was missing, thanks! I was searching the source code for “trace-level” (with a dash).
I’m still not entirely clear on the difference between “loglevel” and “tracelevel”, but at least it’s logging the SIP to my log file automatically.
-----------------------
*Eric Z. Beard, CTO*
Loop LLC
w (877) 850-2010 x9249
m (727) 776-2768
eric@loopfx.com
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Steven Ayre *Sent:* Friday, May 20, 2011 11:08 AM
*To:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] SIP Trace
That's because it the combination of the three:
fsctl loglevel 3
- Sets the logging level to 3
sofia profile_name siptrace on
- Start tracing SIP packets (console level by default, which won't go to the logfile)
sofia tracelevel 3
- Start logging SIP traces with loglevel 3. Because you just set the log level to 3 it'll show up.
From the sofia config you'll need to set a tracelevel other than the console default as well as enabling sip-trace:
<global_settings> ... <param name="tracelevel" value="DEBUG"/> ... </global_settings> <profiles> ... <profile name="..."> ... <param name="sip-trace" value="yes"/> ... </profile> ... </profiles>
-Steve
On 20 May 2011 14:25, Eric Beard <eric@loopfx.com> wrote:
The only one of those 3 that sends SIP to the log file for me is “sofia tracelevel 3”. But where do I put that in a configuration file so it is enabled by default?
I tried setting this in the profile:
<param name="sip-trace" value="yes"/>
But it didn’t do anything.
-----------------------
*Eric Z. Beard, CTO*
Loop LLC
w (877) 850-2010 x9249
m (727) 776-2768
eric@loopfx.com
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Nicolas Brenner *Sent:* Thursday, May 19, 2011 7:39 PM
*To:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] SIP Trace
Actually, I get the exact same output from the console in my logfile (log/freeswitch.log), I just do:
fsctl loglevel 3
sofia profile_name siptrace on
sofia tracelevel 3
I think you may use any loglevel, but that works fine, and I don't get all the debugging output.
On Thu, May 19, 2011 at 12:48 PM, Steven Ayre <steveayre@gmail.com> wrote:
No.
If you need that it's best to use tshark, wireshark, ngrep or some similar tool.
-Steve
On 19 May 2011 17:40, Michal Kopacki <mkopacki@gmail.com> wrote:
Sorry for interrupt, but is there any way to filter messages from sip trace ? For example show only one ext/host/uri etc
-- Michal
---------------
By default it only goes to console. 'sofia tracelevel debug' will let you set a log level which'll let you log it to the logfile (you can choose any of the log files).
-Steve
On 19 May 2011 15:57, Eric Beard <eric@loopfx.com> wrote:
Hello,
In fs_cli, I can issue this command:
sofia global siptrace on
And I see all SIP traffic. But the SIP does not get logged to the actual log file. How do I get the same output to be sent to the log? I’ve searched through the Wiki but I’m not seeing a clear way to do it.
Thanks!
-----------------------
*Eric Z. Beard, CTO*
Loop LLC
w (877) 850-2010 x9249
m (727) 776-2768
eric@loopfx.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
_______________________________________________
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
_______________________________________________ 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
Hi all, I set up a call screening. The problem: When I try Originate a call trigger the Outcallcontext is appended to the Callerid. for example: caller_id_number_=089XXXX/callback_out.wav I lie to set: caller_id_number=089XXXX. This problem only occurs when I leave Originate call about a subscriber. I don.t fine a originate-variable to overwrite the context after the calleridnumber. Record stops because the directory is not at all natural. Someone has an idea please? Thanks. --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
There should not be a outcallcontext (what is that by the way ?) appended to the caller_id_number. Something must be wrong in your config. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 23/05/2011 à 09:54, Thomas Hoellriegel a écrit :
Hi all, I set up a call screening. The problem: When I try Originate a call trigger the Outcallcontext is appended to the Callerid. for example: caller_id_number_=089XXXX/callback_out.wav I lie to set: caller_id_number=089XXXX. This problem only occurs when I leave Originate call about a subscriber. I don.t fine a originate-variable to overwrite the context after the calleridnumber. Record stops because the directory is not at all natural. Someone has an idea please? Thanks.
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc _______________________________________________ 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
On Mon, May 23, 2011 at 5:13 AM, David Ponzone <david.ponzone@ipeva.fr>wrote:
There should not be a outcallcontext (what is that by the way ?) appended to the caller_id_number. Something must be wrong in your config.
I tend to agree with David on this. Please use pastebin.freeswitch.org and drop us a debug log of a call that has this symptom. Use "FreeSWITCH Log" for the syntax highlighting and reply to this thread with the pb link... -MC
Hi David and michael, sorry for the delay. I was much busy. I have fixed my problem. I insert this action: <action application="set" data="rufnummer=${regex(${caller_id_number}|^(.*?)/|%1"/> now it works fine for me thanks for your nice help! --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
That didn't work for me. What I really want is for the exact output I see in fs_cli to go to the log file. At one point in the past I managed to get Sip messages into the log file but I did it on accident and I can't figure out what I did to make it happen. ----------------------- Eric Z. Beard, CTO Loop LLC w (877) 850-2010 x9249 m (727) 776-2768 eric@loopfx.com<mailto:eric@loopfx.com> From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Thursday, May 19, 2011 12:16 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] SIP Trace By default it only goes to console. 'sofia tracelevel debug' will let you set a log level which'll let you log it to the logfile (you can choose any of the log files). -Steve On 19 May 2011 15:57, Eric Beard <eric@loopfx.com<mailto:eric@loopfx.com>> wrote: Hello, In fs_cli, I can issue this command: sofia global siptrace on And I see all SIP traffic. But the SIP does not get logged to the actual log file. How do I get the same output to be sent to the log? I've searched through the Wiki but I'm not seeing a clear way to do it. Thanks! ----------------------- Eric Z. Beard, CTO Loop LLC w (877) 850-2010 x9249 m (727) 776-2768 eric@loopfx.com<mailto:eric@loopfx.com> _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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 (8)
-
David Ponzone
-
Eric Beard
-
Madovsky
-
Michael Collins
-
Michal Kopacki
-
Nicolas Brenner
-
Steven Ayre
-
Thomas Hoellriegel