Hello Asterisk world,
Currently I am using Python to connect to AMI and everything is working fine. I can see live calls, hangup calls as well
But I have a task to accomplish, with every calls made I can see the duration of these calls. Now I have to deduct the duration from the balance added in the MySQL table column for the user.
So when (balance - current_duration) < 60seconds then an IVR should tell the user that he or she has 1 minute left.
Do you think this can be achieved using the Python script. Also the script will have to run asynchronously not needing to go to a page before the function can be activated.