From 5fd4128f7c7cac01d89efdde02f4bbdf8aed0480 Mon Sep 17 00:00:00 2001 From: diana Date: Mon, 21 Sep 2009 14:10:44 +0000 Subject: [PATCH] Bugfix: Ignore notify if reason is replaced git-svn-id: http://yate.null.ro/svn/yate/trunk@2848 acf43c95-373e-0410-b603-e72c3f656dc1 --- share/scripts/playrec.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/share/scripts/playrec.php b/share/scripts/playrec.php index 190f5193..fd544e43 100755 --- a/share/scripts/playrec.php +++ b/share/scripts/playrec.php @@ -80,7 +80,7 @@ function setState($newstate) $state = $newstate; } -function gotNotify() +function gotNotify($reason) { global $ourcallid; global $partycallid; @@ -88,6 +88,9 @@ function gotNotify() Yate::Output("gotNotify() state: " . $state); + if ($reason == "replaced") + return; + switch ($state) { case "goodbye": setState(""); @@ -159,7 +162,7 @@ while ($state != "") { case "chan.notify": if ($ev->params["targetid"] == $ourcallid) { - gotNotify(); + gotNotify($ev->getValue("reason")); $ev->handled = true; } break;