Microsip Api — [work]
using NDde.Client; var client = new DdeClient("MicroSIP", "Command"); client.Connect(); client.Execute("DIAL 500", 60000); client.Disconnect(); If you don't need an already running instance, you can launch MicroSIP directly with a call command:
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() microsip api
Using the ddelib (available via pywin32 ). using NDde
External App → (DDE) → MicroSIP (send commands) MicroSIP UI → (Window Title / Log) → External App (read status) MicroSIP changes its main window title based on call state. You can poll or hook into window title changes. var client = new DdeClient("MicroSIP"