`getDefaults()` and `$extra_result_data` are meant to be used for sms result, not statuses. You could directly return `$res`

You shouldn't mix status result and sms-sending result parsing.