Hi, I use this script and works well.
I have some trouble if I use that in combination with mod_callcenter: in particular, the event execute_on_answer and api_hangup_hook doesn't fire if an agent answer or hangup a call.
Do you have an idea why this event are not launched with mod_callcenter...