debug messages for conference center

This commit is contained in:
luis daniel lucio quiroz
2015-02-13 18:51:19 +00:00
parent d7f46b4fdb
commit 0bc858bffa
2 changed files with 3 additions and 5 deletions

View File

@@ -202,15 +202,11 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0);
echo 'Authorization Required';
exit;
} else {
syslog(LOG_INFO, "user received: ".$_SERVER['PHP_AUTH_USER']);
syslog(LOG_INFO, "password received: ".$_SERVER['PHP_AUTH_PW']);
if ($_SERVER['PHP_AUTH_USER'] == $provision["http_auth_username"] && $_SERVER['PHP_AUTH_PW'] == $provision["http_auth_password"]) {
//authorized
syslog(LOG_INFO, "sucess");
}
else {
//access denied
syslog(LOG_INFO, "denied");
header('WWW-Authenticate: Basic realm="'.$_SESSION['domain_name']." ".date('r').'"');
unset($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']);
usleep(rand(1000000,3000000));//1-3 seconds.

View File

@@ -723,7 +723,9 @@
--send the call to the conference
cmd = meeting_uuid.."-"..domain_name.."@"..profile.."+flags{".. flags .."}";
freeswitch.consoleLog("INFO","[conference center] conference " .. cmd .. "\n");
session:execute("conference", cmd);
end
end
end
end