[asterisk-bugs] [Asterisk 0014789]: [patch] add possibility to read

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Apr 1 14:38:59 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14789 
====================================================================== 
Reported By:                junky
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14789
Category:                   Functions/func_volume
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 184986 
Request Review:              
====================================================================== 
Date Submitted:             2009-03-30 14:18 CDT
Last Modified:              2009-04-01 14:38 CDT
====================================================================== 
Summary:                    [patch] add possibility to read
Description: 
Currently, with VOLUME() with can only set values with that function.

In some cases, it could be useful to read the existing value.

====================================================================== 

---------------------------------------------------------------------- 
 (0102563) eliel (manager) - 2009-04-01 14:38
 http://bugs.digium.com/view.php?id=14789#c102563 
---------------------------------------------------------------------- 
You have removed the code that initialize the audiohook, that is correct,
but you also need to avoid creating a datastore on that channel if you are
reading the value. Just reply with a ast_copy_string(buf, "0", len);

If you allocate a datastore, then the next call to valume_write won't
create the audiohook. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-01 14:38 eliel          Note Added: 0102563                          
======================================================================




More information about the asterisk-bugs mailing list