aboutsummaryrefslogtreecommitdiffstats
path: root/main/features.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/features.c')
-rw-r--r--main/features.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/main/features.c b/main/features.c
index 58ee55c1e..283c1805f 100644
--- a/main/features.c
+++ b/main/features.c
@@ -3954,9 +3954,7 @@ static int bridge_exec(struct ast_channel *chan, void *data)
ast_app_parse_options(bridge_exec_options, &opts, NULL, args.options);
/* avoid bridge with ourselves */
- if (!strncmp(chan->name, args.dest_chan,
- strlen(chan->name) < strlen(args.dest_chan) ?
- strlen(chan->name) : strlen(args.dest_chan))) {
+ if (!strcmp(chan->name, args.dest_chan)) {
ast_log(LOG_WARNING, "Unable to bridge channel %s with itself\n", chan->name);
manager_event(EVENT_FLAG_CALL, "BridgeExec",
"Response: Failed\r\n"