On the first part of this blog post, I would like to walk through how to build an IVR (Interactive Voice Response) system that is connected to SAP HANA Database or ODATA service. IVR is an automated telephony system that interacts with the callers, gathers information and routes calls to the appropriate recipient.
For the demo, we will make a call to the hotline (IVR) number to inquiry on the amount of the net value. The system will ask you to type the 8 digit billing document number. Once you have entered the number, if the record is exist, the system will tell you the net value.
Required Components
Software:
Hardware:
Preparing the PBX Server
We will be using a Raspberry Pi as an IVR server.
raspbx-upgrade
nano /etc/network/interfacesRemove the following line:
iface eth0 inet dhcp
And add the following lines:
iface eth0 inet staticaddress 192.168.0.12
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1
Update those numbers highlighted in blue with your IP address. And finally run the following command to restart the network service:
service networking restart
cd /It takes about 15~30 minutes to complete. It will ask you to reset all the root password, the FreePBX and ARI admin password, the extension 701 password, the extension 701 voicemail password, the email delivery address for extension 701 and the telephone reminders password for scheduling reminders by phone. Please proceed to reset all the password.
wget http://incrediblepbx.com/incrediblepbx11-raspbx.gz
gunzip incrediblepbx11-raspbx.gz
chmod +x incrediblepbx11-raspbx./incrediblepbx11-raspbx
Installing Node.JS
Just to ensure the Raspberry Pi is up to date and ready to go, please execute the following commands:
sudo apt-get upgrade
sudo apt-get update
Download the latest version of Node.JS:
sudo wget http://node-arm.herokuapp.com/node_latest_armhf.deb
Install it:
sudo dpkg -i node_latest_armhf.deb
Check if the installation is successful by typing the following command:
node -v
You will see the version if the installation is successful, for my case is:
v0.10.29
Installing SAP HANA Database Client for Node
The next step that we are going to perform is to install the JavaScript client for node to connect to the SAP HANA database and execute the SQL query.
In the Raspberry Pi console, type the following command:
git clone https://github.com/SAP/node-hdb.git
cd node-hdb
npm install
Setup the Voice Modem Gateway
Setting-up the voice modem gateway Linksys SPA3102 is pretty much simple.
The main important point here is the connection to the IVR server (Raspberry Pi). I will touch in more detail in the Part 2.
The Line port connected to the RJ-11 in the DSL/Cable Modem router. The Phone port connected to your analog phone and the Internet port connected to the DSL/Cable Modem router.
That's all for Part 1. We will continue on the Part 2 to perform the following:
Stay tune for part 2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |