fixed the problem with support calls
This commit is contained in:
parent
9207019d89
commit
4d8897801a
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user