RECORD_CHANNEL_STOP_RTN_ST

stop_reason
Specifies why recording was stopped. the reasons are:
RECORDSTOP_REASON_RECORDSTOP
Stopped by CA_Stop_Record_Channel().
RECORDSTOP_REASON_DTMF
A DTMF stop key was detected.
RECORDSTOP_REASON_OVERRUN
An overrun condition occurred, that is, the custom server did not read data as fast as it was being received. Some data was lost.
RECORDSTOP_REASON_SILENCE
Silence was detected for too long on the channel. The value set by the system parameter Maximum Silence Duration has been exceeded.
RECORDSTOP_REASON_HUP
A call hang up was detected. No more recording can take place on the channel, you should close the channel.
RECORDSTOP_REASON_CHP
The channel process handling the application has stopped the record.