Hi,

You are using strip_blank (which removes blank of more than 5 sec) and then use 
on_blank which triggers the function after 20 sec, which will never occur 
because of the previous strip_blank...

Cheers,

Samuel

On 18/01/15 10:23, Albert Bruc wrote:
> Hi,
>
> I'm trying to detect blank into my stream for sending me an sms (in case of 
> crash)
>
> where is my error ?
>
> #!/usr/bin//liquidsoap
> set("log.file.path","/home/jazz/silence.log")
> live = input.http("http://localhost:8000/jazz.ogg";)
> source = fallback(track_sensitive=false, [strip_blank(max_blank=5.,live)] )
> def handler()
>    system("/opt/sms.sh")
> end
> source = on_blank(handler, source)
>
> thanks by advance
>
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>

------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to