Skip to main content

Asterisk RA works with Fast AGI?

5 replies [Last post]
joncmuniz
Offline
Joined: 2007-10-29

Is there forecast for the asterisk ra work with fast agi?

Message was edited by: joncmuniz

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mlaporta
Offline
Joined: 2007-04-02

How do you plan to use an asterisk ra based on Fast AGI?

Reading more about Fast AGI Server is that can handle incoming calls through its channel by simply operate answer() and hangup() and also can execute scripts.

Depending on use a simple ra solution can be accomplished soon.May be you want to experting yourself in modeling one.

Latest ra implementation http://mobicents.googlecode.com/svn/trunk/resources/asterisk/ and sample http://mobicents.googlecode.com/svn/trunk/examples/asterisk/ works with asterisk 1.4.
The default parameters are stored in asteriskra.properties change to fit yours asterisk:

MAGIIP=asterisk-host
MAGILogin=asterisk-user
MAGIPassword=asterisk-password

Cheers

Michele

joncmuniz
Offline
Joined: 2007-10-29

Hi michele,
Using only the API, mananger of the Asterisk mobicents is limited to only intervene between the call of channels outside and could not interact in a more advanced level such as providing the service IVR where mobicents would be the callee and would interact with the caller directly.

with the API manager of the mobicents interacts in a very superficial level, we can initiate calls but not participate in the interaction ... the events start as a link or stops it is not sufficient for a better use of all resources that offers asterisk.

the Asterisk-Java is an implementation of the API asterisk where we better use the resources of asterisk for creation of various products.

PS: we run the asterisk noticed several examples of events, launch events, this basics examples everythig is or right.
We want a thing more complex, the mobicents identifies a particular call, through a translator the participation of then sent to the destination. This translator ca be language or STT (speak to text).
for example: using the API mananger is not possible to create an IVR.

Message was edited by: joncmuniz

mlaporta
Offline
Joined: 2007-04-02

> Hi michele,
> Using only the API, mananger of the Asterisk
> mobicents is limited to only intervene between the
> call of channels outside and could not interact in a
> more advanced level such as providing the service IVR
> where mobicents would be the callee and would
> interact with the caller directly.

Here my ideas of asterisk ra's implementation based on FastAGI.We can say ra acts as a gateway manages multiple channels, exposes agi commands and serves agi scripts.Ra is a new DefaultAgiServer ready to receive connections from the Asterisk server, parses the incoming request, generates activities and calls the scripts mapped to the called URL.

About activity a FastAGI activity object can represents a set of related AgiCommands interacting with an instance of FastAGIServer.Ra Type could defines AgiChannelActivity as activity object identifies by its name and could fire/receive events to answer and hangup a channel while handling AgiRequest.This activity is supposed to be used by AgiScripts for interaction with the Asterisk server.The lifecycle of this activity could start with answer() and ended in special scenario (ex. hangup,timeout) or when channel is explicitly closed.

Sbb Ra Interface
This interface, according to specifications, should provide a means of interacting with the internal logic of an RA to provide (lets call it) protocol vital functionality. Our SbbInterface could expose AgiOperations like answer() exec() and hungup() and receive AgiReply response back.

Events
all package org.asteriskjava.manager.event should be available.

> with the API manager of the mobicents interacts in a
> very superficial level, we can initiate calls but not
> participate in the interaction ... the events start
> as a link or stops it is not sufficient for a better
> use of all resources that offers asterisk.
>
> the Asterisk-Java is an implementation of the API
> asterisk where we better use the resources of
> asterisk for creation of various products.
>
> PS: we run the asterisk noticed several examples of
> events, launch events, this basics examples everythig
> is or right.
> We want a thing more complex, the mobicents
> identifies a particular call, through a translator
> the participation of then sent to the destination.
> This translator ca be language or STT (speak to
> text).
> for example: using the API mananger is not possible
> to create an IVR.

Once you can send commands to a channel and receive reply you can interact with others mobicents ra such as sip,media or tts too.

Any comments/ideas is welcome.

Michele

mlaporta
Offline
Joined: 2007-04-02

Actual Asterisk RA implementation is based on Manager API you can send/receive any Asterisk events. To support Fast AGI we will need a new ra implementation but only is there's a mass demand.

Michele

joncmuniz
Offline
Joined: 2007-10-29

--