]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 212581 via svnmerge from
authorSean Bright <sean@malleable.com>
Mon, 17 Aug 2009 18:55:32 +0000 (18:55 +0000)
committerSean Bright <sean@malleable.com>
Mon, 17 Aug 2009 18:55:32 +0000 (18:55 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@212583 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index f3c33b434f576b702895a6715897c87be550813c..f18461e2e89d0c361726e91351ba973982d8a7f0 100644 (file)
@@ -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);