I have been successful in integrating SMS and Email parts of the API
with JobSubmit call. But facing issues with Voice jobs.
I am using PHP for the development. Please check below information and
let me know.
Also do you have any sample for voice job submit in php ?
with JobSubmit call. But facing issues with Voice jobs.
I am using PHP for the development. Please check below information and
let me know.
Also do you have any sample for voice job submit in php ?
XML which i have captured from WireShark:-
<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://premconn.premiereconnect.com/2007/02">
<ns1:DocType>unspec</ns1:DocType>
<ns1:DocData format="text" />
</ns1:Document>
</ns1:DocumentSet>
<ns1:BillingCode>XOA MessageREACH Job</ns1:BillingCode>
<ns1:CustomerReference>Voice Job from Premiere Connect</ns1:CustomerReference>
<ns1:VoiceDeliveryMethod>PAMD</ns1:VoiceDeliveryMethod>
<ns1:ANI>555</ns1:ANI>
</ns1:VoiceOptions>
</ns1:JobOptions>
<ns1:Phone>0750000000</ns1:Phone>
</ns1:Voice>
</ns1:Destinations>
</ns1:Message>
</ns1:JobSubmitRequest>
[ ERROR: Un recognized text ]
This is my jobsubmit function
public function jobSubmitText2Voice($recipient) {
$voice="Hello, We're testing a new provider and you've been selected as a test subject. Thanks for volunteering!";
$voice=array("format" => "text");
$report=array("DeliveryReport"=>array("DeliveryReportType"=>"detail","ReportAddress"=>"MBOX"),"ReportTemplate"=>"me_default");
$params = array("JobSubmitRequest" => array(
"DocumentSet" => array( "Document" => array("ref" => "DocRef0", "DocType" => "unspec","SosObject" => "tts_insert","DocData" => $voice)),
"Message" => array("Report"=>$report,
"JobOptions" => array(
"BillingCode" => "XOA MessageREACH Job",
"CustomerReference" => "Voice Job from Premiere Connect",
"VoiceOptions" => array("VoiceDeliveryMethod" => "PAMD","ANI" => "555")),
"Destinations" => array("Voice" => array(
"ref" => "Testing",
// "InsertList" => array("number" => "1","Insert" => $data),
"Phone" => "$recipient")),
"Contents" => array("Part" => array("Document" => array("DocRef" => "DocRef0","DocType" => "unspec","Treatment" => "voice_all"))))));
$voice="Hello, We're testing a new provider and you've been selected as a test subject. Thanks for volunteering!";
$voice=array("format" => "text");
$report=array("DeliveryReport"=>array("DeliveryReportType"=>"detail","ReportAddress"=>"MBOX"),"ReportTemplate"=>"me_default");
$params = array("JobSubmitRequest" => array(
"DocumentSet" => array( "Document" => array("ref" => "DocRef0", "DocType" => "unspec","SosObject" => "tts_insert","DocData" => $voice)),
"Message" => array("Report"=>$report,
"JobOptions" => array(
"BillingCode" => "XOA MessageREACH Job",
"CustomerReference" => "Voice Job from Premiere Connect",
"VoiceOptions" => array("VoiceDeliveryMethod" => "PAMD","ANI" => "555")),
"Destinations" => array("Voice" => array(
"ref" => "Testing",
// "InsertList" => array("number" => "1","Insert" => $data),
"Phone" => "$recipient")),
"Contents" => array("Part" => array("Document" => array("DocRef" => "DocRef0","DocType" => "unspec","Treatment" => "voice_all"))))));
print_r($params);
return $this->_soapCall("JobSubmit", $params);
}
}
Please let me know if i am missing something here.
Thanks
Sunil