Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] default features


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ethy.brito at inexo.co...
Guest





PostPosted: Wed Jun 03, 2015 11:47 am    Post subject: [asterisk-users] default features Reply with quote

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





PostPosted: Wed Jun 03, 2015 12:06 pm    Post subject: [asterisk-users] default features Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services