Beispiel #1
0
			if sflphone.checkAccountExists(arg):
				details = sflphone.getAccountDetails(arg)
				for var in details:
					print var + ": " + details[var]
			else:
				print "No such account: " + arg

		# Get active codec list
		elif opt == "--gacl":
			print "Not implemented."

		# Get call details
		elif opt == "--gcd":
			if arg == "current": arg = sflphone.getCurrentCallID()

			details = sflphone.getCallDetails(arg)
			if details:
				print "Call: " + arg
				print "Account: " + details['ACCOUNTID']
				print "Peer: " + details['PEER_NAME'] + "<" + details['PEER_NUMBER'] + ">"

		elif opt == "--sac":
			if arg is "":
			    print "Must specifies the accout to be set"
			else:
                            sflphone.setAccount(arg)


		#
		# call options
		#