Do this:
exten=> _0522XXXXXX,1,Goto(${CONTEXT},0520${EXTEN:4:},1)
you can also use the dial command for this as well
exten=> _0522XXXXXX,1,Dial(Local/0520${EXTEN:4}@${SOMECONTEXT})
replace ${CoNTEXT} and ${SOMECONTEXT} with name of your contexts which
contains 0520 numbers.
I have not tested it, you can try it on your setup.
On Mon, Apr 4, 2011 at 7:00 PM, salaheddine elharit <
[email protected]> wrote:
> Hello list,
>
> i have one question related to call forwarding.
>
> i have 2 number for the inbound and i want to configure asterisk like that.
>
> When the customer call the first number 0522XXXXXX the call will be
> forwarding automatically to anther number 0520xxxxxx
>
> Does anybody have a solution to this problem.
>
> Thanks and Regards.
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
Best Ragards
Rizwan Qureshi
VoIP/Asterisk Engineer
Axvoice Inc.
V: +92 (0) 3333 6767 26
E: [email protected]
W: www.axvoice.com
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users