public function callFlow($flow)
 {
     $twiml = new Response();
     $twiml->addPause();
     $twiml->addRedirect(site_url('twiml/applet/voice/' . $flow . '/start'));
     $this->startClientCall($twiml);
 }
Example #2
0
 public function callSay($text)
 {
     $twiml = new Response();
     //generate url to the selected flow
     $twiml->addSay($text);
     $twiml->addPause(array('length' => 60 * 4));
     $twiml->addHangup();
     $this->startClientCall($twiml);
 }
Example #3
0
 public function testPauseConvience()
 {
     $r = new Response();
     $r->addPause();
     $expected = '<Response><Pause></Pause></Response>';
     $this->assertXmlStringEqualsXmlString($expected, $r->asUrl(False));
 }