Re: [asterisk-users] UpdateConfig

2009-09-30 Thread Anahi Ludueña

Thanks,
It worked, it seems there was something wrong. The following is working now:

Action: UpdateConfig
srcFileName: voicemail.conf
dstFileName: voicemail.conf
Action-00: Append
Cat-00: default
Var-00: 2000
Value-00: >,Jhon
ActionID: 1234

Bye,




Anahi Ludueña
 



> Date: Tue, 29 Sep 2009 17:50:05 -0500
> From: jsm...@digium.com
> To: asterisk-users@lists.digium.com
> Subject: Re: [asterisk-users] UpdateConfig
> 
> - "Danny Nicholas"  wrote:
> > Two questions: 1. do you need an ActionID line?
> 
> Danny,
> 
> It's *always* considered best practice to have an ActionID line in AMI 
> commands, so that you can easily differentiate the responses, especially to 
> asynchronous commands.
> 
> --
> Jared Smith
> Training Manager
> Digium, Inc.
> 
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
  
_
Chatea sin límites en Messenger con la tarifa plana de Orange
http://serviciosmoviles.es.msn.com/messenger/orange.aspx___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] UpdateConfig

2009-09-29 Thread Jared Smith
- "Danny Nicholas"  wrote:
> Two questions: 1. do you need an ActionID line?

Danny,

It's *always* considered best practice to have an ActionID line in AMI 
commands, so that you can easily differentiate the responses, especially to 
asynchronous commands.

--
Jared Smith
Training Manager
Digium, Inc.

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] UpdateConfig

2009-09-29 Thread Tzafrir Cohen
On Tue, Sep 29, 2009 at 08:07:40PM +, 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-00:append
> Cat-00:test
> Var-00:exten
> Value-00:>999,test

Let 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.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] UpdateConfig

2009-09-29 Thread Anahi Ludueña

Thanks, the result was:


Response: Success







Anahi Ludueña
 



From: da...@debsinc.com
To: asterisk-users@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-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Anahi Ludueña

Sent: Tuesday, September 29, 2009
3:08 PM

To: asterisk-users@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-00:append

Cat-00:test

Var-00:exten

Value-00:>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___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] UpdateConfig

2009-09-29 Thread Danny Nicholas
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-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Anahi Ludueña
Sent: Tuesday, September 29, 2009 3:08 PM
To: asterisk-users@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-00:append
Cat-00:test
Var-00:exten
Value-00:>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> 

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] UpdateConfig

2009-09-29 Thread Anahi Ludueña

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-00:append
Cat-00:test
Var-00:exten
Value-00:>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___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] UpdateConfig : Appending line fails

2009-01-17 Thread Tilghman Lesher
On Friday 16 January 2009 22:43:51 Jose P. Espinal wrote:
> About UpdateConfig syntax, how did  you find out the correct way of sending
> various sets of parameters? I was looking in google, the ATFOT v2 Book, and
> nothing showed up.

I wrote a patch for a problem with that function last month, and therefore I
have become intimately familiar with the code (even though that code wasn't
at fault, I had to analyze it to make that determination).

-- 
Tilghman

___
-- 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


[asterisk-users] UpdateConfig : Appending line fails

2009-01-16 Thread Jose P. Espinal
Thank you very much, Tilghman, 
I did not respond before because for some reason the IP of the list server was 
blacklisted on spamhaus.org and I was not getting the messages

see:


2009-01-16 22:47:49 H=(lists.digium.com) [216.207.245.1] 
F= rejected RCPT 
: "JunkMail rejected - (lists.digium.com) [216.207.245.1] 
is in an RBL, see http://www.spamhaus.org/query/bl?ip=216.207.245.1";



About UpdateConfig syntax, how did  you find out the correct way of sending 
various sets of parameters?
I was looking in google, the ATFOT v2 Book, and nothing showed up.



Thanks again, regards.





--
Jose P. Espinal

 
 

>/
/>/
/>/ I'm I missing something?
/
Perhaps you actually meant to do the following command:

Action: UpdateConfig
SrcFilename: voicemail2.conf
DstFilename: voicemail2.conf
Action-00: Append
Cat-00: default
Var-00: 127
Value-00: >, Jason Bourne97, jason25 at noCia.gov.do 

Action-01: Append
Cat-01: default
Var-01: 125
Value-01: >5, Jason Bourne76, jason12 at noCia.gov.do 

Action-02: Append
Cat-02: default
Var-02: 122
Value-02: >, Jason Bourne74, jason49 at noCia.gov.do 

Action-03: Append
Cat-03: default
Var-03: 128
Value-03: >, Jason Bourne48, jason45 at noCia.gov.do 

Action-04: Append
Cat-04: default
Var-04: 126
Value-04: >5, Jason Bourne18, jason64 at noCia.gov.do 

