<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thank you all,<br>
<br>
It just so turns out that it was a bad zaptel module. We saw
another post on digiums site where someone was having the exact same
problem with several versions of zaptel. We changed to the one that he
said worked (1.2.21), and all is well now. (And asterisk is now parsing
the ani and dnis properly).<br>
<br>
Tilghman Lesher wrote:
<blockquote
cite="mid:200711200928.33127.tilghman@mail.jeffandtilghman.com"
type="cite">
<pre wrap="">On Tuesday 20 November 2007 02:38:38 Atis Lezdins wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I won't be able to help with hardware part, but there's a simple trick
to get them as you want:
[incoming]
_X.,1,Set(DNIS=${CUT(${EXTEN:-4})})
_X.,2,Goto,dnis,${DNIS},1
[dnis]
6789 => ...
</pre>
</blockquote>
<pre wrap=""><!---->
I don't think you've actually tested this, because if you had, you would find
that it does not work.
[incoming]
exten => _X.,1,Goto(dnis,${EXTEN:-4},1)
[dnis]
exten => 6789,1,.....
</pre>
</blockquote>
</body>
</html>