[asterisk-dev] PREDIGITS for WaitExten
Timo Teräs
timo.teras at iki.fi
Tue Apr 1 03:08:51 CDT 2008
Hi,
I'm trying to figure out clean way to implement overlapped dialing for my
Asterisk configuration.
Lets say I have asterisk-a with zaptel interfaces and overlapped dialling
enabled. And I have a rule such as:
_123! => Dial(IAX/asterisk-b/${EXTEN});
What I would like to have in asterisk-b extensions.ael (for the iax
context) is something like:
_123000 => NoOp(000 selected);
_123001 => NoOp(001 selected);
_123[1-9]! => Dial(Zap/g1/${EXTEN:3});
_123! => { Set(PREDIGITS=${EXTEN}; WaitExten(); }
This way the overlapped dialling would work properly over IAX. E.g. if all
digits are not received, the WaitExten() would wait for additional digits;
and not just ignore the already received digits, what it does now by
default. (Eg. in some cases the PBX might have sent 1230 in the first
place. Without the _123! the call would be dropped with invalid extension.
With only WaitExten(); it would ignore the first received zero.)
I have a rough patch for this (I didn't test it), but it gives a general
idea what is needed to achieve this. If you think this would be acceptable,
I can make tested patch against 1.6 branch and/or trunk (and sign the
license stuff + send the patch to bugs db).
Cheers,
Timo
More information about the asterisk-dev
mailing list