public function removeApp(Request $request, $id)
 {
     $inputs['id'] = $id;
     $params[0] = $id;
     $ossbss = new Ossbss();
     $result = $ossbss->deleteInfo('serverApps.removeApp', $inputs, $params);
     return json_encode($result);
 }
示例#2
0
 /**
  * remove the Ip Access from trunk
  * @param Request $request
  * @param string $sipTrunkId
  * @param string $sipTrunkIpId
  * @return string
  */
 public function removeIpAccess(Request $request, $sipTrunkId, $sipTrunkIpId)
 {
     $inputs['sipTrunkId'] = $sipTrunkId;
     $inputs['sipTrunkIpId'] = $sipTrunkIpId;
     $params[0] = $sipTrunkId;
     $params[1] = $sipTrunkIpId;
     $ossbss = new Ossbss();
     $result = $ossbss->deleteInfo("trunks.removeIpAccess", array(), $params);
     $result = unsetParam($result, "paging", "data");
     return json_encode($result);
 }