Revision
16386
Author
mrene
Date
2010-01-18 09:31:47 -0600 (Mon, 18 Jan 2010)

Log Message

single_command.py fixes

Modified Paths

Diff

Modified: freeswitch/trunk/libs/esl/python/single_command.py (16385 => 16386)


--- freeswitch/trunk/libs/esl/python/single_command.py	2010-01-18 13:38:10 UTC (rev 16385)
+++ freeswitch/trunk/libs/esl/python/single_command.py	2010-01-18 15:31:47 UTC (rev 16386)
@@ -25,9 +25,9 @@
 		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: