Ejemplo n.º 1
0
		include('survey.php');

		$tropo[] = array(
			'say' => array(
				'value' => '. . . ' . $firstPrompt,
			),
			'voice' => $voice
		);
		
		askQuestion(array_shift($questions));

		break;
	case 'hangup':
		if(defined('REMOTE_UPLOAD_SERVER') && REMOTE_UPLOAD_SERVER)
			sendCallToServer($_SESSION['callID'], REMOTE_UPLOAD_SERVER);
		ircdebug('Call completed');
		break;
	default: 
		define('SURVEY_MODE', TRUE);
		include('include/question.php');
		break;
}


$json = json_encode(array('tropo'=>$tropo));
header('Content-type: text/plain');

if(get('test'))
{
	echo formatJSON($json);
Ejemplo n.º 2
0
<?php
define('VIEW_MODE', TRUE);

include('include/header.php');

if(get('id'))
{
	if(get('send') == 1)
	{
		sendCallToServer(get('id'), REMOTE_UPLOAD_SERVER);
	}

?>

<div id="jquery_jplayer"></div>

<script type="text/javascript">
	$(function(){
		$("#jquery_jplayer").jPlayer();
	
		$(".recording").click(function(e) {
			$("#jquery_jplayer").jPlayer("setFile", $(this).attr("href")).jPlayer("play");
			$(this).blur();
			return false;
		});
	});
</script>
<?php

	include('survey.php');
	$labels = array();