#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from xmlrpc.client import *

if len(sys.argv) != 2:
    print("usage: %s <room name>" % sys.argv[0])
    sys.exit(1)

s = ServerProxy("http://localhost:8090")
print("Active calls: %d" % s.calls())
print(s.di("webconference", "roomCreate", sys.argv[1]))
