N
N
nilval2015-11-26 14:48:26
Asterisk
nilval, 2015-11-26 14:48:26

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

3 answer(s)
V
Vladimir, 2015-11-26
@rostel

_03[1-9]XXXXXXX
what's there what's there
+ not closed exten s=> {

N
nilval, 2015-11-27
@nilval

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 '=>'

K
kiba, 2015-12-01
@kiba

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.
}

move pattern _03[1-9]XXXXXXX out of extension s

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question