Skip to content

Latest commit

 

History

History
94 lines (79 loc) · 2.18 KB

README.md

File metadata and controls

94 lines (79 loc) · 2.18 KB

VitalPBX Click2Call

This is a simple example to demonstrate how to implement click2call feature using VitalPBX API.

How to install it

This section contains the required steps to install this app on your VitalPBX.

  • Download git package
yum install git -y
  • Clone the project
cd /usr/share
git clone https://github.com/VitalPBX/click2call.git click2call
  • Build the project
cd /usr/share/click2call
make install

How to configure it

This section contains the required steps for configuring the application.

  • Go to the project
cd /usr/share/click2call/www
  • Edit the configuration file
nano includes/Config.php

Here, you must define your API Key (Generated on VitalPBX), the extension number from where the calls will be performed, and the list of numbers to be called.

<?php
class Config{
	const API_KEY = 'YOUR_API_KEY';
	const USERNAME = 'John Doe';
	const EXTENSION = 'YOUR_EXTENSION_NUMBER';
	const CUSTOMERS = [
		[
			'name' => 'John Smith',
			'company' => 'Luigi\'s Auto Inc.',
			'email' => '[email protected]',
			'phone' => '*72',
			'image' => 'john.jpg'
		],
		[
			'name' => 'Samantha Carson',
			'company' => 'Golden Nugget Ltd.',
			'email' => '[email protected]',
			'phone' => '*71',
			'image' => 'samantha.jpg'
		],
		[
			'name' => 'Max Anderson',
			'company' => 'Ripple Telecom USA',
			'email' => '[email protected]',
			'phone' => '13055605776',
			'image' => 'max.jpg'
		]
	];
}

If you are using a site with https certificate, it is necessary to change line 3 of the file resClient.php

  • Go to the project
cd /usr/share/click2call/www
  • Edit the resClient.php file
nano includes/resClient.php
public $baseURL = 'https://localhost/api/v2';

Notes

For further information about VitalPBX's API, visit the following link: API Documentation

VitalPBX WebSite | Professional Support | VitalPBX Community