Develop Twilio Voice App
Zimple is a web based job management system that we have developed , at present we use asterisk to record all incoming (and outgoing) calls , these voice files and logs are posted to zimple (via the zimpleAPI) to create a TASK in the zimple task list .
the current asterisk script talks to the API and does other clever stuff like looking up account balances (to see it the customer is overdue) , and looks up the callerid(num) and returns a callerid(name) .
we would like to use the Twilio API and create a Twilio app to mimic the current asterisk script , at the moment this would only be a proof of concept , we would like to build this twilio app and test it with zimple . for possible inclusion into our project .
in a nutshell twilio will be the "man in the middle"
twilio answers the call
twilio checks caller id and make sure its valid (no blank callerid allowed)
twilio uses zimple API to set caller(name)
twilio uses zimple API to determine caller has outstanding account balance
twilio dials a set pre configured outbound number ($answer_point),
if the caller is overdue Twilio plays a text to voice message
twilio records the call
twilio bridges the calls
on hangup twilio stops recording and posts call data to zimple thru zimple API.
we can provide access to our original asterisk php agi script , and we will allow access to the zimple api and server interface .