Monday, April 18, 2011

Tropo ClicktoCall PHP Script - Cloud Internet Telephony Made Easy !



$aftercalloptions['onAnswer'] = 'onAnswerCB';
call('+1'. agentnumber, $aftercalloptions);

function onAnswerCB($event)
{
    global $customernumber;
    Sleep(3);
    transfer('+1' . $customernumber);
}



Cool and Pretty for a Complex Need !

Initiate a call with the following URL
https://api.tropo.com/1.0/sessions?action=create&token=yourtoken&agentnumber=agentnum&customernumber=custnum

Ensoy !

No comments: