<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Thanks for the reply. </FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>If I delete the "6" extension and leave the 6020
extension, asterisk won't answer it and I get the invalid extension message from
asterisk. I suspect that for some reason, the zaptel driver is only
passing forward "6" of the full four digits "6020."</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Any thoughts on why I'm only getting a single digit of the
4 digit DID?</FONT></DIV>
<DIV><FONT face=Arial>-Pat</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>On Tue, 2004-05-04 at 11:52, Pat Boyle wrote:<BR>><I>
-- zaptel.conf --<BR></I>><I> span=1,0,0,esf,b8zs<BR></I>><I>
e&m=1-8<BR></I>><I> loadzone=us<BR></I>><I>
defaultzone=us<BR></I>><I> <BR></I>><I> -- extensions.conf
--<BR></I>><I> ; Need an extension to pick up calls from the T1 that uses
e&m wink<BR></I>><I> ; This comes in as a 6 instead of 4 full
digits<BR></I>><I> ; then pass to the s extension<BR></I>><I> exten =>
6,1,Wait(1)<BR></I>><I> exten => 6,2,Goto(incoming,s,1)<BR></I><BR>Get
that out of your incoming. You have to match on as many of the<BR>unique digits
they are sending to you. Don't include any other contexts<BR>that might match
early. Specifically your incoming should probably just<BR>contain a list of your
DID numbers and a gotos that direct it to the<BR>right sections of the
dialplan.<BR><BR>exten => 1111,1,goto(Sales-in,s,1)<BR>exten =>
2222,1,goto(Tech-in,s,1)<BR>exten => 3333,1,goto(vmail,s,1)<BR>exten =>
4444,1,goto(extensions,110,1)<BR>exten =>
5555,1,goto(extensions,111,1)<BR><BR>Get the picture? With DID you have to be
careful not to match too early,<BR>and this will help you avoid early matches by
only being able to match<BR>to the exact DID numbers being
sent.<BR><BR><BR>><I> -- zapata.conf --<BR></I>><I>
[channels]<BR></I>><I> context=incoming<BR></I>><I>
signalling=em_w<BR></I>><I> ; rxwink=600<BR></I>><I>
echocancel=yes<BR></I>><I> echotraining=yes<BR></I>><I>
group=1<BR></I>><I> immediate=no<BR></I>><I> channel => 1-8<BR></I>--
<BR>Steven Critchfield <<A
href="mailto:critch@basesys.com">critch@basesys.com</A>><BR></DIV></FONT>
<DIV style="FONT: 10pt arial">----- Original Message -----
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
title=pboyle@drizzle.com href="mailto:pboyle@drizzle.com">Pat Boyle</A> </DIV>
<DIV><B>To:</B> <A title=asterisk-users@lists.digium.com
href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</A>
</DIV>
<DIV><B>Sent:</B> Tuesday, May 04, 2004 9:52 AM</DIV>
<DIV><B>Subject:</B> T1 DID problem</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2>I have a T1 (not PRI) plugged into my Asterisk
server with a T100P card.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Everything is working well, except I only get the
first digit of the 4 digit DID in Asterisk. The T1 provider (Eschelon)
tried switching to 7 digits, and I only got the first digit of the
7.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can anybody help? We're adding another DID
and I need to trap it correctly.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>System info:</FONT></DIV>
<DIV><FONT face=Arial size=2>Asterisk 0.7.2</FONT></DIV>
<DIV><FONT face=Arial size=2>Zaptel 9.1</FONT></DIV>
<DIV><FONT face=Arial size=2>Redhat Fedora Core 1</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here are snippets from the relevant
files:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-- zaptel.conf --</FONT></DIV>
<DIV>span=1,0,0,esf,b8zs<BR>e&m=1-8<BR>loadzone=us<BR>defaultzone=us<BR></DIV>
<DIV><FONT face=Arial size=2>-- extensions.conf --</FONT></DIV>
<DIV>; Need an extension to pick up calls from the T1 that uses e&m
wink<BR>; This comes in as a 6 instead of 4 full digits<BR>; then pass to the s
extension<BR>exten => 6,1,Wait(1)<BR>exten =>
6,2,Goto(incoming,s,1)<BR></DIV>
<DIV>-- zapata.conf --</DIV>
<DIV><PRE>[channels]
context=incoming
signalling=em_w
; rxwink=600
echocancel=yes
echotraining=yes
group=1
immediate=no
channel => 1-8
</PRE><BR></DIV></BODY></HTML>