Skip to content
Snippets Groups Projects
Commit 7646f419 authored by Friendly Automation's avatar Friendly Automation Committed by Gerrit Code Review
Browse files

Merge "openr2(6/6): Set hangup cause"

parents 96a2ce1a 09879762
No related branches found
No related tags found
No related merge requests found
......@@ -3878,6 +3878,7 @@ static void dahdi_r2_on_call_disconnect(openr2_chan_t *r2chan, openr2_call_disco
ast_copy_string(cause_code->code, cause_str, datalen + 1 - sizeof(*cause_code));
ast_queue_control_data(p->owner, AST_CONTROL_PVT_CAUSE_CODE, cause_code, datalen);
ast_channel_hangupcause_hash_set(p->owner, cause_code, datalen);
ast_channel_hangupcause_set(p->owner, cause_code->ast_cause);
 
/* when we have an owner we don't call dahdi_r2_disconnect_call here, that will
be done in dahdi_hangup */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment