[Asterisk-Users] Delayed ringing on some SIP phones

trixter aka Bret McDanel trixter at 0xdecafbad.com
Mon Oct 17 01:13:19 MST 2005


On Mon, 2005-10-17 at 02:50 -0600, Rich Adamson wrote:
> > Is there any way to do this without stopping Company 1's phones ringing
> > (i.e. timing out the dial statement after 15 seconds)?
> 
> Either this is a very simple question or I'm missing something...
> 
> Wouldn't something like this work for you?
> 
> [incoming-bri-one]
> exten => s,1,SetCIDName(Company 1)
> exten => s,2,Dial(SIP/200&SIP/201&etc.,15) ; comapny 1's phones
> exten => s,3,Dial(SIP/200&SIP/201&SIP/300&SIP/301&etc.,15) ; company 1's & 2's phones
> exten => s,4,Voicemail(su200)
> 
> [incoming-bri-two]
> exten => s,1,SetCIDName(Company 2)
> exten => s,2,Dial(SIP/300&SIP/301&etc.,15) ; company 2's phones
> exten => s,3,Dial(SIP/300&SIP/301&SIP/200&SIP/201&etc.,15) ; comapny 2's & 1's phones
> exten => s,4,Voicemail(su300)
> 

There is a potential race condition however, and that is also what he
wanted to know if there was a different way than that :)

The race condition occurs in between priorities 2 & 3.  If someone picks
up just as the phone stops ringing on priority 2 but before it starts on
3 (granted a small window but a window none the less) then it wont be
answered and instead it will seem to most users to be a defective pbx
system (they picked up the phone and it didnt answer but kept
ringing).  

Short of an AGI that will create call files as needed and patch the call
through when its answered I dont see another way however.  Basically the
AGI would create a call file that would ring the extensions and when
someone answers it would transfer the inbound call to the person that
answered.  A bit messier and potentially more problems (or at least it
seems like it) but it wouldnt stop the dial command halfway through.




-- 
Trixter http://www.0xdecafbad.com     Bret McDanel
UK +44 870 340 4605   Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20051017/b5b94944/attachment.pgp


More information about the asterisk-users mailing list