[asterisk-bugs] [Asterisk 0011522]: DYNAMIC_FEATURES variable looked up in wrong channel during feature interpretation

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Dec 11 20:50:14 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11522 
====================================================================== 
Reported By:                nic_bellamy
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11522
Category:                   Resources/res_features
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.15  
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 92423 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-11-2007 20:47 CST
Last Modified:              12-11-2007 20:50 CST
====================================================================== 
Summary:                    DYNAMIC_FEATURES variable looked up in wrong channel
during feature interpretation
Description: 
I just spent half a day banging my head against the dialplan before
discovering this.

When you are using ${DYNAMIC_FEATURES}, the features are only checked
against the channel that started the bridge. They should be checked against
the channel that pressed the digits and broke the bridge.

This broke the following config for me:

[test]
exten => 201,1,NoOp(Incoming for 201)
exten => 201,n,Dial(SIP/201,30,rtM(dynamic-features))

[macro-dynamic-features]
exten => s,1,Set(DYNAMIC_FEATURES=myfeature)

What I wanted was for the called channel (SIP/201) to be able to dial the
dynamic feature code, but not the calling channel; when attempting to dial
it, however, it wouldn't work.

There's a lot more detail that could be added, but instead, I'm going to
attach a patch - since when you read it, you'll go "Doh!" and instantly see
the problem.

This bug is probably the reason most people have avoided using dynamic
features - it was impossible to make them work correctly.
====================================================================== 

---------------------------------------------------------------------- 
 nic_bellamy - 12-11-07 20:50  
---------------------------------------------------------------------- 
Whoops, ignore dynamic_features_branch1.4-rev92423.patch and look at
dynamic_features_branch1.4-rev92423_v2.patch - I missed a bit.

Admin, please remove dynamic_features_branch1.4-rev92423.patch 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-11-07 20:50  nic_bellamy    Note Added: 0075248                          
======================================================================




More information about the asterisk-bugs mailing list