Perform the initial renaming of the Bridging API
[asterisk/asterisk.git] / bridges / bridge_builtin_interval_features.c
index a4fd97b..2ca3f7d 100644 (file)
@@ -58,7 +58,7 @@ static int bridge_features_duration_callback(struct ast_bridge *bridge, struct a
                ast_stream_and_wait(bridge_channel->chan, limits->duration_sound, AST_DIGIT_NONE);
        }
 
-       ast_bridge_change_state(bridge_channel, AST_BRIDGE_CHANNEL_STATE_END);
+       ast_bridge_channel_leave_bridge(bridge_channel);
 
        ast_test_suite_event_notify("BRIDGE_TIMELIMIT", "Channel1: %s", ast_channel_name(bridge_channel->chan));
        return -1;