Do this:<br><br>exten=&gt; _0522XXXXXX,1,Goto(${CONTEXT},0520${EXTEN:4:},1)<br><br>you can also use the dial command for this as well<br><br>exten=&gt; _0522XXXXXX,1,Dial(Local/0520${EXTEN:4}@${SOMECONTEXT})<br><br>replace ${CoNTEXT} and ${SOMECONTEXT} with name of your contexts which contains 0520 numbers.<br>
<br>I have not tested it, you can try it on your setup.<br><br><br><div class="gmail_quote">On Mon, Apr 4, 2011 at 7:00 PM, salaheddine elharit <span dir="ltr">&lt;<a href="mailto:salah.elharit200@gmail.com">salah.elharit200@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Hello list,<br> <br>i have one question related to call forwarding.<br> <br>i have 2 number for the inbound and i want to configure asterisk like that.<br>
 <br>When the customer call the first number 0522XXXXXX the call will be forwarding automatically to anther number 0520xxxxxx<br>
 <br>Does anybody have a solution to this problem.<br> <br>Thanks and Regards.<br></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></div><br><br clear="all"><br>-- <br><font color="#888888"><div>
Best Ragards</div><div>Rizwan Qureshi</div><div>VoIP/Asterisk Engineer</div><div>Axvoice Inc.<br><br></div>
<div>V: +92 (0) 3333 6767 26</div><div>E: <a href="mailto:rizwanhasham@gmail.com" target="_blank">rizwanhasham@gmail.com</a></div><div>W: <a href="http://www.axvoice.com/" target="_blank">www.axvoice.com</a></div></font><br>