To make a outgoing call from other Application(JAVA) I have to use Manager AMI right?I can’t use AGi?I am making a dynamic IVR . This(below) is what I am doing.
My java search database,get a "phone number and filelocation of song ".
Now I want to call that phone number and play the song;
How to pass infromation (phone number and address where the song is) to asterisk dynamically?
Like we have in AGI a streamFile(filename) option where I can choose what to play,what option do I have in AMI to set what to play in dialplan?
I can pass a phone number as an extension which matches the pattern as shown below
same=>n,Playback(filename) //This is the issue.How should I pass filename from managerAMI?
If my approcah is wrong,please guide me.