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

Erik erik at infopact.nl
Wed Dec 21 01:04:26 MST 2005


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




More information about the asterisk-users mailing list