Dial Plan

I have been using WebGui Asterisk flavors to bring myself up to speed.It has worked fine.

Now I am trying to play with raw asterisk for my new job and am so confused I dont seem to understand what I am doing wrong to create an outbound plan.

I get this error

chan_sip.c:14721 handle_request_invite: Call from ‘1001’ to extension ‘914155954044’ rejected because extension not found.

sip.conf

[general]
port = 5060
bindaddr = 0.0.0.0
context = default
nat=yes
externip=208.x.y.47
dtmf=rfc2833
canreinvite=no

[Provider_outbound]
type=peer
host=96.a.b.c
port=5060
disallow=all
allow=ulaw
allow=alaw
dtmf=rfc2833
canreinvite=no
context=fromvoip
nat=yes
externip=76.x.y.63

[1001]
type=friend
context=fromvoip
secret=1234
qualify=yes
host=dynamic
callerid="Jay"
mailbox=1001
nat=yes
dtmfmode=rfc2833
dial=SIP/1001
careinvite=no

extensions.conf

[general]
exten => _91NXXNXXXXXX,1,Dial(SIP/voip_outbound/${EXTEN:1})

Do i need to declare globals ?

Please advise.

I have reas the manuals and read other threads.

Hi

You have no contexts defined for the phone to use.

Ian