1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-03-08 19:11:20 +00:00
2009-02-20 18:07:35 +00:00

23 lines
325 B
Python

#!/usr/bin/env python
import string
import sys
from ESL import *
con = ESLconnection("localhost","8021","ClueCon")
#are we connected?
if con.connected:
#get argument passed to script
command = string.join(sys.argv[1:])
#run command
e=con.sendRecv("api "+ command)
print e.getBody()
else:
print "Not Connected"