Self develop CRM integration

Discussions about development of VICIDIAL and astGUIclient

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Self develop CRM integration

Postby h0041970 » Tue Jan 24, 2017 1:29 am

I am new to VICIdial.

I have a self develop CRM by PHP and want to integration with VICIdial.

My idea is when user login to CRM, it login to VICIdiall automatically.

Then CRM can control VICIdial by API, such as click to dial, hang up, transfer call etc.

When the inbound call / outbound call connected to the agent, the CRM can popup the related information (URL) automatically.

To call VICIdial API by CRM is OK.

My question is, how CRM get the event (e.g. call is connected, call is hang up, agent status) in real time?
h0041970
 
Posts: 1
Joined: Tue Jan 24, 2017 1:20 am

Re: Self develop CRM integration

Postby mflorell » Tue Jan 24, 2017 6:47 am

mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Self develop CRM integration

Postby Vince-0 » Wed Jan 25, 2017 2:35 am

Vince-0
 
Posts: 272
Joined: Fri Mar 02, 2012 4:27 pm
Location: South Africa

Re: Self develop CRM integration

Postby GordeyUA » Fri Feb 24, 2017 6:49 pm

Hello.

I try to use example described at http://vicidial.org/docs/CRM_EXAMPLE_SKIN.txt
Everything works fine except one problem. When autodialed call incomes, "CRM" page opens in new browser window instead of iframe.
I double checked everything and can't get rid of this issue. Campain's "Web Form Target" is definitely same as iframe id and name.

Checked on IE 11 and Firefox 51.0.1.
VICIDIAL VERSION: 2.12-560a BUILD: 160617-1427

Any suggestion what I'm missing?
GordeyUA
 
Posts: 3
Joined: Fri Feb 24, 2017 6:35 pm

Re: Self develop CRM integration

Postby williamconley » Fri Feb 24, 2017 7:16 pm

Thank you for posting your Vicidial Version with Build. Please also remember to always post your Installer with Full Version (ie: Vicibox 7.x.x?).

You should probably show your content and state more clearly your problem. Click by click. Including configuration options.

Did you try the example skin verbatim before making modifications to be sure your goal is attainable with this example?

Do you expect the CRM to appear in the Script tab of Vicidial?

Note that if Vicidial is in an iframe of the CRM, you can not reload the CRM page as it would dump the Vicidial agent screen. A clear description (screen shot perhaps?) of the situation detailing which page/iframe has what url in it would be useful.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Self develop CRM integration

Postby GordeyUA » Wed Mar 01, 2017 10:28 am

Hello William.

Thanks for your answer. Sorry for late reply.

Installer version: ViciBox v.7.0.3-160505

I'm trying to work with crm_example itself. front.php and crm_example.php stay unchanged, crm_settings.php modified as described in comments:

Code: Select all
# The full URL to the Vicidial Agent Screen, (usually something like "http://server/agc/vicidial.php")
$agent_screen_url = 'http://XX.XX.XX.XX/agc/vicidial.php';

# The full URL to the Vicidial Agent API, (usually something like "http://server/agc/api.php")
$api_url = 'http://XX.XX.XX.XX/agc/api.php';

# The user and pass of a level 8 user that has API and modify lead permissions
$api_user = 'user';
$api_pass = 'password';

(instead of XX.XX.XX.XX entered IP address of my Vicidial server)

All three php files copied to web server.
When I open front.php in browser, almost all works as expected.
After I enter login information, Vicidial Agent connecting with server and I receive call from server on my softphone.
After I click link "Start taking calls" in CRM page, Vicidial Agent changes state and Vicidial server starts to make outgoing calls from selected campaign.
After client answers a call, CRM page with client information is opened. But instead opening in crmagent frame of CRM front page, it opens in new browser tab.

If my description is not clear, please ask and I provide you with additional information or screenshot.
GordeyUA
 
Posts: 3
Joined: Fri Feb 24, 2017 6:35 pm

Re: Self develop CRM integration

Postby GordeyUA » Wed Mar 01, 2017 10:50 am

Current CRM example configuration:
CRM example files (front.php, crm_example.php and crm_settings.php) lives on web server separate from vicidial server
Main CRM file (front.php) simple and contains two iframes: first src is url to Vicidial agent, second url to crm_example.php. Id and name of second iframe is crmagent.
Vicidial campaign Web Form is url to crm_example.php, Web Form Target is crmagent and Get Call Launch is WEBFORM.
GordeyUA
 
Posts: 3
Joined: Fri Feb 24, 2017 6:35 pm

Re: Self develop CRM integration

Postby williamconley » Thu Mar 02, 2017 4:45 pm

If you leave the newly popped up CRM page with the client info there after completing the call, and get a new client, does it populate the same page or pop a whole new page again?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Development

Who is online

Users browsing this forum: No registered users and 23 guests