Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated using 4PSA automated script

...

Create ConferenceInvite PhoneCalls - Invites any number, public or local, to a conference call.

...

In order to be able to use the Click2Conference App, you need a webserver with PHP 5.2.14 or higher installed.

STEP 1:   Download the files.

Download the archive, extract the files, and copy them to a directory that can be accessed over the Web.

...

Groups example.

The drop-down menu lists menu lists all the groups set up earlier. Choose one group and click on the Invite group button. This invites all the phone numbers belonging to that group to a conference call.

...

Suppose you have added a custom group called group called Office including all your colleagues. You want to call all of them to have a brainstorming session on the phone. All you need to do is select the Office group from the drop-down and the VoipNow server calls all of them. Don't forget to include your own number in the list, so that you can participate in the call as well.

...

To invite the group to the conference, the App uses the Unified API   Create ConferenceInvite PhoneCalls request. For each number in the group, the App makes a request as the one below. It uses the extension defined in the config variable VN_CONFERENCE_EXT as extension and source of the call as in the example below. All fields are fictitious.

...

The code that makes the request can be found in <Path_To_CallMeButton>/interface/plib/request.php and and is described below:

Code Block
php
php
// Fetch token
$token = getToken();
$headers = array(
   'Content-type' => 'application/json',
   'Authorization' => $token
);
 
// Initialize the cURL request
$reqUrl = 'https://'.$config['VN_SERVER_IP'].'/uapi/phoneCalls/@me/conferenceInvite';
$request = new cURLRequest();
$request->setMethod(cURLRequest::METHOD_POST);
$request->setHeaders($headers); 
    
$jsonRequest = array(
	'extension' => $config['VN_CONFERENCE_EXT'],				    // Conference extension
	'phoneCallView' => array(
		array('source' => array($config['VN_CONFERENCE_EXT']),	   	// Conference extension
	          'destination' => $phoneNumber                 		// Phone number setup in a group
     )
);
$request->setBody(json_encode($jsonRequest));

// Receive the response in JSON format
$response = $request->sendRequest($reqUrl);									     

The source and  and extension must be set to the number of the conference extension.

...

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.