<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ANI/DNIS call routing</TITLE>
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=781095015-11082003><FONT face="Courier New" color=#0000ff
size=2>Someone please double check me then forgive me for answering my own
question.</FONT></SPAN></DIV>
<DIV><SPAN class=781095015-11082003><FONT face="Courier New" color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781095015-11082003><FONT face="Courier New" color=#0000ff
size=2>If we have PRI service and multiple 800 numbers come in over the circuit
the DNIS will be reference as the extension in the dial plan? So for example if
we had 1-800-745-8765 and DNIS configured as the last four digits, then we could
configure extensions.conf in the appropriate context as follows...
</FONT></SPAN><SPAN class=781095015-11082003><FONT face="Courier New"
color=#0000ff size=2></FONT></SPAN></DIV>
<DIV><SPAN class=781095015-11082003><FONT face="Courier New" color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781095015-11082003><FONT face="Courier New" color=#0000ff
size=2>exten => 8765,1,Answer</FONT></SPAN></DIV>
<DIV><SPAN class=781095015-11082003><FONT face="Courier New" color=#0000ff
size=2>exten => 8765,2,Queue(my_queue|t)</FONT></SPAN></DIV>
<DIV><SPAN class=781095015-11082003><FONT face="Courier New" color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781095015-11082003><FONT face="Courier New" color=#0000ff
size=2>Right?</FONT></SPAN></DIV>
<DIV><SPAN class=781095015-11082003><FONT face="Courier New" color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781095015-11082003><FONT face="Courier New" color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> McAughan, Matt
[mailto:MMcAughan@synhrgy.com]<BR><B>Sent:</B> Monday, August 11, 2003
10:40<BR><B>To:</B> 'asterisk-users@lists.digium.com'<BR><B>Subject:</B>
[Asterisk-Users] ANI/DNIS call routing<BR><BR></FONT></DIV>
<P><FONT size=2>Can someone in Asterisk'land subscribing to 800 service
explain to me how to setup extension.conf to route calls based on the incoming
DNIS/ANI. For example I want to route 3 incoming 800# coming across a trunk
group to all land in the same queue. So I guess I am asking how to perform
DNIS/ANI based call routing?</FONT></P></BLOCKQUOTE></BODY></HTML>