]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
single_command.py fixes
authorMathieu Rene <mrene@avgs.ca>
Mon, 18 Jan 2010 15:31:47 +0000 (15:31 +0000)
committerMathieu Rene <mrene@avgs.ca>
Mon, 18 Jan 2010 15:31:47 +0000 (15:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16386 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/esl/python/single_command.py

index 4f1f0ea59afa902c2e96f468d33f8e5719fc9f63..c47c57c13c490296b60001dfd38352c9312a4488 100644 (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: