VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
ethy.brito at inexo.co... Guest
|
Posted: Wed Jun 03, 2015 11:47 am Post subject: [asterisk-users] default features |
|
|
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 |
|
Back to top |
|
|
kenner at gnat.com Guest
|
Posted: Wed Jun 03, 2015 12:06 pm Post subject: [asterisk-users] default features |
|
|
Quote: | Question: is there some built-in way to know if macro
"feature1-ClientA" is defined? Something liken
ExecIfMacro(feature1-ClientA)?macro(feature1-ClientA):Goto(...).
|
A macro is a context, so DIALPLAN_EXISTS should work if you specify an
extension and priority that's in the macro (presumably, "s,1").
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|