lukebeer / broadworks-ocip Goto Github PK
View Code? Open in Web Editor NEWPHP Framework for interacting with the Broadworks OCI Provisioning API
License: GNU General Public License v2.0
PHP Framework for interacting with the Broadworks OCI Provisioning API
License: GNU General Public License v2.0
Hi
Think you are Missing the file Console/Table.php
require_once(): Failed opening required 'Console/Table.php'
Builder/Types/TableType.php on line 116
Cheers
Hi Luke ;-)
Any chance you can update the schema to Latest Release or at least R20.
Cheers mate.
Rav
in function getResponse(), parsing a response fails when the response contains a new line.
Currently commands are encapsulated in SOAP envelopes and sent over HTTP, one connection per request.
This enhancement provides a driver that creates a streaming tcp/ip socket to allow multiple commands sent over the same connection thus increasing performance when many hundred or thousand requests are required.
This should dramatically speed up the time taken for mass data crawling such as enterprise reports or user provisioning.
Issue raised via email in quote block below -
We have come up across a strange one however, we cannot generate a “xsi:nil” value in the API requests.
<BroadsoftDocument protocol="OCI" xmlns="C" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <userId xmlns="">marc.decorny</userId> <command xsi:type="UserModifyRequest17sp4" xmlns=""> <userId>xxxxxxx</userId> <phoneNumber>xxxxxxx</phoneNumber> <extension>202</extension><sipAliasList xsi:nil="true"/> <endpoint xsi:nil="true"/> </command> </BroadsoftDocument>
We have tried variants of the below, but keep on getting errors
$request->endptoint = new SimpleContent("xsi:nil"); $request->endptoint->setElementName('endpoint'); $request->endptoint = null ; $request->endptoint->setElementName('endpoint');But none seem to work.
Is there a trick that we are missing?
Many thanks
marc
Well spotted.
https://github.com/lukebeer/broadworks-ocip/blob/v1.0.0/core/OCIBuilder.php#L47 solved this in v1 but it's a bit of a hack. I'd planned to add methods that would handle element attributes but only got as far as declaring a variable named $attributes in the type trait ^_^
The documentation references a common.php but I'm told that this file is no longer needed.
The library is still trying to pull in a common.php in the file src/BroadworksOCIP/utils/JobControl.php
.
Please can you bring JobControl.php to version 2+.
require_once str_replace('utils', 'common.php', realpath(dirname(\_\_FILE\_\_)));
Hi
Within the responce of UserGetResponse is does not include the following
Start Choice [1]
AccessDeviceMultipleContactEndpointRead [0..1]
TrunkAddressingMultipleContactRead [0..1]
End Choice
cheers
Hi Luke,
First of all, awesome library!
I was hoping you could help me kickstart my project. We are using VoIP from Broadsoft at our company and I was wondering if it would be possible to make a kind of "callboard" which shows all current information, like who is currently on a call, how many missed calls we had today, things like that...
<?php
require_once 'vendor/autoload.php';
// Use the ComplexType required for this example.
use Broadworks_OCIP\api\Rel_17_sp4_1_197_OCISchemaAS\OCISchemaUser\UserServiceGetAssignmentListRequest;
// Create a Client and login. CoreFactory also has getSOAPClient()
$client = Broadworks_OCIP\CoreFactory::getTCPClient('ocip.example.com'); // Which URL??
$client->login('user', 'pass'); // <-- login of what??
The problem I'm facing is the login, since I do not know where I have to login to? Is this a broadsoft login, and if so, how do I get a login? To what URL I have to communicate, since we have no such ocip-example.com URL we know of.
I hope you can help me out and get this project starting...
Thanks in advance.
Cheers,
TK
Hi
When you try and do a XXXXGetListRequest for any service with a department it fails with the following
PHP Fatal error: Call to a member function getName() on null in /var/www/html/vendor/lukebeer/broadworks-ocip/src/BroadworksOCIP/Serializer/XMLSerializer.php on line 60
any ideas?
cheers
After login I like to get the serviceProviderID because it is needed for some/many request.
I can find the spid after login with $client->getResponse(), but it is protected so i cannot get the value.
How can I get the serviceproviderid after login ?
Code I use is:
$client = Factory::getSOAPClient('serveradres);
$client->login('username','password');
$connectinfo = $client->getResponse();
In the above code I removed the server/username/password
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.