Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
asterisk_translator [2015/08/16 13:07] sschueller |
asterisk_translator [2015/08/16 13:09] (current) sschueller |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| <code bash> | <code bash> | ||
| yum install perl-Crypt-SSLeay perl-libwww-perl.noarch sox perl-JSON perl-JSON-XS flac perl-IO-Socket-SSL esound-devel libtool-ltdl | yum install perl-Crypt-SSLeay perl-libwww-perl.noarch sox perl-JSON perl-JSON-XS flac perl-IO-Socket-SSL esound-devel libtool-ltdl | ||
| - | |||
| wget http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/mpg123-1.9.1-1.el5.rf.i386.rpm | wget http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/mpg123-1.9.1-1.el5.rf.i386.rpm | ||
| - | |||
| rpm -i --force mpg123-1.9.1-1.el5.rf.i386.rpm | rpm -i --force mpg123-1.9.1-1.el5.rf.i386.rpm | ||
| </code> | </code> | ||
| + | For Cisco 7970 Authentication, must be set in xml. | ||
| + | <code php /var/www/html/xmlservices/auth/authenticate.php> | ||
| + | <?php | ||
| + | echo "AUTHORIZED"; | ||
| + | </code> | ||
| <code bash /etc/asterisk/extensions_custom.conf> | <code bash /etc/asterisk/extensions_custom.conf> | ||
| [g-speech] | [g-speech] | ||
| Line 30: | Line 33: | ||
| </code> | </code> | ||
| + | XML service for cisco 7970. Reads transcript file and makes an xml. | ||
| <code php /var/www/html/xmlservices/translator/index.php> | <code php /var/www/html/xmlservices/translator/index.php> | ||
| <?php | <?php | ||
| Line 47: | Line 51: | ||
| </code> | </code> | ||
| + | Create the transcript | ||
| <code php /var/lib/asterisk/agi-bin/transcript.agi> | <code php /var/lib/asterisk/agi-bin/transcript.agi> | ||
| #!/usr/bin/php | #!/usr/bin/php | ||
| Line 56: | Line 61: | ||
| </code> | </code> | ||
| + | Push translate URL to cisco 7970 | ||
| <code php /var/lib/asterisk/agi-bin/pushtocisco.agi> | <code php /var/lib/asterisk/agi-bin/pushtocisco.agi> | ||
| #!/usr/bin/php -q | #!/usr/bin/php -q | ||