[Freeswitch-users] echo to console

Peter Hartmann peter at hartmanncomputer.com
Sun Dec 8 00:34:56 MSK 2013


Try the builtin log application and remember to set your logging level to DEBUG.

http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_log


But if you're resolute on echoing to your own logfile use the event app:

 <action application="event" data="${system(/bin/echo ohai >>
/tmp/log_file)}"/>

HTH!







Peter Hartmann
Hartmann Computer Consulting
http://blog.hartmanncomputer.com


On Fri, Dec 6, 2013 at 4:16 PM, Joli Martinez <mrjoli021 at gmail.com> wrote:
> Hello,
>
> I am troubleshooting and issue with my FS server.  I would like to echo some text to the console for troubleshooting purpose.  How can I do that?
>
> I have added the following line right below <include> and it does not show up in the console or in the log file.  That is the correct log file location.
> <X-PRE-PROCESS cmd="exec" data="echo ----------------------------this is a test------------------------------------------ >> /usr/local/freeswitch/log/freeswitch.log"/>
>
> Thanks,
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list