2017 © Pedro Peláez
 

library vicidial-php-api-wrapper

This is a wrapper to use Vicidial's API easily with PHP

image

nerthux/vicidial-php-api-wrapper

This is a wrapper to use Vicidial's API easily with PHP

  • Tuesday, October 24, 2017
  • by nerthux
  • Repository
  • 5 Watchers
  • 12 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Vicidial API PHP WRAPPER

DISCLAIMER: VICIdial is a registered trademark of the Vicidial Group which i am not related in anyway., (*1)

VICIDIAL is a software suite that is designed to interact with the Asterisk Open-Source PBX Phone system to act as a complete inbound/outbound contact center suite with inbound email support as well., (*2)

http://www.vicidial.org/vicidial.php, (*3)

Vicidial has an AGENT API and NON AGENT API, this classes are intended to make it easier to use in PHP, (*4)

  • http://vicidial.org/docs/NON-AGENT_API.txt
  • http://vicidial.org/docs/AGENT_API.txt

How to use it

Example 1: Update fields on agent screen

require 'vicidialAgentAPI.php';

$fields['first_name'] = "John";
$fields['last_name'] = "Doe";
$fields['address1'] = "123 Fake St";

try {
        $vicidialAPI = new VicidialAgentAPI("127.0.0.1", "VicidialAPI", "gabriel", "Sup3rP4ss",true);
        $vicidialAPI->update_fields("gabriel", $fields);
} catch (Exception $e) {
            echo 'Exception: ',  $e->getMessage(), "\n";
}

Example 2: Hangup Call, Dispo it and Pause Agent

require 'vicidialAgentAPI.php';

try {
        $vicidialAPI = new VicidialAgentAPI("127.0.0.1", "VicidialAPI", "gabriel", "Sup3rP4ss",true);
        $vicidialAPI->pause("gabriel", "PAUSE");
        $vicidialAPI->hangup("gabriel");
        $vicidialAPI->dispo("gabriel", "SALE");
        $vicidialAPI->pause_code("gabriel", "BREAK");

} catch (Exception $e) {
            echo 'Exception: ',  $e->getMessage(), "\n";
}

TODO

This is a work in progress, still working on finish the Agent API, after that i will add a NON Agent API Class, (*5)

The Versions

24/10 2017

dev-master

9999999-dev

This is a wrapper to use Vicidial's API easily with PHP

  Sources   Download

AGPL V2

The Requires

  • php >=5.3.0

 

by Gabriel Covarrubias