Do not overwrite the original call leg id while doing overlapped routing.
The id of the script itself is available anyway as targetid. git-svn-id: http://voip.null.ro/svn/yate@4821 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
7742aaf46c
commit
503b84e49f
|
@ -126,12 +126,10 @@ function setState($newstate)
|
|||
function routeTo($num)
|
||||
{
|
||||
global $final;
|
||||
global $ourcallid;
|
||||
global $executeParams;
|
||||
setState("routing");
|
||||
$m = new Yate("call.route");
|
||||
$m->params = $executeParams;
|
||||
$m->params["id"] = $ourcallid;
|
||||
$m->params["called"] = $num;
|
||||
$m->params["overlapped"] = $final ? "no" : "yes";
|
||||
$m->Dispatch();
|
||||
|
|
Loading…
Reference in New Issue