TIPS Viva WAZO: A New Beginning

Sylvain Boily

Active Member
Joined
Apr 30, 2016
Messages
259
Reaction score
144
@wardmundy another question :) What the target for this addons ? The end user with only his contacts or to share contacts with everybody ?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,159
Reaction score
5,192
@wardmundy another question :) What the target for this addons ? The end user with only his contacts or to share contacts with everybody ?

It's typically for use office-wide with a single person maintaining it. It sits behind firewall whitelist so the real world can't see it or access it. Removing /usr/share/xivo-web-interface/www/asteridex4/admin makes the admin menu go away so it can be protected for general office-wide use. We've put the SQLite3 database in /var/lib.asterisk/agi-bin.

We use AsteriDex for click-to-dial, speed dialing (00+some 3-digit code), and voice dialing by name with Google.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,159
Reaction score
5,192
AsteriDex for XiVO (using native XiVO Phonebook)

@Sylvain Boily was kind enough to rework our AsteriDex code so that it could be used for Click-to-Dial with the native XiVO Phonebook that you'll find in the GUI at IPX Services -> Phonebook. This version of AsteriDex cannot (yet) be used with the 411 Voice Dialer. You cannot use BOTH this version and the SQLite3 version on the same server!

CjaQtEcXIAA4azr.jpg



Installation

1. Log into XiVO as root and issue the following commands:
Code:
wget https://github.com/sboily/asteridex4/archive/0.1.5.tar.gz
mkdir -p /usr/share/xivo-web-interface/www/asteridex4/templates_c
tar xfvz 0.1.5.tar.gz --strip-components=1 -C /usr/share/xivo-web-interface/www/asteridex4/
chown www-data /usr/share/xivo-web-interface/www/asteridex4/templates_c
apt-get install smarty3
cd /usr/share/xivo-web-interface/www/asteridex4/config
nano -w config.inc.php

2. Once the editor opens, stop there for the moment and log into the XiVO web interface with your browser.

3. Go to a user account you've already created under IPBX Settings -> Users. Check Enable XiVO Client and add a Username and Password for the user to give access to AsteriDex. The Profile type doesn't matter for the moment so just choose Supervisor. SAVE your changes.

4. Now add a webservice account with the ACLs shown below. Goto Configuration -> Web Services Access and click +. In the General tab, give the account a name (asteridex), a login name (asteridex), and a secure password (make1up). Click on the ACL tab and click + twice to add each of the following. Then click SAVE. NOTE: You'll need this login name and password in the next step!
Code:
confd.#
ctid-ng.#

5. Now switch back to your editor in the CLI. Replace the xivo_host entry with the IP address of your server. Then insert your user and pwd entries that you created in step #4. Save your changes: Ctrl-X, Y, then ENTER.

NOTE: Latest release also available on GitHub.

Operation

1. Create entries in your Phonebook using the XiVO web interface: IPX Services -> Phonebook. Multiple phone numbers per account are supported!

2. Access AsteriDex at: https://xivo-ipaddress/asteridex4/ (trailing slash is required!)

3. Login using the username and password you created in Configuration step #3 above.

4. Click on any entry to dial the number.

5. Your extension associated with your User account (the one that you used to log in) will now ring.

6. Answer the call on your local extension and the call to the AsteriDex number will be placed using the outbound route matching the dial string of the number in your Phonebook. If you enter a cellphone number, an office phone number, and a home phone number for someone in your Phonebook, these will display in AsteriDex in the same order. No indication at the moment as to type of phone, but we'll add it to the @Sylvain Boily wish list.

Additional documentation available here:

http://documentation.xivo.io/en/stable/cti_client/cti_client.html

http://documentation.xivo.io/en/stable/cti_client/xlets/people.html

http://documentation.xivo.io/en/stable/administration/phonebook.html

http://documentation.xivo.io/en/stable/system/service_authentication/service_authentication.html

http://documentation.xivo.io/en/stable/system/xivo-auth/xivo-auth.html
 
Last edited:

Sylvain Boily

Active Member
Joined
Apr 30, 2016
Messages
259
Reaction score
144
Another bonus: i added a dockerfile. You need to configure your postgres DB to listening on 0.0.0.0 because it's not enabled by default. To run the dockerfile, read the README on the repo.
 

Sylvain Boily

Active Member
Joined
Apr 30, 2016
Messages
259
Reaction score
144
I added personal contact too. You only list them for the moment. To add one please use the xivo client.

I did a 0.1.3 version.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,159
Reaction score
5,192
@wardmundy what do you need for 411 service ?

With 411 app, the internal caller dials 411. The dialplan prompts for the callee name and records it. Then it passes the recording to speech-recog.agi which uses Google's STT engine to convert the audio into text. The AGI script then sends the actual contact name back to the dialplan which does a SQL query to retrieve the matching phone number in AsteriDex DB. Finally, the dialplan dials the number returned from the query and connects the caller to their callee.

The other AsteriDex functionality (which we haven't finished for XiVO yet) is to embed 3-digit codes in each AsteriDex record and use these as speed dial codes. So an internal caller can dial 00335 (00+first 3 letters of contact Delta Airlines), and the caller will be connected to Delta Airlines. We use a separate field for the speed dial codes to avoid duplicates and allow flexibility for those that want to use some other coding scheme rather than first 3 letters. With multiple phone numbers per entry, this obviously could get more complicated and might require an extra digit to identify home, office, or cell (where 6=O, 2=C, and 4=H on touchtone phone), e.g. 3356 meaning DEL Office or 3352 for cell or 3354 for cell. Or perhaps just 335 for the default number to call.
 
Last edited:

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,159
Reaction score
5,192
Here's a first third cut at pbxstatus for XiVO:

Code:
apt-get -y install dialog
cd /
wget http://incrediblepbx.com/status-xivo.tar.gz
tar zxvf status-xivo.tar.gz
rm -f status-xivo.tar.gz
pbxstatus

CjeDZXeWUAEt2sr.jpg


[edit] Updated at 11:30 am because of a quirk in the LAN port logic. Just reinstall if you were a pioneer. Updated again on 5/28 to address RAM query bug.
 
Last edited:

ou812

Guru
Joined
Oct 18, 2007
Messages
479
Reaction score
79
The pbxstatus works but before it is displayed it shows.
cat: /etc/pbx/.version: No such file or directory

Asteridex works great. (0.1.4)

IVR setup direction from Nerd Vittles also work great.

Exciting things are happening with this new distro.

Gary.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,159
Reaction score
5,192
The pbxstatus works but before it is displayed it shows.
cat: /etc/pbx/.version: No such file or directory

Asteridex works great. (0.1.4)

IVR setup direction from Nerd Vittles also work great.

Exciting things are happening with this new distro.

Gary.

Exciting indeed. We've barely scratched the surface of what XiVO can do. With @Sylvain Boily as the pilot, this is going to be a fun summer!

Incredible PBX isn't quite ready for prime time so we haven't added a version number to it just yet. If you want to create your own:
Code:
mkdir /etc/pbx
echo 13 > /etc/pbx/.version
 
Last edited:

hecatae

resident hecatae
Joined
Feb 7, 2014
Messages
759
Reaction score
199
yay cloudatcost guide,

though it specifically needs:

non-us removing from /etc/apt/sources.list

and all references to squeeze changing to stable, I thinks that's 's/squeeze/stable/g' though I have just found my linux cli skills lacking
 

Members online

No members online now.

Forum statistics

Threads
25,770
Messages
167,441
Members
19,181
Latest member
ejrubin
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top