[Asterisk-Users] Delayed ringing on some SIP phones

jurczak jurczak at digi-com.gr
Mon Oct 17 02:23:48 MST 2005


Why dont you make a special extension where you could provide the delay and 
the numbers you want to dial?

for example

exten => _900XXXXX,1,Wait(${EXTEN:4:2})
exten => _900XXXXX,2,Dial(SIP/${EXTEN:5})

then in the incoming context you could dial 

exten => s,1,Dial(SIP/200&SIP/201&LOCAL/90015300&LOCAL/90015301)

in the above example 200 and 201 extension will ring immediately, and 300 and 
301 will start ringing after 15 seconds.
after to 900 the first two digits are for the delay before start ringing
and the last three are the extension that should be called.


On Mon, 17 Oct 2005 02:50:46 -0600, Rich Adamson wrote
> > One of the buildings I have an asterisk box deployed in is used by two 
small
> > companies on two floors. They have an agreement between them whereby 
they'll
> > answer each other's incoming calls and take messages if the office is 
empty
> > / everyone is on the phone.
> > 
> > Each of them has an  ISDN BRI delivered to asterisk via zaphfc, then 
dropped
> > into a context as follows:
> > exten => s,1,SetCIDName(Company 1)
> > exten => s,2,Dial(SIP/200&SIP/201&etc.,30)
> > exten => s,3,Voicemail(su200)
> > 
> > Each company is able to see on the LCD on their SIP phones whether the 
call
> > is for them or the folks up/downstairs.
> > 
> > What I'd like to do is implement a delayed ringing strategy - i.e. if the
> > call comes in for Company 1, only their SIP phones will ring for the first
> > 15 seconds, then if there's not been an answer, company 2's SIP phones 
will
> > also start ringing.
> > 
> > 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)
> 
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
> 
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users







More information about the asterisk-users mailing list