Beispiel #1
0
		# 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
		#

		# Make a call
		elif opt == "--call":
			sflphone.Call(arg)

		# Hangup a call
		elif opt == "--hangup":
			if arg == "current":
				arg = sflphone.getCurrentCallID()