예제 #1
0
 } else {
     if ($_POST['COMMAND'] == 'inviteTransfer') {
         $_POST['PARAMS'] = CUtil::JsObjectToPhp($_POST['PARAMS']);
         CVoxImplantTransfer::Invite($_POST['PARAMS']['CALL_ID'], $_POST['PARAMS']['USER_ID']);
     } else {
         if ($_POST['COMMAND'] == 'readyTransfer') {
             $_POST['PARAMS'] = CUtil::JsObjectToPhp($_POST['PARAMS']);
             CVoxImplantTransfer::Ready($_POST['PARAMS']['CALL_ID']);
         } else {
             if ($_POST['COMMAND'] == 'answerTransfer') {
                 $_POST['PARAMS'] = CUtil::JsObjectToPhp($_POST['PARAMS']);
                 CVoxImplantTransfer::Answer($_POST['PARAMS']['CALL_ID']);
             } else {
                 if ($_POST['COMMAND'] == 'waitTransfer') {
                     $_POST['PARAMS'] = CUtil::JsObjectToPhp($_POST['PARAMS']);
                     CVoxImplantTransfer::Wait($_POST['PARAMS']['CALL_ID']);
                 } else {
                     if ($_POST['COMMAND'] == 'declineTransfer') {
                         $_POST['PARAMS'] = CUtil::JsObjectToPhp($_POST['PARAMS']);
                         CVoxImplantTransfer::Decline($_POST['PARAMS']['CALL_ID']);
                     } else {
                         if ($_POST['COMMAND'] == 'cancelTransfer') {
                             $_POST['PARAMS'] = CUtil::JsObjectToPhp($_POST['PARAMS']);
                             CVoxImplantTransfer::Cancel($_POST['PARAMS']['CALL_ID']);
                         } else {
                             if ($_POST['COMMAND'] == 'timeoutTransfer') {
                                 $_POST['PARAMS'] = CUtil::JsObjectToPhp($_POST['PARAMS']);
                                 CVoxImplantTransfer::Timeout($_POST['PARAMS']['CALL_ID']);
                             }
                         }
                     }