mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
single_command.py fixes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16386 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
95560c905d
commit
176a8a7861
@ -25,9 +25,9 @@ def main(argv):
|
||||
con = ESLconnection(options.server, options.port, options.auth)
|
||||
#are we connected?
|
||||
|
||||
if con.connected:
|
||||
if con.connected():
|
||||
#run command
|
||||
e=con.sendRecv("api "+ options.command)
|
||||
e = con.api(options.command)
|
||||
print e.getBody()
|
||||
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user