ParkAndAnnounce()

Parkt den aktuellen Anruf und macht ihn über den spezifizierten Channel bekannt.

ParkAndAnnounce(Template,Timeout,Channel[,Return-Context])

Parkt den aktuellen Anruf in dem dafür vorgesehenen Bereich (auf dem Parkplatz) und meldet ihn über den spezifizierten Channel. Template bezeichnet eine Liste von durch Kommas voneinander getrennten Dateien, die anzukündigen sind; das Wort PARKED wird durch die Parkplatznummer des Anrufs ersetzt. Der Parameter Timeout bestimmt die Zeit in Sekunden, nach deren Ablauf der Anruf zum Return-Context zurückkehrt. Channel bezeichnet den Channel, der anzurufen ist, um die Ankündigung zu machen (Console/dsp ruft die Konsole auf). Return-Context ist ein Label im GoTo()-Stil, um den Anruf nach der Beendigung zurückzubringen. Standardeinstellung hierfür ist n+1 im Context 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()
[Anmerkung]Anmerkung

Interner Hilfetext zu dieser Applikation 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 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.

Differenz zum internen Hilfetext in Asterisk 1.2: 

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

Siehe auch. Park(), ParkedCall()


Version 1.2, November 2002

Neue Version verfügbar

Sie betrachten gerade die alte Version des Buches (Version 1.0). Wir empfehlen Ihnen für Asterisk 1.4 und 1.6 die neue Version des Buches.

Asterisk-Tag 2008

Lernen Sie Mark Spencer (den Erfinder von Asterisk) kennen! Viele Vorträge, Case-Studies und Workshops rund um das Thema VoIP. Asterisk-Tag.org

Das gedruckte Buch