]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 258776 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Sun, 25 Apr 2010 18:14:01 +0000 (18:14 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sun, 25 Apr 2010 18:14:01 +0000 (18:14 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

................
  r258776 | tilghman | 2010-04-25 13:12:14 -0500 (Sun, 25 Apr 2010) | 13 lines

  Merged revisions 258775 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r258775 | tilghman | 2010-04-25 13:09:05 -0500 (Sun, 25 Apr 2010) | 6 lines

    When StopMonitor is called, ensure that it will not be restarted by a channel event.
    (closes issue #16590)
     Reported by: kkm
     Patches:
           resmonitor-16590-trunk.239289.diff uploaded by kkm (license 888)
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@258777 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_monitor.c

index 56f7d8f3f2a612b52262edead120060628fce069..207c05e72cf456ef2482a23308deac31868fe104 100644 (file)
@@ -371,7 +371,9 @@ int ast_monitor_stop(struct ast_channel *chan, int need_lock)
                                chan->name,
                                chan->uniqueid
                                );
+               pbx_builtin_setvar_helper(chan, "MONITORED", NULL);
        }
+       pbx_builtin_setvar_helper(chan, "AUTO_MONITOR", NULL);
 
        UNLOCK_IF_NEEDED(chan, need_lock);