Quantcast
Channel: BroadSoft Xtended Developers Program.
Viewing all 298 articles
Browse latest View live

Is it possible to rmove MACAddress from GroupAccessDevice


What are the steps necessary to set up a lab environment?

$
0
0
We've got a customer who uses our software to provision 5ESS switches and they'd
like us to extend it so that they can use it to provision in Broadworks also.
We'd like a lab environment to do that development.  I've watched the "How to do
BroadWorks in VMWare" video created by Dag Peak and it all seemed reasonably
clear to me, except for the part on how to get the Broadworks application
installation binaries.  What do I need to do to get those?  (Our customer
already has a Broadworks installation.  Do I need to ask them for the binaries?)

Retrieving more than 1000 subscriptions

$
0
0

I am attempting to retrieve a list of subscriptions for a user that has many subscriptions to many users and I cannot seem to retrieve more than 1000 at once.  Is there any way to supply a start index or somethign else to get all active subscriptions?

calling SystemSoftwareVersionGetRequest,SystemLanguageGetL not returning anything.Failed response,working earlier using sandbox?

$
0
0

calling SystemSoftwareVersionGetRequest,SystemLanguageGetListRequest, SystemTimeZoneGetListRequest getting error failed response,It was working few days back using my sandbox login?..Please let me know Any calls deprecated after 20 release?..Or any other reason?..I am seeing connection time out issue...i tried login again..After successful login gain it is getting time out on SystemSoftwareVersionGetRequest Service call...My fire wall is tuned off...i am getting the below warning some time...but i think this is not causing any problem...

namespace warning : xmlns: URI C is not absolute

<BroadsoftDocument protocol="OCI" xmlns="C" xmlns:xsi="http://www.w3.org/2001/XM

VoiceMessagingMessages API returns error

$
0
0

VoiceMessagingMessages/ GET request to retrieve full individual voicemail returns the following error response:

<?xml version="1.0" encoding="UTF-8"?>

<ErrorInfo xmlns="http://schema.broadsoft.com/xsi"><summary>Internal server error</summary><summaryEnglish>Internal server error</summaryEnglish><errorCode>1111</errorCode></ErrorInfo>


VoiceMessagingMessages GET request to retrieve all voicemail works fine.
Is this a known issue? Btw, I am trying this on sandbox.


Thanks,

Sujith

Anyone with experience with XSI Events... I'm looking for to pay someone hourly for some consulting.

Not getting events after subscribe for httpcontact method...

$
0
0

I was having this issue and I found the solution.

Make sure you are returning status code 200.  I was returning 201 which is what our rest api did for "added". 

Hope this helps someone. 

XSI Events, it's xml only right?

$
0
0

I remember reading at some point that XSI Events is XML Only.... But, XSI Actions supports json.

 I couldn't remember if this was just for the subscribe response or for all events and can't find that in the documentation anymore surprisingly. 


XSi Event Subscription Example

$
0
0

Hello,

im trying out with som XSi-events but all im getting is invalid xml,

but for what i can see my xml looks just like the one in  4.5.22 in BW-XSIInterfaceSpec:

<?xml version="1.0" encoding="UTF-8"?>
<Subscription xmlns="http://schema.broadsoft.com/xsi">
<event>Advanced Call</event>
<expires>3600</expires>
<httpContact>
<uri>172.16.25.114:8800/MyApplication/eventConsumer</uri>
</httpContact>
<applicationId>CommPilotApplication</applicationId>
</Subscription>

curl -L --insecure -X POST -d @sub.xml -u "sebastian@<domain>:<password>" "https://webapp02.<domain>/com.broadsoft.xsi-events/v2.0/enterprise/<enterprise>/group/demo"

sub.xml: 

<?xml version="1.0" encoding="UTF-8"?>
<Subscription xmlns="http://schema.broadsoft.com/xsi">
<event>Basic Call</event>
<expires>60</expires>
<httpContact>
<uri>[ip]:8002</uri>
</httpContact>
<applicationId>AutoRefer</applicationId>
</Subscription>

 

What Im I missing in the xml? Or is something else wrong?

Br

Sebastian Thörn 

LabeledMediaFileResource definition

$
0
0

Hello, im trying to select a greeting file for a user, but all im getting is
File not found, errorcode 6513

Tags looks like this:

<description>dnd_lunch.wav</description>
<mediaType>WAV</mediaType>
<sourceFileName>dnd_lunch.wav</sourceFileName>

tried lots of different combinations of filename/description's

Br Sebastian 

CTI problem: Getting 401 UnAuthorized when calling from another web application

$
0
0

I am making a cti for Broadsoft with ZenDesk. The commands to BW are made from an app within ZenDesk.

