Re: [Asterisk-java-users] FastAGI - creation ofnewAGIScriptinstance
Brought to you by:
srt
From: Alex <ab...@ga...> - 2005-09-30 13:50:55
|
Hi Stefan: Yes, in fact I'm using both the Manager api and fastagi. Yesterday, I come up with a possible solution to my problem, and it's this (maybe can be of help to someone else): I have a Server App that includes the AGIServer and has communication with all the Client Apps (the ones that the agents use). This server also is connected to Asterisk via the Manager api, so I could receive all the events and react to them. When Asterisk receives a call, the AGIServer calls the "service" method of my AGI Script, it answers the call, plays some greetings, and waits for commands of the Server App. The communication between the AGI Script and the Server App is made with network sockets. I have to work a little more in this to make sure that everything will work the way I'm thinking. The announcement will only be played to the caller, and to do that, I must release the agent from the call. Also to make the agent available to receive the next call. Well... what do you think? Thanks, Alejandro > ok i didnt get that context. > to do what you want you have to use the manager api and fastagi. > what will that client application look like? e.g. how are the calls > (asterisk channels) and the client application session linked? > do you only want the announcement to be played to the caller or to both > the caller and the agent? |