[asterisk-bugs] [Asterisk 0014262]: UpdateConfig not handling correctly sets of parameters

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jan 16 18:34:01 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14262 
====================================================================== 
Reported By:                khratos
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14262
Category:                   Core/ManagerInterface
Reproducibility:            always
Severity:                   trivial
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.22 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-01-16 17:46 CST
Last Modified:              2009-01-16 18:34 CST
====================================================================== 
Summary:                    UpdateConfig not handling correctly sets of
parameters
Description: 
In the ATFOT book, pg. 545, 'notes' section we see: 

"Note that the first set of parameters should be numbered 000000, the
second 000001, and so on. This allows you to update many different
configuration values at the same time."

Given a file 'voicemail2.conf' with an empty context [default],  sending
the following data to the AMI Interface will only handle the FIRST set of
parameters, ignoring the rest of the same kind (UpdateConfig parameters):


Action: login
Username: test
Secret: 123456

Action: UpdateConfig
SrcFilename: voicemail2.conf
DstFilename: voicemail2.conf
Action-000000: Append
Cat-000000: default
Var-000000: 127
Value-000000: >5555, Jason Bourne58, jason100 at noCia.gov.do,
ActionID: 1447626984

Action: UpdateConfig
SrcFilename: voicemail2.conf
DstFilename: voicemail2.conf
Action-000001: Append
Cat-000001: default
Var-000001: 125
Value-000001: >55555, Jason Bourne25, jason34 at noCia.gov.do,
ActionID: 587122214

Action: UpdateConfig
SrcFilename: voicemail2.conf
DstFilename: voicemail2.conf
Action-000002: Append
Cat-000002: default
Var-000002: 122
Value-000002: >5555, Jason Bourne36, jason54 at noCia.gov.do,
ActionID: 1891210230
====================================================================== 

---------------------------------------------------------------------- 
 (0098077) jamesgolovich (manager) - 2009-01-16 18:34
 http://bugs.digium.com/view.php?id=14262#c98077 
---------------------------------------------------------------------- 
I'm not sure what the book says or if there is an example in there.  Your
just doing it incorrectly.  All of the params need to be in the same
action



More information about the asterisk-bugs mailing list