On Tue, 2003-09-16 at 02:38, Josh Rollyson wrote:
> Using a channelized T1 here for our * box, we get ANI and DNIS
> information inband over
> DTMF, in the format *1234567890*2223334444*, where 1234567890 is the ANI
> and 2223334444 is the
> DNIS. Any hope for processing this effectively without resorting to AGI
> scripting? Right now, * gets confused and processes as an invalid
> extension.
Pattern matching.
exten = _*NNNNNNNNNN*NNNNNNNNNN*,1,SetVar(ANI=${EXTEN:2:10})
exten = _*NNNNNNNNNN*NNNNNNNNNN*,2,SetVar(DNIS=${EXTEN:13:10)
exten = _*NNNNNNNNNN*NNNNNNNNNN*,3,Goto(DifferentContext|${DNIS}|1)
--
Steven Critchfield <[EMAIL PROTECTED]>
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users