Yes, our phones are registered to Asterisk and are all GXP-2000's (no matter what everyone says about how bad they are--we love 'em). :)
I wasn't aware of the "REFBY" header. I will tinker with that. Sounds like that would solve the proposed 'p' option. Now I just need a method to do what my proposed 'a' option does (insert the 'Answer-After: 0' header). Any ideas? Thanks for the quick post, Steve. ----- Original Message ----- From: "Steve Blair" <[EMAIL PROTECTED]> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <[email protected]> Sent: Friday, February 24, 2006 2:58 PM Subject: Re: [Asterisk-Users] ParkAndAnnounce2 Feature Request Steven: I'm assuming your using IP phones registered to Asterisk in this example. I don't do that but I use ParkandAnnounce for IP phones registering to a SER server. To handle the call back part of your question I use a snipet like: exten => _700,5,SIPGetHeader(REFBY=Referred-By) exten => _700,6,ParkAndAnnounce(parkedcall16:PARKED|7200|SIP/${REFBY:5:5}@<SER proxy IP>|default|${EXTEN}|3) ________________________________________________________ Steven Andres wrote: >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. _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
