[asterisk-dev] PREDIGITS for WaitExten
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Tue Apr 1 08:29:35 CDT 2008
On Tuesday 01 April 2008 03:08:51 Timo Teräs wrote:
> 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.)
You can do this already with dialplan logic:
exten => _123000,1,Verbose(2,000 selected)
exten => _123001,1,Verbose(2,001 selected)
exten => _123[1-9]!,1,Dial(Zap/g1/${EXTEN:3})
exten => _123!,1,Set(PREDIGITS=${EXTEN})
exten => _123!,n,Set(origcontext=${CONTEXT})
exten => _123!,n,WaitExten(getmoredigits)
exten => 123456,1,Verbose(2,Something else)
[getmoredigits]
exten => 456,1,Goto(${origcontext},${PREDIGITS}${EXTEN},1)
> 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).
I can't look at your patch until it's posted on the bugtracker, with the
appropriate contributor license filed.
--
Tilghman
More information about the asterisk-dev
mailing list