Answer the question
In order to leave comments, you need to log in
How to migrate your dialplan to extention.ael?
Send to mana or suggest an idea how to remake?
exten => _03[1,2,3,4,5,6,7,8,9]XXXXXXX,1,Dial(SIP/Int/${EXTEN}) - this is how it looks in the standard dialplan *.conf
view in *.ael
<------>s=> {
<------><------>Set(fname=${STRFTIME(${EPOCH},,/%Y-% m-%d/%H_%M)}-${CALLERID(number)}-to-${EXTEN});
<------><------>MixMonitor(/files/records/${fname}.wav);
<------>_03[1,2,3,4,5,6,7,8,9]XXXXXXX=> {
<------><------><- ----->Dial(SIP/Int/${EXTEN},120,tT);
<------><------><------>HangUp;
<------><------>}; gives an error about invalid string syntax
Answer the question
In order to leave comments, you need to log in
exten s=> closed didn't check when copying a piece of the config, and still gives an error Error: syntax error, unexpected word, expecting '=' or '@' or '=>'
Something like this, probably:
_03[1-9]XXXXXXX => {
Set(fname=${STRFTIME(${EPOCH},,/%Y-%m-%d/%H_%M)}-${CALLERID(number)}-to-${EXTEN});
MixMonitor(/files/records/${fname}.wav);
Dial(SIP/Int/${EXTEN},120,tT);
HangUp;
}
s => {
// Incoming calls are always placed in a context in the dialplan, either one you specify in the channel configuration file, or the default context. If no other match exist for the call within the context, the s extension is activated.
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question