Posted: Fri Feb 25, 2005 1:55 am Post subject: [Asterisk-Users] cascaded ringing
On Fri, 2005-02-25 at 10:32 +0100, Elmar Haneke wrote:
Quote:
Hi,
I intend to let several SIP-phones on my asterisk ring cascaded on
incoming calls.
First only phone 1 should ring, after 5 seconds phone 2 should ring in
addition and after additional 5 Seconds phone 3 should also ring.
How can I realize that correctly?
Currently I do use
Dial(SIP/1,5)
Dial(SIP/1&SIP/2,5)
Dial(SIP&1&SIP/2&SIP/3)
But this seems not to work correctly on phone 1 since the ringing is
interrupted twice.
Is there an better way to implement this feature in an single Dial
command?
Yes, this was discussed recently on the list.. I can't recall the
subject, but here is basically what was suggested (see google to try and
find exact example, or try it out, and if you still can't get it right,
show us what you have done and ask for more help...)...
Posted: Fri Feb 25, 2005 4:36 am Post subject: [Asterisk-Users] cascaded ringing
You could add
exten => 1,2,Goto(context,2,2)
But I don't know what will happen when, after 5 secs, dial SIP/2 is
executed again...
Julian
On Fri, 25 Feb 2005 12:56:14 +0100, Elmar Haneke <elmar@haneke.de> wrote:
Quote:
> exten => s,1,Dial(Local/1@context&Local/2@context&Local/3@context)
>
> [context]
> exten => 1,1,Dial(SIP/1)
> exten => 2,1,Wait(5)
> exten => 2,2,Dial(SIP/2)
> exten => 3,1,Wait(10)
> exten => 3,2,Dial(SIP/3)
>
> Basically, use the 'local' channel for your dial, then you can wait a
> bit before actually calling...
That's an good idea. How can I extend this to let SIP/2 ring
immediately if SIP/1 is busy?
Posted: Fri Feb 25, 2005 9:04 am Post subject: [Asterisk-Users] cascaded ringing
On Fri, 2005-02-25 at 12:36 +0000, Julian J. M. wrote:
Quote:
You could add
exten => 1,2,Goto(context,2,2)
But I don't know what will happen when, after 5 secs, dial SIP/2 is
executed again...
I think you are on the right track. If SIP considers ringing as busy
then you can cascade through your extensions doing the same goto if busy
logic.
call one comes in and is ringing/answered by sip/1
call two comes in and starts to ring Sip/1 and gets busy and rolls to
start ringing Sip/2 immediately. Sip/2 doesn't answer but when the wait
is over for Sip/2 normally, it sees Sip/2 is already "busy" and dials
Sip/3. You could then put voicemail at the end of Sip/3's timeout/busy
and you could catch the overflow.
Interesting way to handle it. I like it. I don't have a use for it, but
it is cool.
Quote:
On Fri, 25 Feb 2005 12:56:14 +0100, Elmar Haneke <elmar@haneke.de> wrote:
> > exten => s,1,Dial(Local/1@context&Local/2@context&Local/3@context)
> >
> > [context]
> > exten => 1,1,Dial(SIP/1)
> > exten => 2,1,Wait(5)
> > exten => 2,2,Dial(SIP/2)
> > exten => 3,1,Wait(10)
> > exten => 3,2,Dial(SIP/3)
> >
> > Basically, use the 'local' channel for your dial, then you can wait a
> > bit before actually calling...
>
> That's an good idea. How can I extend this to let SIP/2 ring
> immediately if SIP/1 is busy?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum