Reputation: 1488
I have integrated the twillio with PHP based application. Everything implemented nicely except a very tiny glitch on what I need you guys help..
We could found no way to set a proper 'Good Bye Message' .. Even when we properly end our call (Inbound/outbound) recording says 'an application error occurred.
I tried to send message in <say>
tag of response in the file which i gave in the action of <dial>
..
Following is my last twiml reponse i PHP:
`
header('Content-Type: text/xml');
$data = '<?xml version="1.0" encoding="UTF-8"?>';
$data .= '<Response>';
$data .= "<Say voice='woman' >Thank you for calling. Good Bye.</Say>";
$data .= '</Response>';
print_r($data);`
Any help would be really appreciated. Thank you
Upvotes: 0
Views: 168
Reputation: 30565
This should work fine:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="woman">Thank you for calling. Good Bye.</Say>
<Hangup/>
</Response>
Upvotes: 3