34 lines
886 B
PHP
34 lines
886 B
PHP
<?php
|
|
$content = file_get_contents('php://input');
|
|
if(!empty($content)) {
|
|
require_once ('XMLParser.php');
|
|
$xmlParser = new XMLParser;
|
|
$inputArray = $xmlParser->xmlstr_to_array($content);
|
|
}
|
|
if (function_exists('fastcgi_finish_request')) {
|
|
fastcgi_finish_request();
|
|
} else {
|
|
ignore_user_abort(true);
|
|
set_time_limit(0);
|
|
ob_start();
|
|
header('Connection: close');
|
|
header('Content-Length: '.ob_get_length());
|
|
ob_end_flush();
|
|
ob_flush();
|
|
flush();
|
|
}
|
|
|
|
//require_once($_SERVER['DOCUMENT_ROOT']."/config.php");
|
|
|
|
if(isset($inputArray['xsi:eventData']['xsi:call'])) {
|
|
$callDetail = $inputArray['xsi:eventData']['xsi:call'];
|
|
|
|
$data = array();
|
|
$data['operator'] = 'BEELINE';
|
|
$data['operator_call_id'] = $callDetail['xsi:callId'];
|
|
|
|
sleep(25);
|
|
|
|
//file_put_contents("request2.txt", print_r($inputArray, true) . "\n", FILE_APPEND);
|
|
}
|