cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
109
Views
0
Helpful
0
Replies

BroadWorks CTI for Channel CRUD Operation(get/delete/put) using socket

ygarinyan
Level 1
Level 1

Hello everyone,
I'm writing code in python using sockets to be able to 
AddChannelRequest, GetChannelSetRequest, UpdateChannelRequest, DeleteChannelRequest
So far we were able to AddChannelRequest, and the other requests are not working(we get errors regarding formatting of the xml params etc), our reference for the requests is CISCO Broadworks Computer Telephony Integration Interface Specification Document Version 1
Here are some examples of the requests we tried(we tried changing the payload and params)

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsp:request xmlns:xsp="http://schema.broadsoft.com/XspXMLInterface" version="">
<requestId>{0}</requestId>
<sessionId>{1}</sessionId>
<credentials>{2}</credentials>
<GetChannelSetRequest>
<uri>{3}/channel?channelSetId={4}</uri>
<method>GET</method>
<version/>
<params/>
<xsp:payload>
<xsi:Channel xmlns:xsi="http://schema.broadsoft.com/xsi">
<xsi:channelSetId>{4}</xsi:channelSetId>
</xsi:Channel>
</xsp:payload>
</GetChannelSetRequest>
</xsp:request>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsp:request xmlns:xsp="http://schema.broadsoft.com/XspXMLInterface" version="">
<requestId>{0}</requestId>
<sessionId>{1}</sessionId>
<credentials>{2}</credentials>
<UpdateChannelRequest>
<uri>{3}/channel</uri>
<method>PUT</method>
<version/>
<params>
<channelId>{4}</channelId>
</params>
<xsp:payload>
<xsi:Channel xmlns:xsi="http://schema.broadsoft.com/xsi">
<xsi:expires>{5}</xsi:expires>
<xsi:applicationId>{4}</xsi:applicationId>
</xsi:Channel>
</xsp:payload>
</UpdateChannelRequest>
</xsp:request>

I would appreciate if someone could help with these requests, and point me to new documentation if there's one, thank you in advance.



0 Replies 0