Asterisk chan_dongle GUI to massive sms sending

Hi…I’m modyfing the project using call file and donglesendsms dialplan application… … e-sending/

I Wish i could add a sort of check about outgoing sms…so that if it fails , sms wouldn’t be lost
AMI is the right way or in DIALPLAN using system function i could do anything good?