Bugfix: Ignore notify if reason is replaced

git-svn-id: http://yate.null.ro/svn/yate/trunk@2848 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
diana 2009-09-21 14:10:44 +00:00
parent d8f375ed24
commit 5fd4128f7c
1 changed files with 5 additions and 2 deletions

View File

@ -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;