aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/share/python/asterisk/test-client.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xshare/python/asterisk/test-client.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/share/python/asterisk/test-client.py b/share/python/asterisk/test-client.py
deleted file mode 100755
index d1872cd..0000000
--- a/share/python/asterisk/test-client.py
+++ /dev/null
@@ -1,28 +0,0 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3
4import xmlrpclib
5
6# XML-RPC URL (http_listener_port)
7asteriskServerURL = 'http://127.0.0.1:53263'
8
9# instantiate server object
10asteriskServer = xmlrpclib.Server(asteriskServerURL)
11
12try:
13 # invoke admin_alert: requires password and message
14 res = asteriskServer.region_update({
15 'admin_password': 'c00lstuff',
16 'region' : '941ae087-a7da-43b4-900b-9fe48387ae57@secondlife.zurich.ibm.com'
17 })
18 print res
19
20 res = asteriskServer.account_update({
21 'admin_password': 'c00lstuff',
22 'username' : '0780d90b-1939-4152-a283-8d1261fb1b68@secondlife.zurich.ibm.com',
23 'password' : '$1$dd02c7c2232759874e1c205587017bed'
24 })
25 print res
26except Exception, e:
27 print e
28