- Joined
- Apr 7, 2011
- Messages
- 8
- Reaction score
- 0
I use a call flow where the customer is able to record a message. When the customer records a message and disconnects the line i use the disconnect handler flow to email the message (wav file) anyway (many customers forget to decent close the recording) .
There is one problem: when the customer disconnects before a wav file is recorded and before another customer lefts a message, the previous wav file is send by email again for the second time.
In the VAD i simply removed the wav file when it existed before starting a recording.
The new CFD uses C# scripts. Can you give me an exampe of a C# script to remove a file ?
Or can you add "remove file" to the "Read/Write to file" (Advanced Options) ??
There is one problem: when the customer disconnects before a wav file is recorded and before another customer lefts a message, the previous wav file is send by email again for the second time.
In the VAD i simply removed the wav file when it existed before starting a recording.
The new CFD uses C# scripts. Can you give me an exampe of a C# script to remove a file ?
Or can you add "remove file" to the "Read/Write to file" (Advanced Options) ??