[asterisk-users] Set outgoing number in filename of the recordings

Rushikesh rushikesh.jadhav at esds.co.in
Fri Aug 6 20:17:02 CDT 2010


Hi,

Im not able to set the outgoing number in filename for asterisk recordings


Following is what I have done in 
/var/lib/asterisk/agi-bin/recordingcheck file


.
.
.
include("phpagi.php");


/**********************************************************************************************************************/

$agi = new AGI();
$temp = $agi->get_variable("agi_dnid") ;   // I have also tried with 
get_variable("DIAL_NUMBER")

if($temp['result'] == 1 ) {
$dnid = $temp['data'] ;
}
else
{
$dnid = "NUMBER" ;
}

$timestamp = $argv[1];
$uniqueid = $argv[2];
$type = $agi->get_variable("ARG2");

.
.
.



Please help me


Regards,
Rishi



More information about the asterisk-users mailing list