On Monday 14 May 2007 10:41 am, [EMAIL PROTECTED] wrote:
I want to ask you if asterisk, when I use the command park(), gives me for
example a variable that contains the slot position where it parks the call
or if it only tells me (audio) in the channel this position number? In
other words, is there a way to obtain and use the value of the slot
position when the call is parked? Thanks.
No. You need to use ParkAndAnnounce and a feature I'd managed to get added
which lets you get the parking slot number in the dialplan variable
${PARKEDAT}.
I use it like this:
exten = _X.,1,...
exten = _X.,n,ParkAndAnnounce(PARKED,,Local/[EMAIL PROTECTED])
...
[parkinginfo]
exten = s,1,NoOp(PARKEDAT=${PARKEDAT})
exten = s,n,...
So basically when the call gets parked, it announces the parking slot to a
Local channel which executes in [parkinginfo]. Parkinginfo can write it to a
db, SMS it to a skywriter, whatever you want.
It'd be nice to get this sent to a SIP phone and make parking just that much
more useful, but as the guys say... patches welcome. :-)
-A.
___
--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