[asterisk-users] Help With AMI

Jim Dickenson dickenson at cfmc.com
Wed Oct 15 18:02:33 CDT 2008


I have figured out what I was doing wrong. Although when I issued my action
I got a good return there were problems with my action. One thing I needed
to do was a newcat before I adding values. Would have been nice if I had
gotten some error saying trying to add values to a non-existant cat.

In any event I have updated both the agent.conf and manager.conf files. Will
try others to see how far I get.

Is there any more documentation other than reading the source code and this
little bit here:

http://www.voip-info.org/wiki/index.php?page=Asterisk+Manager+API+Action+Upd
ateConfig


-- 
Jim Dickenson
mailto:dickenson at cfmc.com

CfMC
http://www.cfmc.com/



> From: Martin Smith <martins at bebr.ufl.edu>
> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion
> <asterisk-users at lists.digium.com>
> Date: Wed, 15 Oct 2008 09:09:48 -0400
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> <asterisk-users at lists.digium.com>
> Conversation: [asterisk-users] Help With AMI
> Subject: Re: [asterisk-users] Help With AMI
> 
> The Asterisk-Java project has a working API implementation that includes
> this command, and has it documented here:
> http://asterisk-java.org/development/apidocs/org/asteriskjava/manager/ac
> tion/UpdateConfigAction.html
> 
> It's sort of an all-in-one action. Scroll down in the link above to the
> addCommand method, and there's some explanation of the fields.
> 
> Hope that helps,
> 
> Martin Smith, Systems Developer
> martins at bebr.ufl.edu
> Bureau of Economic and Business Research
> University of Florida
> (352) 392-0171 Ext. 221
> 
>> -----Original Message-----
>> From: asterisk-users-bounces at lists.digium.com
>> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
>> Jim Dickenson
>> Sent: Tuesday, October 14, 2008 6:58 PM
>> To: Asterisk User MailList
>> Subject: [asterisk-users] Help With AMI
>> 
>> I am trying to get updateconfig working.
>> 
>> I found an example of updating configuration files here:
>> 
>> http://www.voip-info.org/wiki/index.php?page=Asterisk+Manager+
>> API+Action+Upd
>> ateConfig
>> 
>> When I tried it the conf file was updated but the new entry
>> was not added.
>> 
>> action:updateconfig
>> reload:no
>> srcfilename:manager.conf
>> dstfilename:manager.conf
>> Action-000000:append
>> Cat-000000:newuser
>> Var-000000:secret
>> Value-000000:nottelling
>> 
>> I have searched various web sites and mail lists but I can
>> not find very
>> much documentation about how the updateconfig action is to work.
>> 
>> Can anyone point me to additional documentation in addition
>> to offering some
>> ideas as to why the above transaction might not work.
>> 
>> TIA
>> -- 
>> Jim Dickenson
>> mailto:dickenson at cfmc.com
>> 
>> CfMC
>> http://www.cfmc.com/
>> 
>> 
>> 
>> 
>> _______________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>> 
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>> 
> 
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list