I have an Asterisk system for a small office with 12 extensions. For parts
of the incoming dialplan that go to "support"/"sales" we
have phones ring
various people in an "additive" fashion. Example:
----- snip ------
exten => s,2,Dial(${E25}|18)
exten => s,3,Dial(${E25}&${E24}|12)
exten => s,4,Dial(${E25}&${E24}&${E28}|12)
exten => s,5,Dial(${E25}&${E24}&${E28}&${E22}|12)
----- snip ------
This works, but I've just realized that it has the unfortunate side effect
of making each extension appearing to get one call for each "Dial"
command.
So, ${E25} appears to get four calls if nobody answers it and it goes to
voicemail. ${E24} three calls, etc.
Is there a better way to do this kind of extension plan?
Thanks for any suggestions!
Ryan Booz
Director of IT
Good Steward Software, LLC
111 Sowers Street, Suite 400
State College, PA 16801
Phone: 877-327-3702 x.26 (814-237-3744 x.26)
Fax: 719-623-0577
Visit us at www.energycap.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20051220/ceedfc0f/attachment.htm
pdhales@optusnet.com.au
2005-Dec-20 14:11 UTC
[Asterisk-Users] Rolling dialplan... best practice?
I know it's not the same thing, but put the phones into a queue, and call
the queue....maybe...
PaulH
----- Original Message -----
From: Ryan Booz
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Wednesday, December 21, 2005 1:03 AM
Subject: [Asterisk-Users] Rolling dialplan... best practice?
I have an Asterisk system for a small office with 12 extensions. For parts of
the incoming dialplan that go to "support"/"sales" we have
phones ring various people in an "additive" fashion. Example:
----- snip ------
exten => s,2,Dial(${E25}|18)
exten => s,3,Dial(${E25}&${E24}|12)
exten => s,4,Dial(${E25}&${E24}&${E28}|12)
exten => s,5,Dial(${E25}&${E24}&${E28}&${E22}|12)
----- snip ------
This works, but I've just realized that it has the unfortunate side effect
of making each extension appearing to get one call for each "Dial"
command. So, ${E25} appears to get four calls if nobody answers it and it goes
to voicemail. ${E24} three calls, etc.
Is there a better way to do this kind of extension plan?
Thanks for any suggestions!
Ryan Booz
Director of IT
Good Steward Software, LLC
111 Sowers Street, Suite 400
State College, PA 16801
Phone: 877-327-3702 x.26 (814-237-3744 x.26)
Fax: 719-623-0577
Visit us at www.energycap.com
------------------------------------------------------------------------------
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20051220/5818b4bb/attachment.htm
Ryan Booz wrote:> I have an Asterisk system for a small office with 12 extensions. For > parts of the incoming dialplan that go to ?support?/?sales? we have > phones ring various people in an ?additive? fashion. Example: > > > > ----- snip ------ > > exten => s,2,Dial(${E25}|18)> > exten => s,3,Dial(${E25}&${E24}|12)> > exten => s,4,Dial(${E25}&${E24}&${E28}|12)> > exten => s,5,Dial(${E25}&${E24}&${E28}&${E22}|12)Create an waiting extension: exten => _*XX*XX,1,wait(${EXTEN{1:2}) exten => _*XX*XX,1,dial($EXTEN{3:2}) Then dial using that waiting extension: exten => s,2,Dial(${E25}&Local/*18*${E24}&Local/*30*${E28}&Local/*42*${E28}&Local/*56*${E22}) This wil dial all the numbers at the same time, however eacht local number waits a bit longer before executing the dial, hence it hunts :) So ${E25} will ring instant, ${E24} starts ringing 18 seconds later, ${E28} starts 12 seconds after ${E24} (timing is related to the 1st phone ringing) Kind regards, Erik> > ----- snip ------ > > > > This works, but I?ve just realized that it has the unfortunate side > effect of making each extension appearing to get one call for each > ?Dial? command. So, ${E25} appears to get four calls if nobody answers > it and it goes to voicemail. ${E24} three calls, etc. > > > > Is there a better way to do this kind of extension plan? > > > > Thanks for any suggestions! > > > > Ryan Booz > > Director of IT > > Good Steward Software, LLC > > 111 Sowers Street, Suite 400 > > State College, PA 16801 > > Phone: 877-327-3702 x.26 (814-237-3744 x.26) > > Fax: 719-623-0577 > > Visit us at www.energycap.com > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Peer Oliver Schmidt
2005-Dec-21 02:29 UTC
[Asterisk-Users] Rolling dialplan... best practice?
Erik wrote> Create an waiting extension: > exten => _*XX*XX,1,wait(${EXTEN{1:2}) > exten => _*XX*XX,1,dial($EXTEN{3:2}) > > Then dial using that waiting extension: > > exten => s,2,Dial(${E25}&Local/*18*${E24}&Local/*30*${E28}&Local/*42*${E28}&Local/*56*${E22}) > > This wil dial all the numbers at the same time, however eacht local number waits a bit longer before executing the dial, hence it hunts :) > > So ${E25} will ring instant, ${E24} starts ringing 18 seconds later, ${E28} starts 12 seconds after ${E24} (timing is related to the 1st phone ringing)This is bloody cool. Thanks for the idea. -- Best regards Peer Oliver Schmidt PGP Key ID: 0x83E1C2EA
Tomislav Parcina
2005-Dec-21 04:35 UTC
[Asterisk-Users] Re: Rolling dialplan... best practice?
In article <43A90C8A.4050704@infopact.nl>, erik@infopact.nl says...> exten => s,2,Dial(${E25}&Local/*18*${E24}&Local/*30*${E28}&Local/*42*${E28}&Local/*56*${E22}) > > This wil dial all the numbers at the same time, however eacht local number waits a bit longer before executing the dial, hence it hunts :) > > So ${E25} will ring instant, ${E24} starts ringing 18 seconds later, ${E28} starts 12 seconds after ${E24} (timing is related to the 1st phone ringing)Will E28 ring even if E24 picks up the call? -- Tomislav Parcina ime.prezime@email.t-com.hr
Erik,
This looks like a great option! Thanks. I'm wondering about two things (a
bit of a newbie I guess) and am hoping for a bit more clarity.
1. In your example is "Local" the context? I've seen
"Local/"
referenced in the documentation online, but don't understand what it is.
I'm sure this is a basic question, but I appreciate the help.
2. My global variables (${E25}, etc.) are set to SIP extensions
"SIP/25". That being said, can I use pattern matching to pass
variables?
Or, would I simply change your Dial to something like:
exten => s,2,Dial(${E25}&Local/*18*24&Local/*30*28&Local/*42*22)
and then have the dial in the "waiting" extension be:
exten => _*XX*XX,1,dial(SIP/${EXTEN:3})
Again, any help in clarifying this would be awesome!
Thanks again!
Ryan
-------------------------------------------------------------------------
Date: Wed, 21 Dec 2005 09:04:26 +0100
From: Erik <erik@infopact.nl>
Subject: Re: [Asterisk-Users] Rolling dialplan... best practice?
To: Asterisk Users Mailing List - Non-Commercial Discussion
<asterisk-users@lists.digium.com>
Message-ID: <43A90C8A.4050704@infopact.nl>
Content-Type: text/plain; charset=windows-1252
Ryan Booz wrote:
> I have an Asterisk system for a small office with 12 extensions. For
> parts of the incoming dialplan that go to _support_/_sales_ we have
> phones ring various people in an _additive_ fashion. Example:
>
>
>
> ----- snip ------
>
> exten => s,2,Dial(${E25}|18)>
> exten => s,3,Dial(${E25}&${E24}|12)>
> exten => s,4,Dial(${E25}&${E24}&${E28}|12)>
> exten => s,5,Dial(${E25}&${E24}&${E28}&${E22}|12)
Create an waiting extension:
exten => _*XX*XX,1,wait(${EXTEN{1:2})
exten => _*XX*XX,1,dial($EXTEN{3:2})
Then dial using that waiting extension:
exten =>
s,2,Dial(${E25}&Local/*18*${E24}&Local/*30*${E28}&Local/*42*${E28}&Local/*56
*${E22})
This wil dial all the numbers at the same time, however eacht local number
waits a bit longer before executing the dial, hence it hunts :)
So ${E25} will ring instant, ${E24} starts ringing 18 seconds later, ${E28}
starts 12 seconds after ${E24} (timing is related to the 1st phone ringing)
Kind regards,
Erik
>
> ----- snip ------
>
>
>
> This works, but I_ve just realized that it has the unfortunate side
> effect of making each extension appearing to get one call for each
> _Dial_ command. So, ${E25} appears to get four calls if nobody
> answers it and it goes to voicemail. ${E24} three calls, etc.
>
>
>
> Is there a better way to do this kind of extension plan?
>
>
>
> Thanks for any suggestions!
>
>
>
> Ryan Booz
>
> Director of IT
>
> Good Steward Software, LLC
>
> 111 Sowers Street, Suite 400
>
> State College, PA 16801
>
> Phone: 877-327-3702 x.26 (814-237-3744 x.26)
>
> Fax: 719-623-0577
>
> Visit us at www.energycap.com
>
>
>
Ryan Booz
Director of IT
Good Steward Software, LLC
111 Sowers Street, Suite 400
State College, PA 16801
Phone: 877-327-3702 x.26 (814-237-3744 x.26)
Fax: 719-623-0577
Visit us at www.energycap.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20051221/00227d07/attachment.htm