diff --git a/share/scripts/pbxassist.php b/share/scripts/pbxassist.php index 5fb7ce52..6ac7916e 100755 --- a/share/scripts/pbxassist.php +++ b/share/scripts/pbxassist.php @@ -2,10 +2,10 @@ id = $ev->id; - $m->params["id"] = $ourcallid; - $m->params["callto"] = "tone/info"; + $m->SetParam("id",$ourcallid); + $m->SetParam("callto","tone/info"); $m->Dispatch(); // Also send progressing so the tone goes through in early media $m = new Yate("call.progress"); - $m->params["targetid"] = $ourcallid; + $m->SetParam("targetid",$ourcallid); $m->Dispatch(); return true; } @@ -65,7 +65,7 @@ while ($ourcallid) { $callto = $ev->GetValue("real_callto"); if ($ourcallid && $callto) { // Put back the real callto and let the message flow - $ev->params["callto"] = $callto; + $ev->SetParam("callto",$callto); Yate::Install("chan.hangup",75,"id",$ourcallid); Yate::Install("chan.disconnected",75,"id",$ourcallid); onStartup($ev);