This was just what I was looking for - thanks. I'm now able to have Asterisk ring whichever phones in the house that I want when the doorbell is pushed.
However...
I have Cisco 7940 phones, which don't support distinctive rings unfortunately, so there is much confusion amongst the less tech savvy here between phone calls and doorbells.
No problem, thinks I, I can set them up so that a push on the bell pages all the phones and plays back a recorded doorbell sound.
And I have this working to an extent, within 7940 limitations. The main limitation is that the only way to get an intercom/paging function out of these phones is to set up another extension on Line 2 which auto answers. So for each "real" extension (201, 202, 203 etc.) there is an "autoanswer" extension (301,302,303 etc.).
Great. A push on the doorbell plays a "ding-dong" sound out of all the speakers of the 7940s by paging 301,302,303 etc.
But unfortunately this doesn't work if someone happens to be on the phone - call waiting kicks in. Wouldn't it be nice if Asterisk could figure out that e.g. extension 203 was in use, so don't page extension 303 but instead whisper the "ding-dong" to extension 203.
Well, I just can't get ChanSpy to do the business in this scenario. The FreePBX paging app I am using doesn't seem to work (no whisper appears to extension 203) and I have tied myself in knots trying to code this functionality in a dialplan!
So I hope someone has invented this wheel already - a page function which succeeds in whispering to busy 7940/7960/any other 2-line phone with line 2 set to autoanswer to implement intercom. Or alternatively a kind soul can point me in the right direction?