-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
40 lines (26 loc) · 1.74 KB
/
README
File metadata and controls
40 lines (26 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
This is a clone of http://telegraph.rubyforge.org/ with the intention of updating for Rails 3 and continuing development.
Information about the poorly name, RAI (Rails Asterisk Integrator) to go here.
The basic idea: integrate functionality of RAGI and RAMI while making asterisk be on par with
rhtml or rjs as a possible "display". Also, integrating calls started from a web session with that
session's data.
So, what's here:
Currently the functional part is modifications and addition to RAGI. In summary
script/asterisk_server - starts a rails AGI server without starting any web server.
controllers/routing - use rails controllers and native routing so that logic that applies to both a web interface and voice interface does not have to be repeated
render_asterisk - function that gives access to CallConnection object from controllers
cc.link_to_dtmf - function that allows numbers inputed into keypad to corrospond to links to other functions
params - agi params as well as params introduced in link_to_dtmf passed into params hash in controller
TODO:
*Sessions
*RAMI:
Rami implementation not working yet so not included.
Big idea is you can do call origination from RAMI. If you do call origination from a web session and then pass that call back to AGI, the web session and agi session are linked.
This Example:
This is the simon game, taken from the RAGI package and re-factored into a ActionController. It also includes a web-based version of the game.
For agi version:
from shell, start script/asterisk_server
have asterisk call agi://agi_server_name/games/simon
obviously the simon sound files need to be in placed as outlined in the RAGI simon readme
For web version
from shell, start script/server
in browser go to, http://server_name/games/simon