Hi Bertrand,
You should be able to set the caller ID in the same way for a UK outbound call. We have placed a test call to one of our phones here in the US and were able to see the caller ID properly displayed.
Here's the sample code we used:
outboundappuk.php:
<?php
// utility function for posting to a given webservice
function curl_post($url, $post_vars) {
//initialize curl
$ch = curl_init();
//set the necessary curl options
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_vars);
//execute the call to the backend script, retrieve the results
$xmlstr = curl_exec($ch);
curl_close($ch);
return $xmlstr;
}
$post_vars="login=xxxxxx&pin=xxxxxxxx&phone_number=tel:+001857xxxxxxx;ani=207xxxxxxx&start_url=
http://myserver.com/test_call.php";
$xml = curl_post("
http://outbound-uk.plumgroup.com/webser ... uecall.php", $post_vars);
echo $xml;
?>
Hope this helps.
Regards,
Plum Support