Hi,

Does anyone have a clever method of doing a conditional "include =>"
line in the dialplan?

I want to include a bunch of standard contexts, but in the middle of
the bunch have one or more conditionally included, a bit like:

[default]
include => start-here
include => then-here
if $[{COMPANY} = A]
    include => company-A
endif
if $[{COMPANY} = B]
    include => company-B
endif
if $[{COMPANY} = C]
    include => company-C
endif
include => end-here


The list of conditional variables, and of static includes is
potentially large, so I do not want to create several separate sets of
contexts with lots of repetition as it is likely to get out-of-control
very quickly.

Help?
Steve

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to