# SCENARIO 6 Test 2 def test_mult_ip2ip_send_hangup(self): """Receive multiple calls peer hangup""" # Add callback for this test self.sflphone.onIncomingCall_cb = acceptOnIncomingCall # Start Glib mainloop self.sflphone.start() del self.sflphone # Open sflphone and connect to sflphoned through dbus sflphone = SflPhoneCtrlSimple(True) # Init test suite testsuite = SflPhoneTests(sflphone) # Register the first account available, should be the test account sflphone.setFirstRegisteredAccount(); # ============================ Test Suite ============================ # SCENARIO 1: IP2IP Normal flow calls # Test 1: - Send an IP2IP call
# Option definition try: opts, args = getopt.getopt(sys.argv[1:], "", [ "help", "gaa", "gal", "gara", "gaea", "gasa", "gaia", "gacl", "gac", "gcc", "hangup=", "refuse=", "hold", "unhold=", "transfer=", "dtmf=", "accept=", "gcd=", "gad=", "register=", "unregister=", "enable=", "disable=", "call=", "sac=" ]) except getopt.GetoptError, err: print str(err) sys.exit(2) # SFLPhone instance. sflphone = SflPhoneCtrlSimple() # If no arguments, run the d-bus event loop. if len(sys.argv) == 1: loop = gobject.MainLoop() loop.run() # Parse all arguments else: for opt, arg in opts: if opt == "--help": printHelp() # # info options
# Option definition try: opts, args = getopt.getopt(sys.argv[1:],"", [ "help", "gaa", "gal", "gara", "gaea", "gasa", "gaia", "gacl", "gac", "gcc", "hangup=", "refuse=", "hold", "unhold=", "transfer=","dtmf=", "accept=", "gcd=", "gad=", "register=", "unregister=", "enable=", "disable=", "call=", "sac=" ]) except getopt.GetoptError,err: print str(err) sys.exit(2) # SFLPhone instance. sflphone = SflPhoneCtrlSimple() # If no arguments, run the d-bus event loop. if len(sys.argv) == 1: loop = gobject.MainLoop() loop.run() # Parse all arguments else: for opt, arg in opts: if opt == "--help": printHelp() # # info options