How do i make asterisk transer an incoming call to IVR with extension 7000?


I have installed Asterisk PBX from Debian Lenny 5.0.4 repository and compiled WEB GUI 2.0 on it.

My problem is that when people call in, they get hung up on by the asterisk because and asterisk outputs:
[Apr  1 02:42:15] NOTICE[7190]: chan_sip.c:14441 handle_request_invite: Call from '' to extension '7000' rejected because extension not found.

Here is my register string (the X's are just censored numbers for my privacy):
register =>

If I use a SIP phone on my Asterisk server; e.g extension 6000 i can call IVR 7000 without problems and navigate the menu.

Thanks for any help.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

An IVR with a number of 7000 is not the same as an extension. Your register string is attempting to associate your sip trunk to extension 7000 which doesn't exist. Either add extension 7000 or change your register string to point the trunk to extension 6000.
us-pataAuthor Commented:
But how to i achieve my goal of people getting right to the IVR menu? I dont want it to ring directly to a phone because we have sevral departments.
us-pataAuthor Commented:
I fixed it myself.
I just added include voicemenus to default and it all worked out =D
include = voicemenus

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

When you define SIP account to register, you should define in sip.conf:

register => fromuser@fromdomain:secret:authuser@host:port/extension


first is needed to force asterisk to register on remote server.
second definition is needed for some connection settings, as context, codecs, etc.

so when incoming call will come, asterisk will try to search "/extension" in "incomingcontext".

Without this asterisk will try to found 7000 in "incoming", which will be default in [general] of sip.conf.
The solution us-pata provided is a secondary fix for the problem he had. His recommendation is not really a solution.

Here is a more real solutions.... if your incoming calls are going to context [inbound] then create the extension for the incoming number, answer it and send it to your ivr context.

exten => 3035554444,1,Answer
exten => 3035554444,2,Goto(custom-ivr,s,1)

exten => s,1,Background(custom-ivr-english)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IP Telephony

From novice to tech pro — start learning today.