GomezAddams
Guru
- Joined
- Jul 28, 2011
- Messages
- 162
- Reaction score
- 48
I want to create a web page for the family that shows sort of a daily status. One of the things I want to include is the calls that have come in for the day. In order to do this, I need to have PiaF run a script when a call comes in.
Some googling says to put something like this in extensions.conf
Sounds easy enough, but when I look at extensions.conf and it's brethren, I get lost pretty quickly. The complexity brings back horrors of maintaining sendmail.cf files combined with the misery of writing FORTH code (I guess I'm dating myself here. For you young'uns - google them). Furthermore, it looks like FreePBX wants to own all of these.
Anyway, from what I get from google so far, it looks like I need to make a custom context and a custom destination. Is there any sort of a guide on doing this?
If it makes things easier, my incoming trunks go to a ring group, so I could create a new extension that triggers the script and add the extension to the ring group.
Or, would I be better off trying to hook into CallerID Superfecta? I could create a dummy caller ID web service on my web server, add it as a source, and use it to log calls.
Some googling says to put something like this in extensions.conf
Code:
exten => 200,2,System(/usr/local/bin/MyScript "'${CALLERID}'")
Sounds easy enough, but when I look at extensions.conf and it's brethren, I get lost pretty quickly. The complexity brings back horrors of maintaining sendmail.cf files combined with the misery of writing FORTH code (I guess I'm dating myself here. For you young'uns - google them). Furthermore, it looks like FreePBX wants to own all of these.
Anyway, from what I get from google so far, it looks like I need to make a custom context and a custom destination. Is there any sort of a guide on doing this?
If it makes things easier, my incoming trunks go to a ring group, so I could create a new extension that triggers the script and add the extension to the ring group.
Or, would I be better off trying to hook into CallerID Superfecta? I could create a dummy caller ID web service on my web server, add it as a source, and use it to log calls.