Local number forwarding setup

Hello Guys,

First of all hi to everyone, i will really appreciate any help you can give me.

I am having problem configuring local number forwarding. All i know is it can be configured in extensions.conf inside asterisk folder, but i don’t know where is the exact location of the code that i can setup the local calls.

For example i want asterisk to forward a number when a user press 0 after the voice prompt, and where can i setup the number for dial 0 extension.



If your trying to work in the extensions.conf you probably need to spend some time looking over this book.

Below, if someone dials ext 500 it will send the call to the menu. The menu will play a voice prompt and then wait for 10 seconds for a key press. When 0 is press it tells it to dial the SIP phone 100.

exten => 500,1,Goto(menu,s,1)

exten => s,1,NoOp(have a call)
exten => s,n(replay),Background(playavoiceprompt)
exten => s,n,WaitExten(10)
exten => s,n,Hangup
exten => 0,1,Dial(SIP/100)
exten => i,1,Goto(s,replay)