[Asterisk-Users] ParkAndAnnounce2 Feature Request

Steven Andres steven-asterisk at edgew.com
Fri Feb 24 14:35:59 MST 2006


We've had a regular Park function in the past but recently I found the 
ParkAndAnnounce() application and I love the idea behind it. Here's a snip 
from the wiki 
(http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+ParkAndAnnounce) 
so that we're all talking the same language:

|| ParkAndAnnounce(announce:template|timeout|dial|return_context)
||
|| Park a call into the parkinglot and announce the call over an extension.
||
|| announce template: colon seperated 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.


Perhaps someone has accomplished these enhancements in the dialplan already 
(if you have, please share!), but here's what I would like to modify 
ParkAndAnnounce to do, if I were a skilled coder:

SYNTAX:
 ParkAndAnnounce2(announce:template|timeout|dial|return_context|options)

OPTIONS:
    a = Asterisk would insert SIP header of "Call-Info: Answer-After: 0" to
          the dial command. This would allow the announcement to happen
          over the target phone's speaker and not require answering a
          ringing call. Only affects announcement, not call park return
    p = automatically make announcements to whomever originated the
          parking and return parked calls to same. Caller ID Name will read
          'Call Park at XXX' during announcement and 'Call Park Return'
          during return. Currently it just says 'asterisk'

EXAMPLE:
   exten => 700,1,Answer
   exten => 700,2,Wait(1)
   exten => 700,3,ParkAndAnnounce2(pbx-transfer:PARKED|60|ignore|ignore|ap)

In this example, let's assume that an outside caller reaches me at extension 
101. I blind-transfer on my SIP phone to extension 700. The caller hears 
music-on-hold and is parked in the next available slot (let's say 701). The 
app would then add the auto-answer header (thanks to the 'a' option) needed 
for our GXP-2000's and then place the call to SIP/101 (the device that 
originated the parking) with the CallerID Name set to 'Call Park at 701'. 
The call is auto-answered at the SIP phone (thanks to the SIP header) and 
then the dial plan plays "pbx-transfer", reads out the digits, and hangs up. 
After 60 seconds, the caller is returned to SIP/101 (this time without the 
auto-answer SIP header) with the CallerID Name set to 'Call Park Return'. 
Notice that when the 'p' option is used, the 'dial' and 'return' parameters 
are ignored.


Does anyone else think this is interesting/valuable enough to submit to 
Mantis as a feature request? Or am I just off on my own little world?




More information about the asterisk-users mailing list