* app_followme: fix issue with enable_callee_prompt=no
If the FollowMe option 'enable_callee_prompt' is set to 'no' then Asterisk
incorrectly sets a winner channel to the channel from which any control frame was read.
This fix sets the winner channel only to the answered channel.
Resolves: #87
ASTERISK-30326
}
}
} else {
- ast_verb(3, "Skip playback of caller name / norecording\n");
- tmpuser->state = 2;
+ ast_debug(1, "Taking call with no prompt\n");
+ ast_frfree(f);
+ return tmpuser->ochan;
}
break;
case AST_CONTROL_BUSY:
break;
}
}
- if (!tpargs->enable_callee_prompt && tmpuser) {
- ast_debug(1, "Taking call with no prompt\n");
- ast_frfree(f);
- return tmpuser->ochan;
- }
if (tmpuser && tmpuser->state == 3 && f->frametype == AST_FRAME_DTMF) {
int cmp_len;