forked from VitalPBX/Google_ASR_VitalPBX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
26 lines (26 loc) · 1.2 KB
/
install.sh
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
#!/bin/bash
set -e
# Authors: Rodrigo Cuadra
# with Collaboration of Jose Miguel Rivera
#
# Support: [email protected]
#
echo -e "\n"
echo -e "************************************************************"
echo -e "* Welcome to the VitalPBX Google ASR Integration *"
echo -e "************************************************************"
yum install -y perl perl-libwww-perl perl-JSON perl-IO-Socket-SSL mpg123 flac
cd /var/lib/asterisk/agi-bin/
wget https://raw.githubusercontent.com/VitalPBX/Google_ASR_VitalPBX/master/googleasr.agi
chown asterisk:asterisk googleasr.agi
chmod +x googleasr.agi
cd /etc/asterisk/ombutel
wget https://raw.githubusercontent.com/VitalPBX/Google_ASR_VitalPBX/master/extensions__60-google_asr.conf
asterisk -rx"dialplan reload"
echo -e "\n"
echo -e "************************************************************"
echo -e "* Remember to edit the file *"
echo -e "* /var/lib/asterisk/agi-bin/googleasr.agi *"
echo -e "* and add the API key obtained from Google *"
echo -e "* For test dial *277 or *2770 *"
echo -e "************************************************************"