The first command I send, that is a GET for getName works fine. But the POST  to channel registration fails with 401 UnAuthorized answer from XSI.

Below are some more information(I wanted to attach files but don't know how to do that):

code snippet for the POST command (I just copied and pasted from the Broadsoft Chrome extension sample. But I didn't make the complete code yet because am getting error in the very begginning):

********************** code snipet ****************************************************  

 connectChannel: function(){

      console.log("connectChannel called");

      console.log("sending add channel request");

      var state = 'connecting';

      var mainXhr = new XMLHttpRequest();

      var index = 0;

      var responseBuffer = '';

      var url = this.credentials['url'] + '/com.broadsoft.async/com.broadsoft.xsi-events/v2.0/channel';

      mainXhr.open('POST', url, true);

      mainXhr.onreadystatechange = function(){

        console.log("mainXhr.onreadystatechange called");

        var chunk = mainXhr.responseText.substring(index,mainXhr.responseText.length);

        var index = mainXhr.responseText.length;

        console.log("Chunk is: " + chunk); 

      };

      mainXhr.onloadend = function(){

        console.log("mainXhr.onloadend called");

      };

      var request = this.variables['XML_HEADER'];

      request = request + '<Channel xmlns="http://schema.broadsoft.com/xsi">';

      request = request + '<channelSetId>' + this.variables['channelSetId'] + '</channelSetId>';

      request = request + '<priority>1</priority>';

      request = request + '<weight>100</weight>';

      request = request + '<expires>3600</expires>';

      request = request + '<applicationId>broadworks4zd</applicationId>';

      request = request + '</Channel>';

      console.log("getAuthorizationHeader that will be sent is " + this.getAuthorizationHeader());

      mainXhr.setRequestHeader('Authorization', this.getAuthorizationHeader());

      mainXhr.send(request);

      console.log("body is: " + request);

    },

    onChannelConnected: function(){

      console.log("onChannelConnected called");

    }

**************************************************************************  

Below is the XML sent in the body. 

******************* body *******************************************************  

 <?xml version="1.0" encoding="UTF-8"?><Channel xmlns="http://schema.broadsoft.com/xsi"><channelSetId>broadworks4zendesk</channelSetId><priority>1</priority><weight>100</weight><expires>3600</expires><applicationId>broadworks4zd</applicationId></Channel>

**************************************************************************  

Below is the error I got from Chrome dev tools console as well:

**************************************************************************  

OPTIONS http://xsp2.pbxl.net/com.broadsoft.async/com.broadsoft.xsi-events/v2.0/channel No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://pbxltest.zendesk.com' is therefore not allowed access.

XMLHttpRequest cannot load http://xsp2.pbxl.net/com.broadsoft.async/com.broadsoft.xsi-events/v2.0/channel. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://pbxltest.zendesk.com' is therefore not allowed access. 

**************************************************************************  

 And here is the HTTP OPTIONS command(from wireshark):

*********************OPTIONS command*****************************************************  

*E[Q@rZ&PIl`EPoOPTIONS /com.broadsoft.async/com.broadsoft.xsi-events/v2.0/channel HTTP/1.1

Host: xsp2.pbxl.net

Connection: keep-alive

Access-Control-Request-Method: POST

Origin: https://pbxltest.zendesk.com

User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36

Access-Control-Request-Headers: authorization, content-type

Accept: */*

Accept-Encoding: gzip,deflate,sdch

Accept-Language: en-US,en;q=0.8 

 ************************************************************************** 

Another info:

If I use the curl command below, it works fine:

curl -X POST -d @channelrequest.xml -v -u BWS_CTI_Test.user1@pbxl.net:<my password> http://xsp2.pbxl.net/com.broadsoft.async/com.broadsoft.xsi-events/v2.0/channel 

Here is the answer for the curl command:

****************************Answer**********************************************  

< HTTP/1.1 200 OK

< Date: Fri, 21 Mar 2014 03:17:37 GMT

* Server Apache-Coyote/1.1 is not blacklisted

< Server: Apache-Coyote/1.1

< Expires: Thu, 01 Jan 1970 00:00:00 GMT

< Content-Language: en-US

< Cache-Control: no-store

< Pragma: no-cache

< Content-Type: application/xml;charset=UTF-8

< Set-Cookie: JSESSIONID=89A04BEAAF1813C430514B96F301E516; Path=/com.broadsoft.x

si-events

< Transfer-Encoding: chunked

<

<?xml version="1.0" encoding="UTF-8"?>

<Channel xmlns="http://schema.broadsoft.com/xsi"><channelId>6a14fd6c-7ed1-4462-9

b3a-02ee2b101b96</channelId><expires>3600</expires></Channel>* Connection #0 to

host xsp2.pbxl.net left intact 

**************************************************************************  

And the XML file sent is this:

*****************************XML file *********************************************  

<?xml version="1.0" encoding="UTF-8"?>

<Channel xmlns="http://schema.broadsoft.com/xsi">

    <channelSetId>broadworks4zendesk</channelSetId>

    <priority>1</priority>

    <weight>100</weight>

    <expires>3600</expires>

    <applicationId>broadworks4zendesk</applicationId>

    </Channel> 

************************************************************************** 

Could you, please, help me with this issue? Without solving it I can't go ahead with the project and, as all it projects, it is for yesterday!

Thank you!

Joao Paulo 

Defect Report: GetAgentStateRequest Request Often Returns Call Center UserIDs Unqualified...

$
0
0

Dear Team,

Please accept the following CTI Interface defect:

GetAgentStateRequest Request Often Returns Call Center UserIDs Unqualified

When the "GetAgentStateRequest" CTI Interface request is used to obtain an ACD agent's latest call center join status, the call centre UserIDs specified by the request response are often given without a qualified domain name.

This is incorrect, as the CTI Interface specifies BroadWorks UserID parameters in all other request responses & CTI events using the proper unique fully qualified domain format.

This problem seems to most often occur when the platform's system level domain is utilised for extension users & service configuration entities created at the Enterprise or Enterprise Group levels.

Specifically the incorrectly formatted call centre UserID information is given by the "serviceUserId" sub-parameter of each "callCenterDetails" element (a XSI:CXSICallCenterDetails complex type istelf), which itself is wrapped by the "callCenterList" element, which is itself contained within the request response's "CallCenter" parameter (a XSI:CXSICallCenter complex type).

For example:

Application To BroadWorks:

<?xml version='1.0' encoding='UTF-8'?>
<xsp:request xmlns:xsp="
http://schema.broadsoft.com/XspXMLInterface" version="17.0">
<requestId>89</requestId>
<sessionId>8076</sessionId>
<credentials>XXX</credentials>
<xsp:payload>
<cti:GetAgentStateRequest xmlns:cti="
http://schema.broadsoft.com/CTI">
<cti:uri>/com.broadsoft.xsi-actions/v2.0/user/%subscriberid%/services/callcenter</cti:uri>
<cti:method>GET</cti:method>
<cti:version>17.sp4</cti:version>
<cti:params xmlns:xsi="
http://schema.broadsoft.com/xsi">
<xsi:subscriberid>UserAgent001@platform.com</xsi:subscriberid>
</cti:params>
<cti:payload>
<xsi:CallCenter xmlns:xsi="
http://schema.broadsoft.com/xsi" xmlns:xsil="http://www.w3.org/2001/XMLSchema-instance">
</xsi:CallCenter>
</cti:payload>
</cti:GetAgentStateRequest>
</xsp:payload>
</xsp:request>


BroadWorks To Application:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:response xmlns:xsp="
http://schema.broadsoft.com/XspXMLInterface" version="17.0">
<requestId>89</requestId>
<sessionId>8076</sessionId>
<statusCode>200</statusCode>
<reason>OK</reason>
<xsp:payload>
<CallCenter xmlns="
http://schema.broadsoft.com/xsi">
<agentACDState>Available</agentACDState><useDefaultGuardTimer>true</useDefaultGuardTimer>
<enableGuardTimer>false</enableGuardTimer>
<guardTimerSeconds>5</guardTimerSeconds>
<useSystemDefaultUnavailableSettings>true</useSystemDefaultUnavailableSettings>
<forceAgentUnavailableOnDNDActivation>false</forceAgentUnavailableOnDNDActivation>
<forceUnavailableOnPersonalCalls>false</forceUnavailableOnPersonalCalls>
<forceAgentUnavailableOnBouncedCallLimit>false</forceAgentUnavailableOnBouncedCallLimit>
<numberConsecutiveBouncedCallsToForceAgentUnavailable>3</numberConsecutiveBouncedCallsToForceAgentUnavailable>
<makeOutgoingCallsAsCallCenter>false</makeOutgoingCallsAsCallCenter>
<callCenterList>
<callCenterDetails>
<serviceUserId>CallCenter001</serviceUserId>
<available>true</available>
<extension>5055</extension>
<isLogOffAllowed>false</isLogOffAllowed>
</callCenterDetails>
</callCenterList>
</CallCenter>
</xsp:payload>
</xsp:response>

 

 

Please do not hesitate to contact us directly if you would like Wireshark traces showing this problem.

Regards,
Akixi.

[SOLVED]: Event Subscribe Returns Successful, but not getting callbacks

$
0
0

Hello

 I followed the documentation for subscribing to events.  My HTTP Post gets a success response back which includes a subscription id.  I am able to query the subscriptions endpoint and it's returned as a valid subscription.  I can watch the expire time go down over time etc.  

The issue is we never see any events get posted back to our server to the url we specified in the URI parameter.


We are supposed to get an immediate post upon subscribe.  We don't.
We also tried making an inbound call to generate events and it doesn't either.

Any ideas?
I do not have access to the server to view logs at the moment.  I'm planning on testing it against the sandbox server once I have access. 

 

Broadsoft Request Response

"Forbidden" message in BroadSoft Call Manager when making calls from X-Lite client

$
0
0

I was trying to make a call using X-Lite client and it shows "Call Established" in X-Lite, But in BroadSoft Call Manager, it is showing "Forbidden". Call HIstory tab shows no entries.

 

 

 

Trying to make calls in Call Manager client. Getting "Resource Unavailable" message.

$
0
0

I am a first time user of CommPilot Call Manager client, trying to generate call usage data for billing purposes. When I try to dial a phone number in the Call Manager, I get the message "Resource Unavailble" . I need help in setting up the Call Manager so that I can make phone calls and generate usage data.


Enable CORS on BW server.

$
0
0

Hi.

I would like to know if it is possible to enable CORS in BW's servers and if yes, how to enable it?

Thank you,

Joao Paulo 

Discovering which service packs a user has using XSI

$
0
0

Hi. we are migrating our client (CTI) application from OCI to XSI. We can seem to do everything except one thing. On OCI we can query what Service Packs (not services) that a user has assigned. However, we can't find out how to do do the same on XSI. 

Is it possible using XSI to query a user's service packs? Ideally we are using CTI over XSI (port 8011) to do this.

If not, is it possible to send "OCI" commands over XSI as a transport? Then we could send the relevant OCI command instead?

Thanks 

Please Confirm, proper way to renew a subscription

$
0
0

According to this page: http://developer.broadsoft.com/node/3757

 To renew a subscription you would do:
(The response to this is "")

        + '<SubscriptionUpdate xmlns="http://schema.broadsoft.com/xsi-events">'

        + '   <expires>7200</expires>'

        + '</SubscriptionUpdate>'; 

 

Then, the manual implies this is correct:
(This gives an Invalid XML error as response)

//        + '<?xml version="1.0" encoding="UTF-8"?>'

//        + '<Subscription xmlns="http://schema.broadsoft.com/xsi-events">'

//        + '   <expires>3600</expires>'

 //        + '</Subscription>'; 

 

What I found I had to do is basically post an complete subscription payload 

    var xmlPayload = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"

        + "        <Subscription xmlns=\"http://schema.broadsoft.com/xsi\">"

        + "            <event>Advanced Call</event>"

        + "            <httpContact>"

        + "                <uri>http://events.callinize.com/receivexml/" + this.organization._id + "/broadsoft</uri>"

        + "            </httpContact>"

        + "            <applicationId>Callinize</applicationId>"

        + "        </Subscription>"; 

 

All of these commands were being "PUT" to:
var url = "http://" + this.config.host + "/com.broadsoft.xsi-events/v2.0/" + "subscription" + "/" + subscriptionId;


Is there any harm in like renewing every 10 minutes? 

 

 

 

 

Anyway to get HTTP Contact Events in order?

$
0
0

Is there any chance there is some setting which the XSI server would buffer messages so they are received in order?  

Like have them wait for 200 Ok.

It really adds a lot of complexity... I've even noticed that I even miss messages in the sequence...
Thus making it really hard to do something like if sequence number isn't prev + 1... delay processing.  

Does that comet interface guranttee them in order? 

 Example, this is the order I received events: 49, 50, 51, 54, 52, 53, 58, 55, 56, 57, 59, 61   <--- Missing 60

It was a sequential Ring hunt group.  I think i get hangups before 

 

 

 

 

Not getting remoteparty for last target in a sequential ring group

$
0
0

Came across a really odd issue...

I didn't create this ring group so not sure if the extensions are somehow different...

This image shows it all... It's the output of a tool i wrote to help me visualize call events and how they're processed.

On the very last extension in the ring grop i don't get the complete xsi:remoteparty element... I just get a calltype... but no address which includes the remote phone number.

What could cause this? 

--- Is this a bug with sequential ring groups?

--- I don't think it's an issue with the extension itself as when i do a simultanous ring group all 3 extensions have it.

 

Trace of Call

 

Note: The XML was converted to JSON using xml2js.   

Viewing all 298 articles
Browse latest View live