Hi

We are provisioning some default features to our customers like "automated 
answer when outside labor time", "rerouting when Subscriber Absent", and so.

These are macro calls embedded in key points inside the dialplan.

Since not all customers need/want all features and they (the features) are
customized, I named them like [macro-feature1-ClientA],
[macro-feature4-ClientF], ... 

Question: is there some built-in way to know if macro "feature1-ClientA" is 
defined? Something like 
        ExecIfMacro(feature1-ClientA)?macro(feature1-ClientA):Goto(...).

For the moment, we are using an external command like 
        "asterisk -rx 'dialplan show'| grep ..." 
to set a "__variable" and we use it later to decide to execute or not the
"suspicious" macro.

Cheers

Ethy

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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

Reply via email to