From 71541545d7d3c0000e7ac4dd489f7afa3599d24b Mon Sep 17 00:00:00 2001 From: paulc Date: Mon, 30 Jan 2012 16:02:22 +0000 Subject: [PATCH] Allow "caller" and "called" parameters to be altered by the overlapped routing. git-svn-id: http://voip.null.ro/svn/yate@4823 acf43c95-373e-0410-b603-e72c3f656dc1 --- share/scripts/overlapped.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/share/scripts/overlapped.php b/share/scripts/overlapped.php index aa8449d0..269d8cec 100755 --- a/share/scripts/overlapped.php +++ b/share/scripts/overlapped.php @@ -31,7 +31,6 @@ Yate::Install("chan.notify"); $ourcallid = "over/" . uniqid(rand(),1); $partycallid = ""; $state = "call"; -$num = ""; $collect = ""; // Queued, not yet used DTMFs $queue = ""; @@ -248,7 +247,6 @@ function timerTick() function endRoute($callto,$ok,$err,$params) { global $partycallid; - global $num; global $collect; global $final; global $queue; @@ -262,8 +260,6 @@ function endRoute($callto,$ok,$err,$params) $m->params["message"] = "call.execute"; $m->params["id"] = $partycallid; $m->params["callto"] = $callto; - $m->params["caller"] = $num; - $m->params["called"] = $collect; $m->Dispatch(); if (strlen($queue)) { // Masquerade the remaining digits @@ -315,7 +311,6 @@ while ($state != "") { case "call.execute": $partycallid = $ev->GetValue("id"); $ev->params["targetid"] = $ourcallid; - $num = $ev->GetValue("caller"); $routeOnly = !Yate::Str2bool($ev->getValue("accept_call")); $interdigit = 1 * $ev->GetValue("interdigit",$interdigit); $autoanswer = false;