public function callAction() { $client = new Twilio_Rest_Client(); $response = $client->call(array("Caller" => "9195339913", "Called" => $this->_request->getParam('toPhone'), "Url" => $this->base() . "/record/record?name=" . $this->_request->getParam('name'))); $this->view->dump = $response; $this->view->out = $this->_request->getParam('toPhone'); }
public function callAction() { $client = new Twilio_Rest_Client(); $response = $client->sms(array("From" => "9195339913", "To" => $this->_request->getParam('toPhone'), "Body" => $this->_request->getParam('message'))); $this->view->dump = $response; $this->view->out = $this->_request->getParam('toPhone'); $this->view->message = $this->_request->getParam('message'); }