[asterisk-users] extensions.ael - calling an exten from a macro
Dean at INKnBITs
dean.bath at inknbits.co.uk
Tue Aug 15 06:09:43 MST 2006
Hi,
I'm trying to call an exten from inside extensions.ael, as below, ddi calls
ael and then ael needs to call the extensions.conf (8000 exten) for the call
queue.
Is this possible? Or is there an easier way to combine the exten 8000 to the
ael?
Thanks,
Dean.
ddi.conf
exten => _441234567890,1,Macro(queueexten-ael,8000)
extension.ael
macro queueexten-ael( ext ) {
if ("${CALLERID(num):0:2}" = "44") {
Set(CALLERID(num)=0${CALLERID(num):2});
} else
Set(CALLERID(num)=00${CALLERID(num)});
Dial(8000); <------- don't know this bit!
}
extensions.conf
[8000]
; Forecourt Services Call Queue
include => daytime|8:00-18:00|Mon-Fri|*|*
include => night|18:00-8:00|Mon-Fri|*|*
include => night|*|Sat-Sun|*|*
[daytime]
exten => 8000,1,Answer
exten => 8000,2,Set(CALLERID(NAME)=Forcourt Services)
exten => 8000,3,Queue(fservices||||1800)
[night]
exten => 8000,1,Playback(/var/lib/asterisk/sounds/fsdeskclosed)
exten => 8000,2,Wait(2)
exten => 8000,3,Hangup()
More information about the asterisk-users
mailing list