def get_call_state(self): hwnd = win32gui.FindWindow(None, "MicroSIP") if hwnd: title = win32gui.GetWindowText(hwnd) if "Dialing" in title: return "dialing" elif "Incoming call" in title: return "ringing" elif "In call with" in title: return "connected" return "idle"
import win32ui import dde server = dde.CreateServer() server.Create("MyApp") conversation = dde.CreateConversation(server) conversation.ConnectTo("MicroSIP", "Command") conversation.Exec("DIAL 1002") conversation.Exec("DTMF 1") conversation.Exec("HANGUP") Using DDE.NET library or NDde.Client . microsip api
| Solution | Type | API Style | |----------|------|------------| | | Cross-platform | Command-line, Python, C# | | PJSIP | Library | C API, wrappers | | Twilio / Plivo | Cloud telephony | REST API | | Asterisk AMI | PBX control | TCP socket, events | | Microsoft Graph (Teams) | Cloud VoIP | REST + Graph API | def get_call_state(self): hwnd = win32gui
By continuing to use the site, you agree to the use of cookies. more information
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.