BackGround(filenames[,options,langoverride,[[term:context|context]]])
Full arguments reference
filenamesrequired - Ampersand separated list of filenames. If the filename is a relative filename (it does not begin with a slash), it will be searched for in the Asterisk sounds directory. If the filename is able to be parsed as a URL, Asterisk will download the file and then begin playback on it. To include a literal&in the URL you can enclose the URL in single quotes.filename1requiredfilename2(multiple)
optionss- Causes the playback of the message to be skipped if the channel is not in theupstate (i.e. it hasn't been answered yet). If this happens, the application will return immediately.n- Don't answer the channel before playing the files.m- Only break if a digit hit matches a one digit extension in the destination context.p- Do not allow playback to be interrupted with digits.
langoverride- Explicitly specifies which language to attempt to use for the requested sound files.context- This is the dialplanThe core call-routing configuration of Asterisk, written mostly in extensions.conf as contexts, extensions, and priorities that decide how every call is handled. Full definition → context that this application will use when exiting to a dialed extension.
This application will play the given list of files (do not put extension) while waiting for an extension to be dialed by the calling channelA single call leg passing through Asterisk. Channels represent connections to endpoints and are what dialplan applications act on.. To continue waiting for digits after this application has finished playing files, the WaitExten application should be used.
If one of the requested sound files does not exist, call processing will be terminated.
This application sets the following channel variable upon completion:
- BACKGROUNDSTATUS - The status of the background attempt as a text string.
SUCCESSFAILED
filenamesrequired - Ampersand separated list of filenames. If the filename is a relative filename (it does not begin with a slash), it will be searched for in the Asterisk sounds directory. If the filename is able to be parsed as a URL, Asterisk will download the file and then begin playback on it. To include a literal&in the URL you can enclose the URL in single quotes.filename1requiredfilename2(multiple)
optionss- Causes the playback of the message to be skipped if the channel is not in theupstate (i.e. it hasn't been answered yet). If this happens, the application will return immediately.n- Don't answer the channel before playing the files.m- Only break if a digit hit matches a one digit extension in the destination context.p- Do not allow playback to be interrupted with digits.
langoverride- Explicitly specifies which language to attempt to use for the requested sound files.context- This is the dialplanThe core call-routing configuration of Asterisk, written mostly in extensions.conf as contexts, extensions, and priorities that decide how every call is handled. Full definition → context that this application will use when exiting to a dialed extension.
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.