<?php
  require 'common.php';
  $r = new response();
  if(check_call_end($r) === false)
  {
    if ($_REQUEST['event'] == 'NewCall')
    {
      error_log(print_r($_REQUEST,true));
      error_log("strpos:".strpos(("".$_REQUEST['cid']),'7892462827'));
      $_SESSION['call_flow_steps'] = '';
      add_step('NewCall');
      $r->addGoto($APP_BASE_URL."/language.php");
    }
    error_log('IVR-'.$_SESSION['call_flow_steps']);
    $r->send();
  }
?>
