Beispiel #1
0
			for account in sflphone.getAllEnabledAccounts():
				print account

		# Get all SIP accounts
		elif opt == "--gasa":
			for account in sflphone.getAllSipAccounts():
				print account

		# 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