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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Dec 11 10:54:47 CST 2008


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13478 
====================================================================== 
Reported By:                neutrino88
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   13478
Category:                   Resources/res_features
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-09-13 16:14 CDT
Last Modified:              2008-12-11 10:54 CST
====================================================================== 
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.
====================================================================== 

---------------------------------------------------------------------- 
 (0096210) svnbot (reporter) - 2008-12-11 10:54
 http://bugs.digium.com/view.php?id=13478#c96210 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 163092

U   branches/1.4/res/res_features.c

------------------------------------------------------------------------
r163092 | russell | 2008-12-11 10:54:46 -0600 (Thu, 11 Dec 2008) | 11
lines

Fix an issue that made it so you could only have a single caller executing
a custom feature at a time.  This was especially problematic when custom
features ran for any appreciable amount of time.

The fix turned out to be quite simple.  The dynamic features are now
stored
in a read/write list instead of a list using a mutex.

(closes issue http://bugs.digium.com/view.php?id=13478)
Reported by: neutrino88
Fix suggested by file

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=163092 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-11 10:54 svnbot         Note Added: 0096210                          
2008-12-11 10:54 svnbot         Status                   assigned => resolved
2008-12-11 10:54 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list