Hi people, I need to update the voicemail.conf from the UpdateConfig Action (AMI). The problem is that I executed: Action: UpdateConfig srcFileName: voicemail.conf dstFileName: voicemail.conf Action-000000:append Cat-000000:test Var-000000:exten Value-000000:>999,test But I don't see the changes in the file. Can anybody tell me if there is something wrong in that code? Thanks, Anahi Ludue?a _________________________________________________________________ Descubre todas las formas en que puedes estar en contacto con amigos y familiares. http://www.microsoft.com/windows/windowslive/default.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090929/57a8d978/attachment.htm
Two questions: 1. do you need an ActionID line? 2. did you try this in a telnet session so you could see the feedback? _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Anahi Ludue?a Sent: Tuesday, September 29, 2009 3:08 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] UpdateConfig Hi people, I need to update the voicemail.conf from the UpdateConfig Action (AMI). The problem is that I executed: Action: UpdateConfig srcFileName: voicemail.conf dstFileName: voicemail.conf Action-000000:append Cat-000000:test Var-000000:exten Value-000000:>999,test But I don't see the changes in the file. Can anybody tell me if there is something wrong in that code? Thanks, _____ Anahi Ludue?a _____ Diferentes formas de estar en contacto con amigos y familiares. Desc?brelas. Desc?brelas. <http://www.microsoft.com/windows/windowslive/default.aspx> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090929/598061ac/attachment.htm
Thanks, the result was: Response: Success Anahi Ludue?a From: danny at debsinc.com To: asterisk-users at lists.digium.com Date: Tue, 29 Sep 2009 15:16:52 -0500 Subject: Re: [asterisk-users] UpdateConfig Two questions: 1. do you need an ActionID line? 2. did you try this in a telnet session so you could see the feedback? From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Anahi Ludue?a Sent: Tuesday, September 29, 2009 3:08 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] UpdateConfig Hi people, I need to update the voicemail.conf from the UpdateConfig Action (AMI). The problem is that I executed: Action: UpdateConfig srcFileName: voicemail.conf dstFileName: voicemail.conf Action-000000:append Cat-000000:test Var-000000:exten Value-000000:>999,test But I don't see the changes in the file. Can anybody tell me if there is something wrong in that code? Thanks, Anahi Ludue?a Diferentes formas de estar en contacto con amigos y familiares. Desc?brelas. Desc?brelas. _________________________________________________________________ Descubre todas las formas en que puedes estar en contacto con amigos y familiares. http://www.microsoft.com/windows/windowslive/default.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090929/05d76cbe/attachment.htm
On Tue, Sep 29, 2009 at 08:07:40PM +0000, Anahi Ludue?a wrote:> > Hi people, I need to update the voicemail.conf from the UpdateConfig Action (AMI). > The problem is that I executed: > > Action: UpdateConfig > srcFileName: voicemail.conf > dstFileName: voicemail.conf > Action-000000:append > Cat-000000:test > Var-000000:exten > Value-000000:>999,testLet me get this straight. You want to add to section [test] the line exten = 999,test That looks more like a line from extensions.conf than a line from voicemail.conf (though 'test' is not really a valid dialplan app).> > But I don't see the changes in the file.Is it writable to the user running Asterisk? -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir