[Asterisk-Users] Channelized T1 Question/Request

Steven Critchfield critch at basesys.com
Tue Sep 16 04:55:19 MST 2003


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 <critch at basesys.com>




More information about the asterisk-users mailing list