aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-17 18:55:32 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-17 18:55:32 +0000
commit34d6e4fa69ee0358d0927661121b0a453b29df3d (patch)
tree890e9f368861d3636ac50842d87a3bf52d4a8263 /channels
parentb37cfba5440f7882a5a4e5b29bd55bd331425ed7 (diff)
Merged revisions 212581 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r212581 | seanbright | 2009-08-17 14:50:24 -0400 (Mon, 17 Aug 2009) | 5 lines Correct spelling of AGENTACCEPTDTMF in chan_agent. (closes issue #15668) Reported by: davidw ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@212583 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_agent.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c
index f3c33b434..f18461e2e 100644
--- a/channels/chan_agent.c
+++ b/channels/chan_agent.c
@@ -2012,7 +2012,10 @@ static int login_exec(struct ast_channel *chan, void *data)
} else {
p->wrapuptime = wrapuptime;
}
- tmpoptions = pbx_builtin_getvar_helper(chan, "AGENTACCEPTDMTF");
+ tmpoptions = pbx_builtin_getvar_helper(chan, "AGENTACCEPTDTMF");
+ if (ast_strlen_zero(tmpoptions)) {
+ tmpoptions = pbx_builtin_getvar_helper(chan, "AGENTACCEPTDMTF");
+ }
if (!ast_strlen_zero(tmpoptions)) {
p->acceptdtmf = *tmpoptions;
ast_verb(3, "Saw variable AGENTACCEPTDTMF=%s, setting acceptdtmf to: %c for Agent '%s'.\n", tmpoptions, p->acceptdtmf, p->agent);