summaryrefslogtreecommitdiff
path: root/channels/chan_mgcp.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2012-05-14 19:44:27 +0000
committerKinsey Moore <kmoore@digium.com>2012-05-14 19:44:27 +0000
commitb5a6de76fc71e3f604761885dd844975a11893ee (patch)
tree5a8f74f510374ec3768b4e778a797b529133cb8a /channels/chan_mgcp.c
parentfef9a32fb410b47da4cb195f0af2f63f8cac0f03 (diff)
Commit framework for HANGUPCAUSE (replacement for SIP_CAUSE)
This is the starting point for the Asterisk 11: Who Hung Up work and provides a framework which will allow channel drivers to report the types of hangup cause information available in SIP_CAUSE without incurring the overhead of the MASTER_CHANNEL dialplan function. The initial implementation only includes cause generation for chan_sip and does not include cause code translation utilities. This change deprecates SIP_CAUSE and replaces its method of reporting cause codes with the new framework. This change also deprecates the 'storesipcause' option in sip.conf. Review: https://reviewboard.asterisk.org/r/1822/ (Closes issue SWP-4221) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@366408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_mgcp.c')
-rw-r--r--channels/chan_mgcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index 6bec05cae..c3a5c58f4 100644
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -1483,6 +1483,8 @@ static int mgcp_indicate(struct ast_channel *ast, int ind, const void *data, siz
break;
default:
ast_log(LOG_WARNING, "Don't know how to indicate condition %d\n", ind);
+ /* fallthrough */
+ case AST_CONTROL_PVT_CAUSE_CODE:
res = -1;
}
ast_mutex_unlock(&sub->lock);