def _connect_dde(self): try: self.dde_client = DdeClient("MicroSIP", "Command") self.dde_client.Connect() except: # Launch MicroSIP if not running subprocess.Popen([self.sip_path]) time.sleep(2) self.dde_client = DdeClient("MicroSIP", "Command") self.dde_client.Connect()
def dial(self, number): self.dde_client.Execute(f"DIAL number", timeout=5000) microsip api
DIAL <number_or_SIP_URI>