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:
Mathieu Rene 2010-01-18 15:31:47 +00:00
parent 95560c905d
commit 176a8a7861
1 changed files with 2 additions and 2 deletions

View File

@ -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: