itisrama wrote
how can i make fixed name? by php script or there is another method??
Probably I did not understand your first question correctly
...
When using an eventhandler, there is an argument $2 which is the path and filename of a message. In the case of a failure, the first argument contains "FAILED" and your script can then store the filename using the second argument.
itisrama wrote
by using eventhandler... do all messages from any type will be stored in single table??
Yes, that's what the sample eventhandler will do. The column "type" defines a message (SENT, RECEIVED, FAILED, REPORT or CALL).
When thinking about re-sending, you should also check what has been the reason of a failure. In the file in the failed folder, there is a Fail_reason header included. With that information you can decide is re-sending is needed. For example, if the failure is permanent, re-sending makes no sense.