Merge "resource_channels.c: add hangup reason "answered_elsewhere"."

This commit is contained in:
zuul
2016-09-07 02:05:47 -05:00
committed by Gerrit Code Review
2 changed files with 4 additions and 1 deletions

View File

@@ -886,6 +886,8 @@ void ast_ari_channels_hangup(struct ast_variable *headers,
cause = AST_CAUSE_CONGESTION; cause = AST_CAUSE_CONGESTION;
} else if (!strcmp(args->reason, "no_answer")) { } else if (!strcmp(args->reason, "no_answer")) {
cause = AST_CAUSE_NOANSWER; cause = AST_CAUSE_NOANSWER;
} else if(!strcmp(args->reason, "answered_elsewhere")) {
cause = AST_CAUSE_ANSWERED_ELSEWHERE;
} else { } else {
ast_ari_response_error( ast_ari_response_error(
response, 400, "Invalid Reason", response, 400, "Invalid Reason",

View File

@@ -400,7 +400,8 @@
"normal", "normal",
"busy", "busy",
"congestion", "congestion",
"no_answer" "no_answer",
"answered_elsewhere"
] ]
} }
} }