fixed the problem with support calls

This commit is contained in:
Daniel Camargo 2014-10-02 16:37:24 -03:00
parent 9207019d89
commit 4d8897801a

View File

@ -3,7 +3,7 @@
class Controller_api_twilio_outgoing extends Crunchbutton_Controller_Rest {
public function init() {
header('Content-type: text/xml');
if (!$_REQUEST['PhoneNumber']) {
exit;
}
@ -29,10 +29,10 @@ class Controller_api_twilio_outgoing extends Crunchbutton_Controller_Rest {
echo '<?xml version="1.0" encoding="UTF-8"?>'."\n"
.'<Response>'
.'<Pause length="10">'
.'<Pause length="10"/>'
.'<Dial callerId="'.$callerId.'">'.$num.'</Dial>'
.'</Response>';
exit;
}
}