[Freeswitch-users] Launch a script on errors in freeswitch log file

David Villasmil Govea david.villasmil at gmail.com
Fri Jan 9 18:23:04 MSK 2015


You could just tail the log file and grab what you need...
On Jan 9, 2015 3:56 PM, "Aqs Younas" <aqsyounas at gmail.com> wrote:

> Hi,
>
> How can i launch a script when there are error logs in freeswitch log
> file. Actually i am using mod_shout as MOH with mod_local_stream, when
> someone enters a url of stream that is not responding i see logs all these.
>
> 2015-01-09 19:38:39.338003 [ERR] mod_local_stream.c:214 Can't open shout://
> 174.37.194.139:8316
> 2015-01-09 19:38:41.337988 [ERR] switch_core_file.c:149 Invalid file
> format [shout] for [174.37.194.139:8316]!
> 2015-01-09 19:38:42.337988 [ERR] mod_local_stream.c:214 Can't open shout://
> s9.voscast.com:7584
> 2015-01-09 19:38:42.337988 [ERR] switch_core_file.c:149 Invalid file
> format [shout] for [s9.voscast.com:7584]!
>
>
> I want to run an external script to remove that file or urls when there
> are errors logs in freeswitch.
>
> But i don't know how to trigger that script on errors in freeswitch log.
>
> Any help would be much appreciated.
>
> Thanks.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150109/8c654312/attachment.html 


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