[Asterisk-Users] RE: Rolling dialplan... best practice?

Ryan Booz ryanb at energycap.com
Wed Dec 21 07:47:04 MST 2005


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 at infopact.nl>

Subject: Re: [Asterisk-Users] Rolling dialplan... best practice?

To: Asterisk Users Mailing List - Non-Commercial Discussion

      <asterisk-users at lists.digium.com>

Message-ID: <43A90C8A.4050704 at 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


More information about the asterisk-users mailing list