This is a script to monitor call events for a Twinkle soft phone and report them to the RootIO APP The script is configured for incoming call, incoming call answered, local call release, incoming call failed and remote release events of the twinkle soft phone. For arguments it takes the ip address, port and key for the RootIO app.
./Handler.py localhost 5555 234nj23k4j234j2kh34jkh23k4hj
Make sure the python file is executable by doing:
chmod +x Handler.py