function cretate_conference($LeadID) { global $google; global $twilio; global $DBconfig; $Lead = new LeadModel(array('google' => $google, 'twilio' => $twilio, 'DBconfig' => $DBconfig), $LeadID); $Lead->SetNextCallOffset("never", $LeadID); header("content-type: text/xml"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; ?> <Response> <Dial><?php echo $Lead->UserData['Phone']; ?> </Dial> <Say>The call failed or the remote party hung up. Goodbye.</Say> </Response> <?php exit; }