partial #1110
This commit is contained in:
parent
a8b4ff271a
commit
29765021a9
@ -159,8 +159,7 @@
|
||||
<outgoingCustomer>+1_PHONE_</outgoingCustomer>
|
||||
<outgoingRestaurant>+1_PHONE_</outgoingRestaurant>
|
||||
</olddev>
|
||||
<testnumber>***REMOVED***</testnumber>
|
||||
<!-- <testnumber>_PHONE_</testnumber> -->
|
||||
<testnumber>_PHONE_</testnumber>
|
||||
<voice>male</voice>
|
||||
<greeting>Hello. This is crunchbutton, </greeting>
|
||||
<maxcallback>5</maxcallback>
|
||||
|
||||
@ -58,12 +58,6 @@ class Controller_api_order extends Crunchbutton_Controller_Rest {
|
||||
$log->date = date('Y-m-d H:i:s');
|
||||
$log->save();
|
||||
|
||||
if ($order->restaurant()->confirmation && !$order->_confirm_trigger) {
|
||||
Log::debug([ 'order' => $order->id_order, 'action' => 'creating a confirmation call (phone)', 'host' => c::config()->host_callback, 'type' => 'notification' ]);
|
||||
$order->_confirm_trigger = true;
|
||||
$order->queConfirm();
|
||||
}
|
||||
|
||||
header('Content-type: text/xml');
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?><Response>'."\n"
|
||||
.'<Gather action="/api/order/'.$order->id_order.'/sayorderonly?id_notification='.$_REQUEST['id_notification'].'" numDigits="1" timeout="10" finishOnKey="#" method="get">'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user