You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This framework is intended to simply making ivr applications using Asterisk's
4
13
AGI, providing a nice level of abstraction over what an IVR should look like
5
14
from a developers' perspective.
6
15
7
16
Resources:
8
17
9
-
*[Complete PAGI/PAMI talk for the PHP Conference Argentina 2013](http://www.slideshare.net/mgornstein/phpconf-2013). Check the slide notes for the complete text :)
*[Complete PAGI/PAMI talk for the PHP Conference Argentina 2013](http://www.slideshare.net/mgornstein/phpconf-2013). Check the slide notes for the complete text :)
*[Professional Telephony Applications at hand](http://sdjournal.org/a-practical-introduction-to-functional-programming-with-php-sdj-issue-released/) The march edition of [Software Developer Journal](http://sdjournal.org/) features a complete article about writing telephony applications with PAMI and PAGI.
17
24
18
-
Contact me
19
-
----------
20
-
If you have any questions, issues, feature requests, or just want to report
21
-
your "success story", or maybe even say hi, please send an email to marcelog@gmail.com
25
+
# Installing
26
+
Add this library to your [Composer](https://packagist.org/) configuration. In
27
+
composer.json:
28
+
```json
29
+
"require": {
30
+
"marcelog/pagi": "2.*"
31
+
}
32
+
```
22
33
23
-
Included Example
24
-
----------------
25
-
Please see **docs/examples** for all the included examples.
34
+
# Quickstart
26
35
27
36
You can start by *docs/examples/quickstart* for a very basic example. You'll need something like this in your dialplan:
just replace X.Y.Z by the release version you'd like to install :)
61
-
62
-
See the [pear channel](http://pear.marcelog.name/)
63
-
64
-
Available as PHAR
65
-
-----------------
66
-
Just go to the [Jenkins server](http://ci.marcelog.name) and grab the latest
67
-
phar distribution from the PAGI job.
68
-
69
-
Testing IVR applications
70
-
========================
71
44
A mocked pagi client is included to easily test your ivr applications. See
72
45
**docs/examples/mock** to see an example of how to use it.
73
46
74
-
Nodes
75
-
=====
47
+
# Features
48
+
49
+
## Nodes
50
+
76
51
For a tutorial about nodes, see [this article](http://marcelog.github.com/articles/pagi_node_call_flow_easy_telephony_application_for_asterisk_php.html)
77
52
78
53
Simple Call Flow Nodes are available (see **docs/examples/node/example.php**). Using
@@ -100,17 +75,17 @@ callback, etc. For an example, see docs/examples/nodecontroller/example.php
100
75
101
76
An article about the node controller is available [here](http://marcelog.github.com/articles/making_your_ivr_nodes_call_flow_with_pagi_and_php_asterisk.html)
102
77
103
-
AutoDial
104
-
========
78
+
## AutoDial
79
+
105
80
CallFiles are supported. You can also schedule a call in the future.
106
81
107
-
Fax
108
-
===
82
+
## Fax
83
+
109
84
Sending and receiving faxes is supported using spandsp (applications SendFax
110
85
and ReceiveFax).
111
86
112
-
Available Facades
113
-
=================
87
+
## Available Facades
88
+
114
89
* PAGI\Client\CDR: Provided to access cdr variables.
115
90
* PAGI\Client\ChannelVariables: Provided to access channel variables and asterisk
116
91
environment variables.
@@ -121,11 +96,11 @@ environment variables.
121
96
* PAGI\Logger\Asterisk: Provides access to asterisk logger (see logger.conf in
122
97
your asterisk installation).
123
98
124
-
Results
125
-
=======
99
+
## Results
100
+
126
101
For every operation, a Result is provided. Some operations decorate this
127
102
Result to add functionality, like PlayResult, ReadResult, etc. For example,
128
-
a stream file will return a PlayResult, which decorates a ReadResult which
103
+
a stream file will return a PlayResult, which decorates a ReadResult which
129
104
in turn, decorated a Result.
130
105
131
106
* PAGI\Client\DialResult
@@ -134,23 +109,41 @@ in turn, decorated a Result.
134
109
* PAGI\Client\PlayResult
135
110
* PAGI\Client\FaxResult
136
111
137
-
Debugging, logging
138
-
==================
139
-
You need [log4php](http://logging.apache.org/log4php/). Just make sure you
140
-
copy it to the include_path and PAGI will pick it up from there (the
141
-
directory *src/main/php* is the one that needs to be in the include_path).
142
-
143
-
Developers
144
-
==========
145
-
* build.xml is a phing build file, not ant.
146
-
* It's very possible that you may need to edit build.properties.
147
-
* Available main targets: all, build, test, report.
0 commit comments