GV – Click to call is bound to make an impact in your business

GPBX Services delivers complete inbound voice services to customers around the world. As an essential component of our industry-leading offering, GPBX provides a robust Application Program Interface (API) that enables our customers to fully integrate the ordering and provisioning of virtual numbers within real-time applications, making these processes completely transparent to third parties CRM Integration. We provide a solution like API for Outbound calling, using this you can make an outbound call.

The GPBX API notifications is available free of charge and no licensing costs are applicable. In addition, no setup fees are payable to GPBX for services purchased via this API, adding to the attractiveness and flexibility of this model from a business perspective.

GPBX a Click-to-Call feature (API Notifications) which are easily integrate with any CRM (Customer Relationship Manager) or use GV-Click2Call plugin for website Integration .

Click-to-Call

Click-to-call allows users to right away connect in real-time, with just a simple click. Click-to-call allows users to utilize every important second and eliminates wasted time.

Include given JavaScript file to access all Outbound calling events in your panel. This JavaScript file will be imported into header or footer of your panel. Few Steps to follow to make an outbound call are:

The following actions can be performed with the Outbound calling solution.
  • Login at your panel
  • Make an Outbound Calls
  • Logout from your panel

To implement all calling function in any Agent Panel follows these steps:-

Firstly you include given JavaScript file to access all Outbound calling events in your panel. This JavaScript file import into header or footer of your panel.

	   http://scripts.freegpbx.com/custom.js
	   http://scripts.freegpbx.com/socket.io.js

All function should be call at on page load.
		$(document).ready(function()
		{ 
				// code here…
		});

1) Create object:

Create an object of main JavaScript Class ‘astcalling’ with parameter (extension, session, userfunction) to access all function. Extension number and session are main parameter to execute Outbound Calling events. All method should be call with “astcall” (object variable of ‘astcalling’ JavaScript Class).

var astcall =   astcalling(‘extension’, ’session’, userfunction);
...

Arguments
Parameter Description
extension(mandatory) User extension number which are register on X-lite. User must login with this extension number. This extensions numbers are mandatory for Outbound calling. OR also provide virtual number as extension.
session(mandatory) User extension number which are register on X-lite. User must login with this extension number. This extensions numbers are mandatory for Outbound calling. OR also provide virtual number as extension.
userfunction(optional) Userfunction are the user define function which are used to get all detail of agent with caller like agent status, phone status, DID number, Caller ID , Campaign ID and Extension etc.

2) Login at your panel:

Login function are used to login into your panel. Login function can be used at any event like “onload” event or “click” event in your panel. Login function only used with object of “astcalling” class.

           astcall.userlogin();
...

3) Make an Outbound Call:

To make an outbound call from your Panel to any CRM Panel, call “makecall(phone, callerid, account, id_campaign, id_lead)” function. MakeCall should be call at click events like button and anchor tag etc.

		
		 astcall. makecall(‘911234567890’, ‘333’, ‘test’, ‘ ’, ‘ ’);
 

Arguments
Parameter Description
phone(to) This is the customer’s phone number or sip endpoints to call. Phone Number must be prefixed with country code but without the + sign. Phone Number is mandatory to call MakeCall event.
callerid(from) The phone number to be used as the caller id (with the country code). CallerID number is mandatory to call MakeCall event.
account(optional) This is the billing account username to perform all billing activity according it.
id_campaign(optional) Current Campaign id for outbound call. If you don’t have campaign id then leave it blank.
id_lead (optional) Current Lead id for outbound call. If you don’t have lead id then leave it blank

2) Logout from your panel:

To logout from your Panel, call “logout ()” function. If user is not in logout mode then all events deactivated temporarily..

           astcall.logout() ;
...