On Tuesday 29 May 2007 3:59 am, M.Arshad khan wrote:
> Any asterisk guru has any idea how to do following senario.
> scenario:
> 1. I need to setup custom mysql database and connect through agi on
> asterisk. 2. Multiple DIDs are pointing to asterisk server, when user dial
> a DID number, based on that particular DID asterisk play an ivr menu that
> please enter the number to dial, if number exist on my sql database then
> call go through otherwise play message that number is invalid. similarly if
> user dial other DID numbers ivr should play based on DID dialed. Arshad

This is absolutely trivial; if your calls are coming in through a PRI or ITSP, 
your incoming extension will match the called number.

No guru needed:
[incoming]
exten => 1234,1,Goto(Company1,s,1)
exten => 4567,1,Goto(Company2,s,1)

etc.

there are other ways to do it as well, including DB calls and other magic, but 
I suggest you get the basics down and continue from there.

-A.

Reply via email to