[asterisk-bugs] [Asterisk 0013698]: [patch] Support a 'no-patterns' option for the Realtime switch

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Oct 31 03:41:15 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13698 
====================================================================== 
Reported By:                fhackenberger
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13698
Category:                   Addons/New Feature
Reproducibility:            have not tried
Severity:                   feature
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.17 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-15 07:31 CDT
Last Modified:              2008-10-31 03:41 CDT
====================================================================== 
Summary:                    [patch] Support a 'no-patterns' option for the
Realtime switch
Description: 
This patch adds a 'no-patterns' option to the Realtime dialplan switch in
order to be able to reduce the number of
SELECT * FROM extension_table WHERE exten LIKE '\\_%' AND ...
statements.

This is very useful in dialplans with a lot of includes.
====================================================================== 

---------------------------------------------------------------------- 
 (0094461) fhackenberger (reporter) - 2008-10-31 03:41
 http://bugs.digium.com/view.php?id=13698#c94461 
---------------------------------------------------------------------- 
Added a patch for trunk against r153040. Compiles just fine. Judging from
the source code the patch should work just fine (the function it affects is
just the same as in 1.4). The diff between the 1.4 patch and the 1.6 patch
boils down to:
28c28
<       var = ast_load_realtime(table, ematch, rexten, "context", context,
"priority", pri, NULL);
---
>       var = ast_load_realtime(table, ematch, rexten, "context", context,
"priority", pri, SENTINEL);
31c31
<               cfg = ast_load_realtime_multientry(table, "exten LIKE",
"\\_%", "context", context, "priority", pri, NULL);
---
>               cfg = ast_load_realtime_multientry(table, "exten LIKE",
"\\_%", "context", context, "priority", pri, SENTINEL);
34c34 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-31 03:41 fhackenberger  Note Added: 0094461                          
======================================================================




More information about the asterisk-bugs mailing list