mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
core_unreal: Fix hangupcauses not getting set on Local channels
ASTERISK-25912 #close Change-Id: I8e72e6894feaf36c9450f2788d205d07baec23aa
This commit is contained in:
committed by
Richard Mudgett
parent
c3339816f1
commit
2cc56573de
@@ -566,6 +566,11 @@ int ast_unreal_indicate(struct ast_channel *ast, int condition, const void *data
|
|||||||
res = -1;
|
res = -1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case AST_CONTROL_PVT_CAUSE_CODE:
|
||||||
|
/* Return -1 so that asterisk core will correctly set up hangupcauses. */
|
||||||
|
unreal_queue_indicate(p, ast, condition, data, datalen);
|
||||||
|
res = -1;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
res = unreal_queue_indicate(p, ast, condition, data, datalen);
|
res = unreal_queue_indicate(p, ast, condition, data, datalen);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user