<!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">
What that catches though is the actual phone number not the RDNIS. Is
there any way that we can use something similar for sorting of the
RDNIS?<br>
<br>
On 6/15/2010 9:19 AM, Zeeshan Zakaria wrote:
<blockquote
 cite="mid:AANLkTikNzGVgfddBeY6v6GbUTBHqIXvEjrnKr2bfX_Ri@mail.gmail.com"
 type="cite">
  <p>Hi,</p>
  <p>I do something similar but for outbound calls. But same should
work for inbound calls.</p>
  <p>First catch the calls with a leading 1, then strip 1 and send them
to your desired context or extension. I use AEL, but in regular config
it should be something like:</p>
  <p>[incoming-calls]<br>
; catch numbers with leading 1 here<br>
exten =&gt; _1X.,1,Goto(${EXTEN:1},1)</p>
  <p>; numbers with no leading 1 go here<br>
exten =&gt; _X.,1,Noop( - - - - - Incoming call - - - - -)<br>
  </p>
  <p>Zeeshan A Zakaria</p>
  <p>--<br>
  <a moz-do-not-send="true" href="http://www.ilovetovoip.com">www.ilovetovoip.com</a></p>
  <blockquote type="cite">On 2010-06-15 9:27 AM, "Chris Ramirez" &lt;<a
 moz-do-not-send="true" href="mailto:cramirez@tele-onecom.com">cramirez@tele-onecom.com</a>&gt;
wrote:<br>
    <br>
    <div bgcolor="#ffffff" text="#000000">
We are having an issue with the RDNIS coming through with a leading 1
on some calls. I have been trying to find a way to remove the leading
number only if it starts with a 1 and have yet to find a solid
solution. If anyone else has any idea as how to do this I would greatly
appreciate it! Thanks.<br>
    <font color="#888888">
    <div>-- <br>
    <font color="gray"><b>Chris Ramirez</b></font>
    <br>
    <font color="green">TELE-ONE COMMUNICATIONS, INC.</font>
    <br>
    <a moz-do-not-send="true" href="mailto:cramirez@tele-onecom.com"
 target="_blank">cramirez@tele-onecom.com</a>
    <br>
903-531-0777
    </div>
    </font></div>
    <br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a moz-do-not-send="true"
 href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a>
--<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a moz-do-not-send="true"
 href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
    <br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
&nbsp; <a moz-do-not-send="true"
 href="http://lists.digium.com/mailman/listinfo/asterisk-users"
 target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
  </blockquote>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<font color="gray"><b>Chris Ramirez</b></font>
<br>
<font color="green">TELE-ONE COMMUNICATIONS, INC.</font>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:cramirez@tele-onecom.com">cramirez@tele-onecom.com</a>
<br>
903-531-0777
</div>
</body>
</html>