Tuesday, April 19, 2011

Asterisk OpenERP

This module has 2 main features. The first one : it adds a dial button in the partner address view so that users can directly dial a phone number through Asterisk. This feature is usually known as click2dial. Here is how it works :

In OpenERP, the user clicks on the dial button next to a phone number field in the Partner address view.
Asterisk makes the user's phone ring.
The user answers his own phone (if he doesn't, the process stops here).
Asterisk dials the phone number found in OpenERP in place of the user.
If the remote party answers, the user can talk to his correspondent.

The second main feature is : it adds the ability to show the name of the calling party on incoming phone calls if the presented phone number is present in the Partner addresses of OpenERP. Here is how it works :

On incoming phone calls, the Asterisk dialplan executes an AGI get_cid_name_timeout.sh.
The get_cid_name_timeout.sh script calls the get_cid_name.py script with a short timeout.
The get_cid_name.py script will make an XML-RPC request on the OpenERP server to try to find the name of the person corresponding to the phone number presented by the calling party.
If it finds the name, it is add as CallerID name to the call, so as to be presented on the IP phone of the user.

No comments:

Post a Comment