<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=368560015-19102005><FONT face=Arial 
color=#0000ff size=2>That worked great. Thanks</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com 
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Steve 
Totaro<BR><B>Sent:</B> 19 October 2005 14:45<BR><B>To:</B> Asterisk Users 
Mailing List - Non-Commercial Discussion<BR><B>Subject:</B> Re: [Asterisk-Users] 
DNIS/DNID<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>exten =&gt; xx,2,SetCIDName(*-SALES-* 
${CALLERIDNAME})</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=JamesSteven@redlinesoftware.co.uk 
  href="mailto:JamesSteven@redlinesoftware.co.uk">James Steven</A> </DIV>
  <DIV style="FONT: 10pt arial"><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 style="FONT: 10pt arial"><B>Sent:</B> Wednesday, October 19, 2005 9:33 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Asterisk-Users] DNIS/DNID</DIV>
  <DIV><BR></DIV>
  <DIV dir=ltr align=left><FONT face=Arial size=2><SPAN 
  class=205103813-18102005>Hi</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=205103813-18102005>Is it possible 
  with Asterisk to tell&nbsp;the called party which number was dialled by the 
  caller?&nbsp; Or in place of the number dialled have a description such as 
  'Sales' or 'Accounts'?&nbsp; <FONT face=Arial size=2><SPAN 
  class=205103813-18102005>Ideally, I would like to show a description 
  corresponding to the number dialled followed by CIDName.&nbsp; 
  </SPAN></FONT></SPAN></FONT><FONT face=Arial size=2><SPAN 
  class=205103813-18102005>How might this be set up?&nbsp; </SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=205103813-18102005></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=205103813-18102005>Currently my 
  extensions.conf is:</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=205103813-18102005></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=205103813-18102005>exten =&gt; 
  xx,1,LookupCIDName<BR>exten =&gt; xx,2,Dial(SIP/xx<WBR>,50)<BR>exten =&gt; 
  xx,3,Voicemail(xx)<BR>exten =&gt; xx,4,Hangup</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=205103813-18102005></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=205103813-18102005>Thanks for your 
  help.</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=205103813-18102005></SPAN></FONT>&nbsp;</DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>--Bandwidth and 
  Colocation sponsored by Easynews.com --<BR><BR>Asterisk-Users mailing 
  list<BR>Asterisk-Users@lists.digium.com<BR>http://lists.digium.com/mailman/listinfo/asterisk-users<BR>To 
  UNSUBSCRIBE or update options visit:<BR>&nbsp;&nbsp; 
  http://lists.digium.com/mailman/listinfo/asterisk-users 
  <P>
  <HR>

  <P></P>No virus found in this incoming message.<BR>Checked by AVG 
  Anti-Virus.<BR>Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: 
  10/19/05<BR></BLOCKQUOTE><BR>&nbsp;&nbsp;<FONT 
face="Arial, Helvetica, sans-serif" size=2>This message has been scanned for 
unacceptable content by 'VITANIUM'</FONT> <BR>&nbsp;&nbsp;<FONT 
face="Arial, Helvetica, sans-serif" size=2>the industry leading email virus and 
content management service from</FONT> <BR>&nbsp;&nbsp;<FONT 
face="Arial, Helvetica, sans-serif" size=2>Vitanium Systems. Contact details are 
available at <A href="http://www.vitanium.com/">www.vitanium.com.</A></FONT> 
</BODY></HTML>