mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
Add test events necessary for bridging tests to be able to properly run.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@377906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3616,6 +3616,10 @@ static int feature_interpret_helper(struct ast_channel *chan, struct ast_channel
|
|||||||
res = AST_FEATURE_RETURN_SUCCESS; /* We found something */
|
res = AST_FEATURE_RETURN_SUCCESS; /* We found something */
|
||||||
} else if (operation == FEATURE_INTERPRET_DO) {
|
} else if (operation == FEATURE_INTERPRET_DO) {
|
||||||
res = builtin_features[x].operation(chan, peer, config, code, sense, NULL);
|
res = builtin_features[x].operation(chan, peer, config, code, sense, NULL);
|
||||||
|
ast_test_suite_event_notify("FEATURE_DETECTION",
|
||||||
|
"Result: success\r\n"
|
||||||
|
"Feature: %s",
|
||||||
|
builtin_features[x].sname);
|
||||||
}
|
}
|
||||||
if (feature) {
|
if (feature) {
|
||||||
memcpy(feature, &builtin_features[x], sizeof(*feature));
|
memcpy(feature, &builtin_features[x], sizeof(*feature));
|
||||||
@@ -3628,6 +3632,12 @@ static int feature_interpret_helper(struct ast_channel *chan, struct ast_channel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (operation == FEATURE_INTERPRET_CHECK && x == FEATURES_COUNT) {
|
||||||
|
ast_test_suite_event_notify("FEATURE_DETECTION",
|
||||||
|
"Result: fail");
|
||||||
|
}
|
||||||
|
|
||||||
ast_rwlock_unlock(&features_lock);
|
ast_rwlock_unlock(&features_lock);
|
||||||
|
|
||||||
if (ast_strlen_zero(dynamic_features_buf) || feature_detected) {
|
if (ast_strlen_zero(dynamic_features_buf) || feature_detected) {
|
||||||
|
|||||||
Reference in New Issue
Block a user