Doorbell paging on Raspberry Pi

Hello, I am running FreePBX using IncrediblePi (PBX In a Flash) on a Raspberry Pi.

I would like to configure a doorbell which will page an extension (or ring group) when someone presses the button.

So far I have done a lot of reading and most of the script info is here:

http://raspimods.blogspot.mx/2012/09/portero-ip-con-asterisk-y-tarjeta-de.html (Spanish but Google translates it on the page).

(I am not looking to set a door intercom so will not be using alsa etc., I only want the button press).

There is also some good information here:

http://www.raspberrypi.org/phpBB3/viewtopic.php?t=15348

The first thing that has put me off this though is the second I went into extensions.conf I was warned not to edit anything in there.

I have looked at setting up a virtual extension but cannot see how I can do this to use the same settings as the first link I posted.

My main question is how do I take the info from the first link I posted and implement it in FreePBX?

Any help is appreciated, thanks in advance.

Probably the easiest way to do it would be to write up a quick script which would be triggered by the doorbell button. You’d then write some custom context to play a message, and save that into extensions_custom.conf. Finally, setup the script to generate a call file, with a channel of your destination extension or ring group and your custom context as the destination for when the call is answered.

There’s a lot of pieces to get it to work, but if that’s the general idea…