ParkAndAnnounce()
ParkAndAnnounce(template
,timeout
,channel
[,return-context
])
template
specifies a
colon-delimited list of sound files to be played; the word
PARKED
in the example below is replaced with the parking
space number assigned to the parked call. The
timeout
sets the maximum time the
call may be parked before it is placed back in the
return-context
. The
channel
denotes the channel on
which the announcement is to be made (in our example,
Console/dsp
prints the announcements to the Asterisk
console). The return-context
is a
label in GoTo()
format that determines the
context to return the call to if it is not retrieved from the parking lot
by a user within the defined timeout
window.
The default return priority is n
+1 in
return-context
.include => parkedcalls exten => 123,1,Answer() exten => 123,n,ParkAndAnnounce(vm-youhave:a:pbx-transfer:at:vm-extension:PARKED,120,Console/dsp) exten => 123,n,Playback(vm-nobodyavail) exten => 123,n,Playback(vm-goodbye) exten => 123,n,Hangup()
-= Info about application 'ParkAndAnnounce' =- [Synopsis] Park and Announce [Description] ParkAndAnnounce(announce:template|timeout|dial|[return_context]): Park a call into the parkinglot and announce the call to another channel. announce template: Colon-separated list of files to announce. The word PARKED will be replaced by a say_digits of the extension in which the call is parked. timeout: Time in seconds before the call returns into the return context. dial: The app_dial style resource to call to make the announcement. Console/dsp calls the console. return_context: The goto-style label to jump the call back into after timeout. Default <priority+1>. The variable ${PARKEDAT} will contain the parking extension into which the call was placed. Use with the Local channel to allow the dialplan to make use of this information.
9,23c9,14 < Park a call into the parkinglot and announce the call to another channel. < < announce template: Colon-separated list of files to announce. The word PARKED < will be replaced by a say_digits of the extension in which < the call is parked. < timeout: Time in seconds before the call returns into the return < context. < dial: The app_dial style resource to call to make the < announcement. Console/dsp calls the console. < return_context: The goto-style label to jump the call back into after < timeout. Default <priority+1>. < < The variable ${PARKEDAT} will contain the parking extension into which the < call was placed. Use with the Local channel to allow the dialplan to make < use of this information. --- > Park a call into the parkinglot and announce the call over the console. > announce template: colon separated list of files to announce, the word PARKED > will be replaced by a say_digits of the ext the call is parked in > timeout: time in seconds before the call returns into the return context. > dial: The app_dial style resource to call to make the announcement. Console/dsp calls the console. > return_context: the goto style label to jump the call back into after timeout. default=prio+1