This document was generated from CDN thread Created by: Benjamin Isak on 21-10-2009 11:35:53 AM Hi,I try to read out all active (connected) conferences + their participants from a MCU 4505! I use the participant.enumerate method from the remote management api. This method should provide all the information I need!Here`s my XML: 1
2<?xml version="1.0"?>
3<methodCall>
4 <methodName>participant.enumerate</methodName>
5 <params>
6 <param>
7 <value>
8 <struct>
9 <member>
10 <name>authenticationUser</name>
11 <value><string>admin</string></value>
12 </member>
13 <member>
14 <name>authenticationPassword</name>
15 <value><string>BLABLA</string></value>
16 </member>
17 <member>
18 <name>enumerateFilter</name>
19 <value><string>connected</string></value>
20 <value><boolean>1</boolean></value>
21 </member>
22 </struct>
23 </value>
24 </param>
25 </params>
26</methodCall>
With this I dont get the information I want from the MCU. Do I use the API correctly? Please someone let me know if my XML is correct or not. XML-RPC is new to me.Regards,BenjaminSubject: RE: [Codian MCU] Problem with Remote_Management_API Replied by: Alex Shaw on 21-10-2009 01:10:12 PMHi Benjamin,I answered your question in a post in the "Codian MCU 4505" thread - I didn't see you'd started a separate one. Please see the answer there.CheersAlex.Subject: RE: [Codian MCU] Problem with Remote_Management_API Replied by: Benjamin Isak on 21-10-2009 02:33:15 PMHi Alex,your answer helped me alot! Thank you!
Am I wrong, that if I want all conferences, which are connected and their participants as "displayName"s that I have to do it like this: 1
2<?xml version="1.0"?>
3<methodCall>
4 <methodName>participant.enumerate</methodName>
5 <params>
6 <param>
7 <value>
8 <struct>
9 <member>
10 <name>authenticationUser</name>
11 <value><string>admin</string></value>
12 </member>
13 <member>
14 <name>authenticationPassword</name>
15 <value><string>TANDBERG</string></value>
16 </member>
17 <member>
18 <name>enumerateFilter</name>
19 <value><string>connected</string></value>
20 </member>
21 <member>
22 <name>operationScope</name>
23 <value>
24 <array>
25 <data>
26 <value>
27 <string>currentState</string>
28 </value>
29 <value>
30 <string>conferenceName</string>
31 </value>
32 <value>
33 <string>displayName</string>
34 </value>
35 </data>
36 </array>
37 </value>
38 </member>
39 </struct>
40 </value>
41 </param>
42 </params>
43</methodCall>
The Problem is, with this methodcall I get all the information participant.enumerate provides. But I only want somthing like: 1
2<?xml version="1.0"?>
3<methodResponse>
4<name>conferenceName</name>
5<value>
6<string>Conference Test1</string>
7</value>
8</member>
9<member>
10<name>conferenceType</name>
11<value>
12<string>active</string>
13</value>
14</member>
15<member>
16<name>displayName</name>
17<value>
18<string>12345678</string>
19</value>
20</member>
21<name>conferenceName</name>
22<value>
23<string>Conference Test2</string>
24</value>
25</member>
26<member>
27<name>conferenceType</name>
28<value>
29<string>active</string>
30</value>
31</member>
32<member>
33<name>displayName</name>
34<value>
35<string>11223344</string>
36</value>
37</member>
38<member>
39<name>displayName</name>
40<value>
41<string>11test-participant</string>
42</value>
43</member>
44</methodResponse>
Best regards,BenjaminSubject: RE: [Codian MCU] Problem with Remote_Management_API Replied by: Alex Shaw on 21-10-2009 04:22:52 PMThe operationScope parameter can only contain values currentState, configuredState, both of these, or nothing at all. It will not accept conferenceName, displayName or anything else. So this part of your code will have no effect, and should be removed:1<value>
2 <string>conferenceName</string>
3</value>
4<value>
5 <string>displayName</string>
6</value>
Unfortunately, there is no method of reducing the amount of information that participant.enumerate returns about each participant. If you have written your own xml-rpc client, however, it should be trivial for you to only deal with the data you are interested in - you can just ignore the rest if it is of no use to you!Subject: RE: [Codian MCU] Problem with Remote_Management_API Replied by: Benjamin Isak on 22-10-2009 09:15:24 AMAlex,alright. I thought as much that this has no effect! I now deal with the whole information and parse itwith LINQ and XPath and build a new XML file with the query results.Thanks for your help! Best regards,Benjamin