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

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jan 16 21:01:34 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 21:01 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
====================================================================== 

---------------------------------------------------------------------- 
 (0098082) khratos (reporter) - 2009-01-16 21:01
 http://bugs.digium.com/view.php?id=14262#c98082 
---------------------------------------------------------------------- 
I'm very sorry for posting it here, I thought it was a 'trivial' bug,
because of the following:

a) There is no example available (no matter what google keyword you use on
search) that gives you a clue on this particular topic.
b) After asking a couple of time on #asterisk (and waiting several hours
for a response) nobody came up with something.
c) I did not get any response on asterisk-users
d) The book ATFOT only mentions what I pasted previously

I tried reading the source code, and even if I understood some little
things about how it works, I could not find out the correct way to do it
from it.


Once again, sorry.


PS.
Thank you very much for telling me the right way to do it.
Is there any other place where I can look for deeper information about the
AMI ?
(The voip-info.org website barely scratch the surface on details) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-16 21:01 khratos        Note Added: 0098082                          
======================================================================




More information about the asterisk-bugs mailing list