summaryrefslogtreecommitdiff
path: root/channels/chan_dahdi.c
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@digium.com>2009-12-17 00:52:03 +0000
committerJeff Peeler <jpeeler@digium.com>2009-12-17 00:52:03 +0000
commit50b7338d0256f624550959bb5b3e0272be7ebcc1 (patch)
tree2945d7cf1eb5b973c56916f17a0ce6b2705fa702 /channels/chan_dahdi.c
parent6b345637782c204e1cc96738cf086e66ac50aa7c (diff)
Fix call forwarding for analog phones.
(closes issue #16440) Reported by: mmichelson git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@235382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r--channels/chan_dahdi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 707a9b21a..ac592e9d4 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -8685,7 +8685,9 @@ static struct ast_channel *dahdi_new(struct dahdi_pvt *i, int state, int startpb
tmp->amaflags = i->amaflags;
i->subs[idx].owner = tmp;
ast_copy_string(tmp->context, i->context, sizeof(tmp->context));
- ast_string_field_set(tmp, call_forward, i->call_forward);
+ if (!analog_lib_handles(i->sig, i->radio, i->oprmode)) {
+ ast_string_field_set(tmp, call_forward, i->call_forward);
+ }
/* If we've been told "no ADSI" then enforce it */
if (!i->adsi)
tmp->adsicpe = AST_ADSI_UNAVAILABLE;