I would like to be able to trigger a custom php script when an incoming call comes in. I would need to pass the call number and the number the call was coming from into the php script. Then, based on what was sent in, we will need to do some custom processing.
Is there any information on how to do this or does anyone have experience with doing so? I think what would be easiest is to have one php file that is triggered by all incoming calls. Then, the processing would handle what gets done based on which call number was sent and which was requested.
I looked at some Asterisk AGI php information. But, it looks way more complicated than what I need. Also, I was wondering if there is a way to set it up using FreePBX.
If anyone has any ideas on how to proceed, I would really appreciate it.