Summary: | ASTERISK-02862: [patch] MacroIf() | ||
Reporter: | Anthony Minessale (anthm) | Labels: | |
Date Opened: | 2004-11-19 23:54:45.000-0600 | Date Closed: | 2008-01-15 15:14:44.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_macro |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) app_macro_rev2.diff ( 1) app_macro.diff | |
Description: | This patch extends app_macro to also register MacroIf(<expr>?label_a[|arg1][:label_b[|arg1]]) It is similar to GotoIf only it will execute the specified macro based on the provided expression. e.g. [macro-a] exten => s,1,Verbose(0|you chose A arg ${ARG1}) [macro-b] exten => s,1,Verbose(0|you chose B arg ${ARG1}) [default] exten => 1,1,SetVar(X=2) exten => 1,2,MacroIf($[ ${X} > 1 ]?a|hello:b|goodbye) exten => 1,3,Hangup yields you chose A arg hello ****** ADDITIONAL INFORMATION ****** Disclaimer on file anthmct@yahoo.com | ||
Comments: | By: Mark Spencer (markster) 2004-11-22 18:42:15.000-0600 Added to CVS, thanks! By: Russell Bryant (russell) 2004-11-25 02:31:35.000-0600 not in 1.0 By: Digium Subversion (svnbot) 2008-01-15 15:14:44.000-0600 Repository: asterisk Revision: 4319 U trunk/apps/app_macro.c ------------------------------------------------------------------------ r4319 | markster | 2008-01-15 15:14:43 -0600 (Tue, 15 Jan 2008) | 2 lines Merge anthm's MacroIf patch (bug ASTERISK-2862) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=4319 |