Now using GetValue() at the right places.

git-svn-id: http://yate.null.ro/svn/yate/trunk@598 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2005-12-12 12:08:00 +00:00
parent cc33532313
commit 9d7601e6ca
1 changed files with 6 additions and 6 deletions

View File

@ -172,9 +172,9 @@ while ($state != "") {
case "incoming":
switch ($ev->name) {
case "call.execute":
$partycallid = $ev->params["id"];
$partycallid = $ev->GetValue("id");
$ev->params["targetid"] = $ourcallid;
$num = $ev->params["caller"];
$num = $ev->GetValue("caller");
$ev->handled = true;
// we must ACK this message before dispatching a call.answered
$ev->Acknowledge();
@ -190,15 +190,15 @@ while ($state != "") {
break;
case "chan.notify":
if ($ev->params["targetid"] == $ourcallid) {
if ($ev->GetValue("targetid") == $ourcallid) {
gotNotify();
$ev->handled = true;
}
break;
case "chan.dtmf":
if ($ev->params["targetid"] == $ourcallid ) {
$dtmfs = $ev->params["text"];
if ($ev->GetValue("targetid") == $ourcallid ) {
$dtmfs = $ev->GetValue("text");
for ($i = 0; $i < strlen($dtmfs); $i++)
gotDTMF($dtmfs[$i]);
$ev->handled = true;
@ -212,7 +212,7 @@ while ($state != "") {
break;
case "answer":
if ($ev->name == "call.route")
endRoute($ev->retval,$ev->handled,$ev->params["error"]);
endRoute($ev->retval,$ev->handled,$ev->GetValue("error"));
break;
}
}