[asterisk-bugs] [Asterisk 0007767]: [patch] Allow a simple lookup for hint extensions

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jan 11 16:50:31 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=7767 
====================================================================== 
Reported By:                Corydon76
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   7767
Category:                   Core/Configuration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 55435 
Disclaimer on File?:        Yes 
Request Review:              
====================================================================== 
Date Submitted:             08-19-2006 23:44 CDT
Last Modified:              01-11-2008 16:50 CST
====================================================================== 
Summary:                    [patch] Allow a simple lookup for hint extensions
Description: 
Currently, all hints must contain only expressions which do not depend upon
a channel definition, since hints may be called without a channel. 
However, since hints are always context- and extension-specific, there
should be a way to reference those indicated values when evaluating a hint.
====================================================================== 

---------------------------------------------------------------------- 
 plack - 01-11-08 16:50  
---------------------------------------------------------------------- 
Problem was where we called ast_add_extension and tried to pass a (void
*)strdup into the data parameter.  Removed the (void *) and it works
great.

I have modified the code to this in branch/1.4 to simplify and make the
variables in the Application be evaluated at register time (when the hint
extension is created.  I will be posting a patch shortly against trunk for
this function with these changes.

We are now using this in a branch/1.4 production enviroment and it works
well.  Great idea. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-11-08 16:50  plack          Note Added: 0076763                          
======================================================================




More information about the asterisk-bugs mailing list