[asterisk-bugs] [Asterisk 0013478]: [patch] Only one custom feature can be executed simultaneously

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Oct 6 08:35:14 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13478 
====================================================================== 
Reported By:                neutrino88
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13478
Category:                   Resources/res_features
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     confirmed
Asterisk Version:           1.4.21.2 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-09-13 16:14 CDT
Last Modified:              2008-10-06 08:35 CDT
====================================================================== 
Summary:                    [patch] Only one custom feature can be executed
simultaneously
Description: 
On an asterisk server, there can be only one feature executed
simulatenously.

Ex: in feature.conf

define a feature such as

[applicationmap]
playmessage => **3,,callee,Macro,play-long-message

in extention.conf, define the attached macro

[macro-play-long-message]
exten => s,1,Playback(longmessage)

If you call in an extention with this feature activated (in the variable
DYNAMIC_FEATURE), the macro can be triggered by pressing '**3'.

If you make a second call to the same extention and try to trigger the
SAME macro / feature, the second chan hangs until the first chan has
completed the execution of the feature.
====================================================================== 

---------------------------------------------------------------------- 
 (0093211) russell (administrator) - 2008-10-06 08:35
 http://bugs.digium.com/view.php?id=13478#c93211 
---------------------------------------------------------------------- 
Thanks for the patch.  However, the fix here is going to have to be a bit
more complicated.  The way that this patch works, a crash could occur,
because there is no longer anything ensuring that the feature being
accessed doesn't get deleted due to a reload.

The fix I would like to see here is to convert the features to astobj2
objects. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-06 08:35 russell        Note Added: 0093211                          
======================================================================




More information about the asterisk-bugs mailing list