[asterisk-users] UpdateConfig : Appending line fails

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri Jan 16 18:04:23 CST 2009


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: 1256187957

This 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: 1607673137

This 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: 165797792

This 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: 1743636529

This 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: 495446608

This 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



More information about the asterisk-users mailing list