I’ve setup TrixBox (used to be Asterisk@Home) for very simple home use but I’d like to setup the following type of system for incoming calls:
When a call comes into Asterisk (via PSTN/Sipura3000 or SIP/Broadvoice) it immediately dials the FXS extension on my Sipura3000. This means the phone system appears to work like a normal POTS system (eg. somebody calls my number and the phone rings)
If nobody answers the phone it goes into my voicemail. This works great.
However, I’d like to be able to enter special extensions (if I’m the incoming caller) while the phone is ringing. So for example, if I’m at work I can call home to check my voicemail messages, etc.
Supposedly the Dial() option “d” will let me enter a one digit extension while the phone is ringing but it doesn’t appear to work.
Here is my extensions.conf code for the incoming calls:
exten => s,1,Answer()
exten => s,2,SipAddHeader(Alert-Info: Bellcore-r5)
exten => s,3,Dial(SIP/50,23,r,d)
exten => s,4,VoiceMail(u50@default)
exten => s,5,Playback(vm-goodbye)
exten => s,6,Hangup
exten => 1,1,SayDigits(1)
exten => 2,1,SayDigits(2)
exten => 10,1,SayDigits(10)
I’ve also tried removing the Answer() at the top (so the incoming caller doesn’t get that initial “suttered ring” (because Asterisk answers the phone but immediately dials and extension and provides another ringing sound)
So can anybody help me? All I want to do is be able to call into my home Asterisk box and “secretly” enter codes to check my voicemail or the weather, etc… but I want normal callers to hear ringing and then get placed into my voicemail if nobody answers.
Thanks!!