Hi,
This is probably an easy one for you asterisk gurus but here goes.
Ive got an asterisk pbx with a digium 3 port fxo (pstn) card and three pstn lines going into it. I then have 4 SIP phones connected too.
Basically the problem I am getting is a reliable way to make all the phones ring when a call comes in on one of lines. I setup the way of doing this with the calls coming in and ringing all the extensions in one go as shown in my extensions.conf below:
[macro-normal]
exten => s,1,Dial(${ARG2}|20,tTr)
exten => s,2,Voicemail(u${ARG1})
[default]
;Outgoing calls, if all are busy, caller will get engaged tone.
exten => _X.,1,Dial(Zap/g1/${EXTEN})
;Internal Calls
exten => 100,1,Macro(normal|100|SIP/100)
exten => 101,1,Macro(normal|101|SIP/101)
exten => 102,1,Macro(normal|102|SIP/102)
exten => 103,1,Macro(normal|103|SIP/103)
;Voicemail
exten => 500,1,Wait(3)
exten => 500,2,VoiceMailMain(s1)
[incoming]
;Incoming calls, will ring all extensions, if no answer after 20 seconds will go to global voicemail.
exten => s,1,Answer()
exten => s,2,Dial(SIP/100&SIP/101&SIP/102&SIP/103,20,tTr)
exten => s,3,Playback(im-sorry)
exten => s,4,Playback(nbdy-avail-to-take-call)
exten => s,5,Voicemail(u100)
exten => s,6,HangUp()
The crux of the problem is when a call has just come in and all the sip phones are ringing, then another call comes in (while all the sip phones are ringing) this call goes straight to answer phone, which isnt what I want to happen.
What I need it to do is to wait for the currently ringing call to be answered and then make all the other available phones ring.
Is there anyway to do this? Someone mentioned queues for this sort of thing ?
Thanks for any help you might have.