ActionID: 495446608

-- 
Tilghman


___
-- 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


Re: [asterisk-users] UpdateConfig : Appending line fails

2009-01-16 Thread Tilghman Lesher
On Friday 16 January 2009 16:47:40 Jose P. Espinal wrote:
> Can someone please point me out why would a stream like the following
> only write ONE line (the first) on the given file?
>
> Action: login
> Username: test
> Secret: 123456
>
> Action: UpdateConfig
> SrcFilename: voicemail2.conf
> DstFilename: voicemail2.conf
> Action-00: Append
> Cat-00: default
> Var-00: 127
> Value-00: >, Jason Bourne97, jaso...@nocia.gov.do
> ActionID: 1256187957

This is a single valid command, and so it works.

> Action: UpdateConfig
> SrcFilename: voicemail2.conf
> DstFilename: voicemail2.conf
> Action-01: Append
> Cat-01: default
> Var-01: 125
> Value-01: >5, Jason Bourne76, jaso...@nocia.gov.do
> ActionID: 1607673137

This command did not specify an Action-00.

> Action: UpdateConfig
> SrcFilename: voicemail2.conf
> DstFilename: voicemail2.conf
> Action-02: Append
> Cat-02: default
> Var-02: 122
> Value-02: >, Jason Bourne74, jaso...@nocia.gov.do
> ActionID: 165797792

This command did not specify an Action-00.

> Action: UpdateConfig
> SrcFilename: voicemail2.conf
> DstFilename: voicemail2.conf
> Action-03: Append
> Cat-03: default
> Var-03: 128
> Value-03: >, Jason Bourne48, jaso...@nocia.gov.do
> ActionID: 1743636529

This command did not specify an Action-00.

> Action: UpdateConfig
> SrcFilename: voicemail2.conf
> DstFilename: voicemail2.conf
> Action-04: Append
> Cat-04: default
> Var-04: 126
> Value-04: >5, Jason Bourne18, jaso...@nocia.gov.do
> ActionID: 495446608

This command did not specify an Action-00.

> Action: Logoff
> Username: test
>
>
> I'm I missing something?

Perhaps you actually meant to do the following command:

Action: UpdateConfig
SrcFilename: voicemail2.conf
DstFilename: voicemail2.conf
Action-00: Append
Cat-00: default
Var-00: 127
Value-00: >, Jason Bourne97, jaso...@nocia.gov.do
Action-01: Append
Cat-01: default
Var-01: 125
Value-01: >5, Jason Bourne76, jaso...@nocia.gov.do
Action-02: Append
Cat-02: default
Var-02: 122
Value-02: >, Jason Bourne74, jaso...@nocia.gov.do
Action-03: Append
Cat-03: default
Var-03: 128
Value-03: >, Jason Bourne48, jaso...@nocia.gov.do
Action-04: Append
Cat-04: default
Var-04: 126
Value-04: >5, Jason Bourne18, jaso...@nocia.gov.do
ActionID: 495446608

-- 
Tilghman

___
-- 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


[asterisk-users] UpdateConfig : Appending line fails

2009-01-16 Thread Jose P. Espinal
Hello list,

Can someone please point me out why would a stream like the following 
only write ONE line (the first) on the given file?

Action: login
Username: test
Secret: 123456

Action: UpdateConfig
SrcFilename: voicemail2.conf
DstFilename: voicemail2.conf
Action-00: Append
Cat-00: default
Var-00: 127
Value-00: >, Jason Bourne97, jaso...@nocia.gov.do
ActionID: 1256187957

Action: UpdateConfig
SrcFilename: voicemail2.conf
DstFilename: voicemail2.conf
Action-01: Append
Cat-01: default
Var-01: 125
Value-01: >5, Jason Bourne76, jaso...@nocia.gov.do
ActionID: 1607673137

Action: UpdateConfig
SrcFilename: voicemail2.conf
DstFilename: voicemail2.conf
Action-02: Append
Cat-02: default
Var-02: 122
Value-02: >, Jason Bourne74, jaso...@nocia.gov.do
ActionID: 165797792

Action: UpdateConfig
SrcFilename: voicemail2.conf
DstFilename: voicemail2.conf
Action-03: Append
Cat-03: default
Var-03: 128
Value-03: >, Jason Bourne48, jaso...@nocia.gov.do
ActionID: 1743636529

Action: UpdateConfig
SrcFilename: voicemail2.conf
DstFilename: voicemail2.conf
Action-04: Append
Cat-04: default
Var-04: 126
Value-04: >5, Jason Bourne18, jaso...@nocia.gov.do
ActionID: 495446608

Action: Logoff
Username: test


I'm I missing something?

PS. (I receive 'success' for all of the updating attempts)


Thanks in advice,


--
Jose P. Espinal
http://blog.slackware-es.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