コード例 #1
0
 public function createRegistrationURI($userDetail, $device)
 {
     $number = !empty($userDetail->phoneNumber) ? $userDetail->phoneNumber : $userDetail->extension;
     $formatted = substr($number, 0, 1) == $userDetail->nationalPrefix ? $userDetail->countryCode . substr($number, strlen($userDetail->nationalPrefix)) : $number;
     $unique = substr(uniqid(), -4);
     $this->client->send(OCISchemaGroup::GroupGetRequest14sp7($device['device']->accessDeviceTable['row']['col'][0], $device['device']->accessDeviceTable['row']['col'][2]));
     $response = $this->client->getResponse();
     return "{$formatted}-{$unique}@{$response->defaultDomain}";
 }
コード例 #2
0
 public function getGroup($group)
 {
     $this->migrator->send(OCISchemaGroup::GroupGetRequest14sp7($this->migrator->getDestEnterprise(), $group));
     return $this->migrator->getResponse();
 }
コード例 #3
0
ファイル: Groups.php プロジェクト: lukebeer/broadworks-tardis
<?php

require_once '../Broadworks_OCI-P/common.php';
Factory::getOCISchemaServiceProvider();
Factory::getOCISchemaGroup();
if (!isset($argv[1])) {
    die("Provide service provider id as second argument.");
}
$mongo = new MongoClient('mongodb://pillock.net:27017');
$collection = $mongo->selectDB($argv[1])->selectCollection('GroupGetRequest14sp7');
$client = CoreFactory::getOCIClient('http://bsews1.ipt.intechnology.co.uk/webservice/services/ProvisioningService');
$client->login('luke_script', 'waiodjjAWDOAWdlaiojhawiopjh4');
$client->send(OCISchemaGroup::GroupGetListInServiceProviderRequest($argv[1]));
if ($client->getResponse()) {
    foreach ($client->getResponse()->groupTable['row'] as $row) {
        $client->send(OCISchemaGroup::GroupGetRequest14sp7($argv[1], $row['col'][0]));
        $collection->insert([$row['col'][0] => $client->getResponse()]);
    }
}