[HELP]ManagerAPI getting the result code from an application

Gentlefolk,
I posted this question previously on the user forum with no response, so I’m reposting the question here.

Basically I have an Manager API connection through which I’m doing an Originate to call the application txfax.

The issue is that I need to get the result once txfax has completed.
txfax returns 0 if the fax was transmitted successfully and -1 if it failed.

I have not been able to find any way to get the result.

Can anyone tell me how to accomplish this.

Is there a way to solve this using FASTAGI?

Any help would be greatly appreciated.

Regards,
Brett.

You can do it by controlling events that asterisk sent to Manager API.