Beispiel #1
0
		# Get all IAX accounts
		elif opt == "--gaia":
			for account in sflphone.getAllIaxAccounts():
				print account

		# Get current call
		elif opt == "--gcc":
			call = sflphone.getCurrentCallID()
			if call:
				print call
			else:
				print "No current call."

		# Get account details
		elif opt == "--gad":
			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)