我创建了一个会议,但调用重定向无效。 我的代码是页面。
1.enter_conference.php
<Response>
<Conference callbackUrl="<?php echo $url; ?>conf_department_callback.php?conferenceid=<?php echo $currentday1; ?>&Digits=<?php echo $digits; ?>"
waitSound="<?php echo $url; ?>waitmusic.php" action="<?php echo $url; ?>call_end.php?ConferenceName=<?php echo $currentday1; ?>"
redirect="false" record="true" digitsMatch="0"><?php echo $currentday1; ?></Conference>
<Response>
2.conf_department_callback.php
$p = new RestAPI($auth_id, $auth_token);
$params = array(
'conference_name' => $conference, # ID of the call
);
$resp = $p->get_live_conference($params);
foreach ($resp['response']['members'] as $num) {
if ($num['direction'] == 'inbound') {
$member_id = $num['member_id'];
$parameters = array(
'conference_name' => $conference, # ID of the call
'member_id' => $member_id
);
$kickout = $p->kick_member($parameters);
}
}
?>
<Response>
<Redirect><?php echo $url; ?>enter_conference.php?ConferenceDigitsMatch=<?php echo $ConferenceDigitsMatch; ?></Redirect>
</Response>
我也在进行会议挂断,并使用参数&#39; ConferenceDigitsMatch&#39;重定向到enter_conference.php页面。但它不适合我。
请帮助我。 谢谢。