From ccc0cf750635cc51b298a682a58b48f9a9253ab3 Mon Sep 17 00:00:00 2001 From: paulc Date: Wed, 9 Apr 2008 15:23:53 +0000 Subject: [PATCH] Use Setparam instead of assigning to params, clarify required priority. git-svn-id: http://voip.null.ro/svn/yate@1883 acf43c95-373e-0410-b603-e72c3f656dc1 --- share/scripts/pbxassist.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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);