testing issue 8

This commit is contained in:
Daniel Camargo 2013-02-25 14:24:29 -03:00
parent 571f548b5a
commit e3daaac8d6

View File

@ -72,7 +72,7 @@ class Controller_api_notification extends Crunchbutton_Controller_Rest {
case 'twilio':
if ($notification->order()->accepted()) {
if ($notification->order()->accepted() || $notification->order()->confirmed ) {
if ($_REQUEST['CallSid'] == $notification->remote) {
if ($_REQUEST['Duration']) {
$notification->status = 'success';