Parameter "ivrchanid" allows setting a specific ID of a libyateivr channel.
Fixed some spurious blanks. git-svn-id: http://yate.null.ro/svn/yate/trunk@2878 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
9613c5dcbb
commit
4633bc0646
|
@ -29,7 +29,7 @@
|
|||
|
||||
sed -i.bak -e 's/static \(function\)/\1/' libyatechan.php
|
||||
*/
|
||||
|
||||
|
||||
|
||||
require_once("libyate.php");
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
/*
|
||||
WARNING: This file requires PHP 5
|
||||
*/
|
||||
|
||||
|
||||
|
||||
require_once("libyate.php");
|
||||
|
||||
|
@ -622,8 +622,10 @@ class IVR
|
|||
continue;
|
||||
if ($ev === false)
|
||||
break;
|
||||
if (($ev->type == "incoming") && ($ev->name == "call.execute"))
|
||||
if (($ev->type == "incoming") && ($ev->name == "call.execute")) {
|
||||
$yate_ivr_target = $ev->GetValue("id");
|
||||
IVR::SetChannelID($ev->GetValue("ivrchanid"));
|
||||
}
|
||||
IVR::EventIVR($ev);
|
||||
if ($init_id && ($yate_ivr_current !== null)) {
|
||||
$init_id = false;
|
||||
|
@ -633,7 +635,7 @@ class IVR
|
|||
}
|
||||
if ($ev && ($ev->type == "incoming")) {
|
||||
if ($ev->handled && $ev->name == "call.execute")
|
||||
$ev->params["targetid"] = IVR::ChannelID();
|
||||
$ev->SetParam("targetid",IVR::ChannelID());
|
||||
$ev->Acknowledge();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue