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, [email protected]
> 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, [email protected]
> 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, [email protected]
> 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, [email protected]
> 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, [email protected]
> 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, [email protected]
Action-000001: Append
Cat-000001: default
Var-000001: 125
Value-000001: >55555, Jason Bourne76, [email protected]
Action-000002: Append
Cat-000002: default
Var-000002: 122
Value-000002: >5555, Jason Bourne74, [email protected]
Action-000003: Append
Cat-000003: default
Var-000003: 128
Value-000003: >5555, Jason Bourne48, [email protected]
Action-000004: Append
Cat-000004: default
Var-000004: 126
Value-000004: >55555, Jason Bourne18, [email protected]
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

Reply via email to