Parks the current call and announces the parking space on the specified channel.
ParkAndAnnounce(template,timeout,channel[,return-context])
Parks the current call in the parking lot, but announces the
parking space on another, specified channel. The
specifies a
colon-delimited list of sound files to be played; the word
templatePARKED in the example below is replaced with the parking
space number assigned to the parked call. The
sets the maximum time the
call may be parked before it is placed back in the
timeout. The
return-context denotes the channel on
which the announcement is to be made (in our example,
channelConsole/dsp prints the announcements to the Asterisk
console). The is a
label in return-contextGoTo() 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()
|
|
|
Internal help for this application in Asterisk 1.4: -= 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 retu
rn
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 t
he
call was placed. Use with the Local channel to allow the dialplan to ma
ke
use of this information.
diff output to internal help in Asterisk 1.2: 9,23c9,14
< Park a call into the parkinglot and announce the call to another chann
el.
<
< announce template: Colon-separated list of files to announce. The wor
d PARKED
< will be replaced by a say_digits of the extension i
n which
< the call is parked.
< timeout: Time in seconds before the call returns into the re
turn
< 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 aft
er
< 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 cal
l is parked in
> timeout: time in seconds before the call returns into the return conte
xt.
> dial: The app_dial style resource to call to make the announcement. Co
nsole/dsp calls the console.
> return_context: the goto style label to jump the call back into after
timeout. default=prio+1
|
See also. the section called “Park()”, the section called “ParkedCall()”