How to record call

Last modified by Stéphane Laurière on 2014/04/09 09:30

use the Record function on Emerginov object

<?php
// Include passwords.php to get back Nusery password & login
require_once("passwords.php");
require_once("Emerginov.php");

$voice = "Zozo";
$number = $call->request['agi_callerid'];
$timestamp = "record_".$number."_".time();
$duration=60;

if (isset($_GET['stop'])) { $duration = $_GET['stop']*60;}

// Answer
$call->Answer();

// Record
$call->Record($timestamp,'wav','#',15000);

// Wait a little
sleep($duration);

// Hangup
$call->Hangup();
?>
Tags:
Created by Stéphane Laurière on 2014/04/08 18:40

Partners

Orange

VOICES

EU - FP7

OW2

© Emerginov
Site maintained by OW2