public function showHangup() { $response = new Twiml(); $response->say('Your recording has been saved. Good bye.', ['voice' => 'alice', 'language' => 'en-GB']); $response->hangup(); return response($response)->header('Content-Type', 'application/xml'); }
/** * Responds with instructions to mothership * @return Services_Twilio_Twiml */ private function _getReturnInstructions() { $response = new Twiml(); $response->say('To get to your extraction point, get on your bike and go down the' . ' street. Then Left down an alley. Avoid the police cars. Turn left' . ' into an unfinished housing development. Fly over the roadblock. Go' . ' passed the moon. Soon after you will see your mother ship.', ['voice' => 'Alice', 'language' => 'en-GB']); $response->say($this->_thankYouMessage, ['voice' => 'Alice', 'language' => 'en-GB']); $response->hangup(); return $response; }
/** * Handles the callback from screening a call * * @return \Illuminate\Http\Response */ public function screenCall(Request $request) { $customerPhoneNumber = $request->input('From'); $spelledPhoneNumber = join(',', str_split($customerPhoneNumber)); $response = new Twiml(); $gather = $response->gather(['numDigits' => 1, 'action' => route('connect-message', [], false), 'method' => 'GET']); $gather->say('You have an incoming call from: '); $gather->say($spelledPhoneNumber); $gather->say('Press any key to accept'); $response->say('Sorry. Did not get your response'); $response->hangup(); return $response; }
private function _voiceMessageAfterLastQuestion() { $voiceResponse = new Twiml(); $voiceResponse->say('That was the last question'); $voiceResponse->say('Thank you for participating in this survey'); $voiceResponse->say('Good-bye'); $voiceResponse->hangup(); return response($voiceResponse); }