aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_dahdi.c
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-17 00:52:03 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-17 00:52:03 +0000
commit99fdb13470e23bc6246d028fa3fc3d31c347fe15 (patch)
tree2945d7cf1eb5b973c56916f17a0ce6b2705fa702 /channels/chan_dahdi.c
parent3c23a5b71cfadc02b017efd78df805a260ba41b2 (diff)
Fix call forwarding for analog phones.
(closes issue #16440) Reported by: mmichelson git-svn-id: http://svn.digium.com/svn/asterisk/trunk@235382 f38db490-d61c-443f-a65b-d21fe96a405b
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;