aboutsummaryrefslogtreecommitdiffstats
path: root/main/features.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/features.c')
-rw-r--r--main/features.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/features.c b/main/features.c
index 8c4296d31..a01f33afe 100644
--- a/main/features.c
+++ b/main/features.c
@@ -2206,6 +2206,12 @@ static struct ast_channel *feature_request_and_dial(struct ast_channel *caller,
continue;
if (chan && (chan == active_channel)){
+ if (!ast_strlen_zero(chan->call_forward)) {
+ if (!(chan = ast_call_forward(caller, chan, &to, format, NULL, outstate))) {
+ return NULL;
+ }
+ continue;
+ }
f = ast_read(chan);
if (f == NULL) { /*doh! where'd he go?*/
state = AST_CONTROL_HANGUP;