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. -- Josh Rollyson Technical Support - support@clis.com Cape Lookout Internet Services 1-800-262-8371 / 1-252-240-2335
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@basesys.com>
Steven Critchfield wrote:> 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) >Thanks, this looks like it should work!