Monday, April 18, 2011

Tropo ClicktoCall with Conference in PHP - Cloud Telephony



$calloptions['onAnswer'] = 'secondCallInitiator';
$calloptions['callerID'] = 'Calleridhere';
call('+1'.$numbertodial, $calloptions);

function secondCallInitiator($event)
{
$confid = $conferenceid;
$confoptions['mute'] = false;
$confoptions['playTones'] = true;
$confoptions['leaveprompt'] = 'beep';
$sleep(2);
Say('Please hold');
Conference($confid,$confoptions);
}


Pass two variables, numbertodail & conferenceid as POST parameters.
ClicktCall with Conference, That is so Simple to a Complex Infrastructure.

No comments: