Jose P. Espinal
2009-Jan-16 22:47 UTC
[asterisk-users] UpdateConfig : Appending line fails
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-000000: Append Cat-000000: default Var-000000: 127 Value-000000: >5555, Jason Bourne97, jason25 at noCia.gov.do ActionID: 1256187957 Action: UpdateConfig SrcFilename: voicemail2.conf DstFilename: voicemail2.conf Action-000001: Append Cat-000001: default Var-000001: 125 Value-000001: >55555, Jason Bourne76, jason12 at noCia.gov.do ActionID: 1607673137 Action: UpdateConfig SrcFilename: voicemail2.conf DstFilename: voicemail2.conf Action-000002: Append Cat-000002: default Var-000002: 122 Value-000002: >5555, Jason Bourne74, jason49 at noCia.gov.do ActionID: 165797792 Action: UpdateConfig SrcFilename: voicemail2.conf DstFilename: voicemail2.conf Action-000003: Append Cat-000003: default Var-000003: 128 Value-000003: >5555, Jason Bourne48, jason45 at noCia.gov.do ActionID: 1743636529 Action: UpdateConfig SrcFilename: voicemail2.conf DstFilename: voicemail2.conf Action-000004: Append Cat-000004: default Var-000004: 126 Value-000004: >55555, Jason Bourne18, jason64 at 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
Tilghman Lesher
2009-Jan-17 00:04 UTC
[asterisk-users] UpdateConfig : Appending line fails
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-000000: Append > Cat-000000: default > Var-000000: 127 > Value-000000: >5555, Jason Bourne97, jason25 at noCia.gov.do > ActionID: 1256187957This is a single valid command, and so it works.> Action: UpdateConfig > SrcFilename: voicemail2.conf > DstFilename: voicemail2.conf > Action-000001: Append > Cat-000001: default > Var-000001: 125 > Value-000001: >55555, Jason Bourne76, jason12 at noCia.gov.do > ActionID: 1607673137This command did not specify an Action-000000.> Action: UpdateConfig > SrcFilename: voicemail2.conf > DstFilename: voicemail2.conf > Action-000002: Append > Cat-000002: default > Var-000002: 122 > Value-000002: >5555, Jason Bourne74, jason49 at noCia.gov.do > ActionID: 165797792This command did not specify an Action-000000.> Action: UpdateConfig > SrcFilename: voicemail2.conf > DstFilename: voicemail2.conf > Action-000003: Append > Cat-000003: default > Var-000003: 128 > Value-000003: >5555, Jason Bourne48, jason45 at noCia.gov.do > ActionID: 1743636529This command did not specify an Action-000000.> Action: UpdateConfig > SrcFilename: voicemail2.conf > DstFilename: voicemail2.conf > Action-000004: Append > Cat-000004: default > Var-000004: 126 > Value-000004: >55555, Jason Bourne18, jason64 at noCia.gov.do > ActionID: 495446608This command did not specify an Action-000000.> 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-000000: Append Cat-000000: default Var-000000: 127 Value-000000: >5555, Jason Bourne97, jason25 at noCia.gov.do Action-000001: Append Cat-000001: default Var-000001: 125 Value-000001: >55555, Jason Bourne76, jason12 at noCia.gov.do Action-000002: Append Cat-000002: default Var-000002: 122 Value-000002: >5555, Jason Bourne74, jason49 at noCia.gov.do Action-000003: Append Cat-000003: default Var-000003: 128 Value-000003: >5555, Jason Bourne48, jason45 at noCia.gov.do Action-000004: Append Cat-000004: default Var-000004: 126 Value-000004: >55555, Jason Bourne18, jason64 at noCia.gov.do ActionID: 495446608 -- Tilghman
Jose P. Espinal
2009-Jan-17 04:43 UTC
[asterisk-users] UpdateConfig : Appending line fails
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=<asterisk-users-bounces at lists.digium.com> rejected RCPT <rakh at dangerclan.net>: "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-000000: Append Cat-000000: default Var-000000: 127 Value-000000: >5555, Jason Bourne97, jason25 at noCia.gov.do <http://lists.digium.com/mailman/listinfo/asterisk-users> Action-000001: Append Cat-000001: default Var-000001: 125 Value-000001: >55555, Jason Bourne76, jason12 at noCia.gov.do <http://lists.digium.com/mailman/listinfo/asterisk-users> Action-000002: Append Cat-000002: default Var-000002: 122 Value-000002: >5555, Jason Bourne74, jason49 at noCia.gov.do <http://lists.digium.com/mailman/listinfo/asterisk-users> Action-000003: Append Cat-000003: default Var-000003: 128 Value-000003: >5555, Jason Bourne48, jason45 at noCia.gov.do <http://lists.digium.com/mailman/listinfo/asterisk-users> Action-000004: Append Cat-000004: default Var-000004: 126 Value-000004: >55555, Jason Bourne18, jason64 at noCia.gov.do <http://lists.digium.com/mailman/listinfo/asterisk-users> ActionID: 495446608 -- Tilghman