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

TelePresence Server (MCU) Conference.enumerate syntax

dgauthier
Level 1
Level 1

Forum,

I am trying to figure out the proper 'enumerateFilter' additional syntax for following conference.enumerate API call.  Choices for filter are 'active', 'scheduled' and 'completed'.

/usr/bin/wget --connect-timeout=2 --tries=1 --no-check-certificate --output-document="TEST_<IP Address>_conferenceEnumerate.xmlrpc" --user-agent="Mozilla/4.0" --header="Host: <IP Address>" --header="Content-Type: text/xml" --header="Content-Length: 356" --post-data="<?xml version='1.0' encoding='UTF-8'?><methodCall><methodName>conference.enumerate</methodName><params><param><value><struct><member><name>authenticationPassword</name><value><string>shoregroup</string></value></member><member><name>authenticationUser</name><value><string>casesentry</string></value></member></struct></value></param></params></methodCall>" HTTPS://<IP Address>/RPC2

Please advise...thx.

2 Replies 2

dgauthier
Level 1
Level 1

I have testing this...

<?xml version='1.0' encoding='UTF-8'?>
  <methodCall>
    <methodName>conference.enumerate</methodName>
    <params>
      <param>
        <value>
          <struct>
            <member>
              <name>enumerateFilter</name>
                <value><string>completed</string></value>
            </member>
            <member>
              <name>authenticationPassword</name>
                <value><string>shoregroup</string></value>
            </member>
            <member>
              <name>authenticationUser</name>
              <value><string>casesentry</string></value>
            </member>
          </struct>
        </value>
      </param>
    </params>
  </methodCall>" HTTPS://<IP Addr>/RPC2

does not seem to be working...

James Hodgson
Level 1
Level 1

Try dropping the --header="Content-length" and leave that to wget. I think the length you've set is too long and the MCU is waiting for the rest of the message...

Even better, try using python :)

import xmlrpclib
import time

mcu1 = xmlrpclib.Server('http://ip_address/RPC2')
user = 'admin'
pin = ''

params = {
'authenticationUser' : user,
'authenticationPassword' : pin,
}

params_conf_enum = {
'authenticationUser' : user,
'authenticationPassword' : pin,
'enumerateFilter': 'completed'
}

print 'Enumerate Conferences'
data = mcu1.conference.enumerate(params_conf_enum)
print data
for conference in data['conferences']:
    print conference['conferenceName']