<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 href="http://www.ilovetovoip.com">www.ilovetovoip.com</a></p>
<p><blockquote type="cite">On 2010-06-15 9:27 AM, &quot;Chris Ramirez&quot; &lt;<a 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 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 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>
               <a 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>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></p>