Hello all, 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)? Thanks in advance. Regards, Chris -- C.M. Bagnall, Director, Minotaur I.T. Limited This email is made from 100% recycled electrons
Hi :) Chris Bagnall wrote:> Hello all, > > 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)? >Well, I asked this, too and the solution was: exten => s,1,Dial(SIP/company1,15) exten => s,2,Dial(SIP/company1&SIP/company2,30)> Thanks in advance. > > Regards, > > ChrisHTH and regards, Hauke
brett@websmyths.com
2005-Oct-17 01:01 UTC
[Asterisk-Users] Delayed ringing on some SIP phones
On 10/17/2005, "Chris Bagnall" <asterisk@minotaur.cc> wrote:> Hello all, > > 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)?Bingo! You got it! Timeout the dial after X seconds - and then do a Dial to both companies for another another X seconds. Remember - busy does a jump to n+101 (some one is there...) and unavailable just goes to the next step. Brett
trixter aka Bret McDanel
2005-Oct-17 01:15 UTC
[Asterisk-Users] Delayed ringing on some SIP phones
On Mon, 2005-10-17 at 03:01 -0500, brett@websmyths.com wrote:> Bingo! You got it! Timeout the dial after X seconds - and then do a Dial > to both companies for another another X seconds. > > Remember - busy does a jump to n+101 (some one is there...) and > unavailable > just goes to the next step.dont forget that with bristuff (and presumably 1.2-beta1) n+201 is called if the client isnt connected that you tried to dial. But if you are using 1.2 you really should use labels they are so much nicer :) -- 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/7999ef45/attachment.pgp
> 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)