[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 17:16:32 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 17:16 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 17:16  
---------------------------------------------------------------------- 
I have successfully compiled against trunk 98436.

The major difference that I modified from Corydon's change is that I moved
the resolution of the Application variables into the ast_add_extension2
where he had removed them because they were stripping any ${EXTEN} from the
hint.

So now you can do thing like this:

_#45#XXXX,hint,Custom:${EXTEN:4:4}-${r-we-open}

And the system will then generate a hint extension for
http://bugs.digium.com/view.php?id=45#5000 and a
variable for r-we-open=y of

http://bugs.digium.com/view.php?id=45#5000,hint,Custom:5000-y

This works well with the DEVSTATE code in trunk and the backport to 1.4

Good work Corydon.  I love it. 

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




More information about the asterisk-bugs mailing list