Page 1 of 1

Sugar CRM click to dial plugin

PostPosted: Thu Apr 21, 2011 7:17 am
by dspaan
I'm thinking of installing this:

http://www.sugarforge.org/projects/yaai/


But i'm not sure if it will impact the functionality of ViciDial. Can someone take a quick look at this and give me an opinion:

http://dl.sugarforge.org/yaai/yaai/1.1. ... ration.pdf

PostPosted: Thu Apr 21, 2011 5:31 pm
by williamconley
doesn't look like it'll break anything.

but if you get a list of files that will be CHANGED on the vicidial server ... that would be helpful.

PostPosted: Fri Apr 22, 2011 9:12 am
by dspaan
No idea how to get a list of changed files. But in the manual it talks about these scripts:

pre_install.php
This script is called during installation of the YAAI module. The tasks performed during
installation are:
• creation of table asterisk_log in database
• installation of AsteriskJS.php as an „after_ui_frame“ hook in SugarCRM.
This causes AsteriskJS.php (and in turn, dialin.js resp dialout.js) to be included on all pages
rendered by SugarCRM's GUI.

AsteriskJS.php
This script is installed as „logic hook“ and provides the magic® to enhance all pages in the GUIwith YAAI's functionality. Depending on users settings, it conditionally includes dialin.js and/or
dialout.js.
dialin.js
This script is responsible for monitoring calls. When included, it uses AJAX calls (Whoa! Did I already mention we use AJAX?) to callListener.php (which in turn peeks into asterisk_log) to poll (and display) the current state of Asterisk's call activity. Note this script is responsible for both
incoming and outgoing calls.

dialout.js
This script – when included – uses jQuery to dynamically modify the delivered HTML pages to
include an dialout button for phone number fields. callCreate.php is invoked to eventually make a call.

callListener.php
This is the AJAX listener for dialin.js/dialout.js. It retrieves the current call state from YAAI's table
asterisk_log and returns the result as JSON encoded data.

callCreate.php
This script is invoked to initiate an outgoing call. It simply opens a socket connection to Asterisk Manager and sends an „Originate“ action to place an outgoing call.

PostPosted: Fri Apr 22, 2011 9:19 am
by williamconley
My point exactly. LOL

If it never changes any files ... the odds on breaking any functionality are fairly low. 8)

But that's the "quick directions", when you do a real install ... you'll see if it requires changing any files for it to actually Work. they did mention it was designed for THEM and you may need to modify the installation to make it happen