Multi-Lot Parking
From Etel
Revision as of 19:16, 22 January 2007; view current revision
←Older revision | Newer revision→
←Older revision | Newer revision→
Contents |
[edit]
Creating Multiple Parking Lots
[edit]
Problem
You have several virtual PBXs on the same Asterisk box and need multiple parking lots.
[edit]
Solution
[standard_features]
;--
Call Parking
--;
exten => *700,1,GoSub(sub-callparking,s,1())
exten => *700,n,Hangup()
exten => _*7XX,1,Verbose(1|Getting parked call for you)
exten => _*7XX,n,AddQueueMember(lmentinc_parking_701,Local/lmentinc_701@parking/n)
exten => _*7XX,n,MeetMe(lmentinc_701,d)
exten => _*7XX,n,Hangup()
[sub-callparking]
exten => s,1,Verbose(1|Entering call parking)
exten => s,n,Queue(lmentinc_parking_701)
exten => s,n,Playback(mix-an-error-occured)
exten => s,n,Return()
[parking]
exten => _.,1,Verbose(1|Getting call out of the lot)
exten => _.,n,MeetMe(${EXTEN},d)
exten => _.,n,Hangup()
[edit]
Discussion
This is just the outline for a recipe for multi-lot call parking, totally done within the dialplan! Very very cool. Obviously right now none of that is dynamic, but it is the basic structure of how to go about it. I can do all sorts of things with func_odbc and such to make it dynamic. Probably will just use AstDB for this recipe though.
[edit]
See Also:
[edit]
Metadata
- By: Leif Madsen
