Code Monkey home page Code Monkey logo

broadworks-ocip's People

Contributors

cyclingzealot avatar lukebeer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

broadworks-ocip's Issues

Missing file Console/Table.php

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

Add tcp/ip socket driver to OCS port 2208 instead of SOAP encapsulation

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.

xsi:nil self-closing elements not possible

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 ^_^

JobControl calls non-existant common.php

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\_\_)));

Which login?

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

PHP Fatal error: Call to a member function getName() on null in

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

How to access/get serviceProviderId after login

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.