Execute agi script on all incoming call and get caller and callee on ringing, answer and hangup

I have installed freepbx and I need to excute an agi script on incoming call. I need to receive any time 3 variables (caller ID, callee, call unique identifier ) in these 3 statements :
when the call ringing
when an agent pickup a call
When the call is terminated or hangup event detected

I will need also help to choose some librairy in PHP, javascript to integrate to my own application to directly send and receive a call from browser.

I have already installed FreePBX and code my script and create a custom extension. When I call the custom extension 8010, the script is well executed. But I failed to make it work on the incoming call by simulate it on the defaut 7777 extensions.

Kinds regards,

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.