BackgroundDetect(filename[,sil,min,max,analysistime])
Full arguments reference
filenamerequiredsil- If not specified, defaults to1000.min- If not specified, defaults to100.max- If not specified, defaults toinfinity.analysistime- If not specified, defaults toinfinity.
Plays back filename, waiting for interruption from a given digit (the digit must start the beginning of a valid extensionA dialplan entry that matches a dialed number or pattern within a context and triggers a sequence of prioritized steps., or it will be ignored). During the playback of the file, audio is monitored in the receive direction, and if a period of non-silence which is greater than min ms yet less than max ms is followed by silence for at least sil ms, which occurs during the first analysistime ms, then the audio playback is aborted and processing jumps to the talk extension, if available.
filenamerequiredsil- If not specified, defaults to1000.min- If not specified, defaults to100.max- If not specified, defaults toinfinity.analysistime- If not specified, defaults toinfinity.
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.