How to check if Skype call is connected or disconnected in Python?

37 Views Asked by At

This code call successfully but doesn't able to track if call is still ongoing or not.

import webbrowser

def call_number(number):
try:
    print(f"Calling number: {number}")

    # Generate Skype URI for the number
    skype_uri = f"skype:{number}?call"

    # Open the Skype URI in a new tab of the default web browser
    webbrowser.open_new_tab(skype_uri)

    #.... Logic to check if skype call is connected or not.

except Exception as e:
    print(f"Error calling number: {number}")
    print(str(e))

call_number('skype.test.user.1')
0

There are 0 best solutions below