Skip to content
Snippets Groups Projects
Commit 09879762 authored by Leonid Fainshtein's avatar Leonid Fainshtein Committed by Oron Peled
Browse files

openr2(6/6): Set hangup cause


Change-Id: I94dc38920e6e77cc73062648f62fdd613d0d1452
Signed-off-by: default avatarOron Peled <oron.peled@xorcom.com>
parent f6709450
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 ...@@ -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_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_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_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 /* when we have an owner we don't call dahdi_r2_disconnect_call here, that will
be done in dahdi_hangup */ 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