PHP Voice Broadcast Example

http://www.callfire.com/dev/index.php/Voice_Broadcast#sendBroadcastToList

public function sendBroadcastToList($api_key,$caller_id,$phoneNumbers,$sound_file,$debug)
	{
		$createOtboundcampaignWsdl = 'https://www.callfire.com/service/CampaignService?wsdl';

		$campaignOutboundClient = new SoapClient($createOtboundcampaignWsdl,array('trace' => true));
		$lines = file($phoneNumbers) or die('Unable to upload phone numbers');
		foreach($lines as $line)

		{
			$pnumber['string'][] = $line;
		}
		//Converting the sound files to byte format
		$handle = fopen($sound_file,'r');
		$contents = fread($handle,filesize($sound_file));
		$soundFile = $contents;


		$broadcastarray = array(
   		'key' => $api_key,
   		'callerid' => $caller_id,
   		'numbers' => $pnumber,
   		'soundFile' => $sound_file
		);
		try

		{
			$sendBroadcasttoListResponse = $campaignOutboundClient->sendBroadcastToList($broadcastarray);
			$campaignId = $sendBroadcasttoListResponse->out;
			if($debug)
			{
				echo "CampaignID : ".$campaignId."<br/>";

			}
		}
		catch(SoapFault $error)
		{
			if($debug)
			{
				echo $error."<br/>";
			}
		}
	}