Anda di halaman 1dari 3

Asterisk360

This module gives for the first time OpenERP users a far more efficient, personal and successful customer interaction on the phone. OpenERP pops-up with the customer history as well as the contact and company name as soon as an incoming call is registered, consequently even before the conversation starts you are already in the picture. For a more detailed description on the abilities of Asterisk360 and its use cases read this article in our news section. The module can be downloaded directly from the OpenERP apps section.

Architecture

Module Installation (based on Ubuntu)


This module assumes you have knowledge on how to set up Asterisk SIP accounts and to allow connections to the AMI / AGI interfaces (there are some sample configuration files here). Also that you have basic linux file permission / configuration knowledge. It also assumes some familiarity with installing and configuring modules for OpenERP in general.

Install and configure the asterisk360 module in OpenERP


The latest Akretion asterisk_click2dial module can be downloaded using bzr branch lp:openerp-asterisk-connector (as of writing revision:33)

The latest ValueDecision asterisk360 module can be downloaded using bzr branch lp:openerpasterisk360 Ensure that asterisk_click2dial and asterisk360 modules are visible in OpenERP modules (in an addons directory) Install the asterisk360 module through the administration account on your database from OpenERP Modules - it will automatically load dependencies. Configure an Asterisk Server under Settings -> Configuration -> Asterisk Servers (Web Socket Server is of the form ws://<server>:<port> - pointing to the server running the Screen Pop Server component (see Daemon parts below)) Configure the Telephony tab of a user under Settings -> Users. For screen pop to work, the internal number must be set to the extension which is configured on asterisk and the Screen Pop check box must be set. (Some users may not wish to have screen pop enabled.) There needs to be a user created on OpenERP which has limited security to query the server for the partners / customers and to allow CRM phone call entry and updates - It is this user id and password which will be used in all of the configuration files.

Installation of asterisk360 Daemon/Asterisk parts


The Daemons can be run on a different server to the asterisk server / openerp server if necessary - just ensure that the configuration files reflect this. Install dependencies sudo apt-get install python-devel python-setuptools sudo easy_install autobahn wget http://py-asterisk.googlecode.com/files/py-asterisk-0.2.tar.bz2 bunzip2 py-asterisk-0.2.tar.bz2 tar -xvf py-asterisk-0.2.tar cd py-asterisk-0.2 sudo python setup.py install Install the Daemons This installs the call_manager and screen_pop_server and copies over default configuration files to the correct directories. (Examples of configurations are in the proejct tree) Check the xmlrpc_timeout.py and ensure it is configured for the correct version of python you have. This is configured currently for python version 2.7 NOTE: if you have python 2.6 you must: 1) Uncomment the code marked as python 2.6 2) Comment out the code marked as python 2.7 cd <addon_dir>/asterisk360/daemons sudo python setup.py install Setup the Log Directory sudo mkdir /var/log/openerp sudo chown <openerpuser>:<openerpuser> /var/log/openerp Configuration of Py-Asterisk sudo cp /etc/asterisk/py-asterisk.conf.default /etc/asterisk/py-asterisk.conf vim /etc/asterisk/py-asterisk.conf

Running the Daemons

The daemons are all copied to /usr/local/bin on running the setup.py install. They can be run from their directories or setup as normal ubuntu services (beyond the scope of this documentation) /usr/local/bin/screen_pop_server - runs the web socket server : The screen pop server is a WAMP based Web Socket Server build on the python Autobahn / Twistd framework. It runs as a separate process and manages connections from the OpenERP web application as a user logs in. /usr/local/bin/call_manager - runs the call manager (must be started after asterisk in this version) : The call manager is an optional Server component which logs in to the asterisk server and receives call events. It then automatically updates inbound calls when they are hung up by either party. It is optional because from the inbound screen pop it is also possible to mark the call as 'Held' in OpenERP and it is probably good practice to do it from here as a habit. /usr/local/bin/get_cid_name_timeout.sh - called by asterisk, placed in a dialplan as an AGI extension call

Asterisk AMI / AGI Configuration


click2dial set up in the file /etc/asterisk/manager.d/click2dial.conf callevent set up in the file /etc/asterisk/manager.d/callevent.conf AGI Script for Asterisk to call Copy /usr/local/bin/get_cid_name_timeout.sh.example to /usr/local/bin/get_cid_name_timeout.sh set the correct / required configuration in the get_cid_name_timeout.sh file.

Anda mungkin juga menyukai