src/nas/esm/EpsBearerContextDeactivation.c
void
esm_send_deactivate_eps_bearer_context_request (
  pti_t pti,
  ebi_t ebi,
  ESM_msg * esm_rsp_msg,
  esm_cause_t esm_cause)
{
  OAILOG_FUNC_IN (LOG_NAS_ESM);

  memset(esm_rsp_msg, 0, sizeof(ESM_msg));

  /*
   * Mandatory - ESM message header
   */
  esm_rsp_msg->deactivate_eps_bearer_context_request.protocoldiscriminator = EPS_SESSION_MANAGEMENT_MESSAGE;
  esm_rsp_msg->deactivate_eps_bearer_context_request.epsbeareridentity = ebi;
  esm_rsp_msg->deactivate_eps_bearer_context_request.messagetype = DEACTIVATE_EPS_BEARER_CONTEXT_REQUEST;
  esm_rsp_msg->deactivate_eps_bearer_context_request.proceduretransactionidentity = pti;
  /*
   * Mandatory - ESM cause code
   */
  esm_rsp_msg->deactivate_eps_bearer_context_request.esmcause = esm_cause;
  /*
   * Optional IEs
   */
  esm_rsp_msg->deactivate_eps_bearer_context_request.presencemask = 0;
  OAILOG_INFO (LOG_NAS_ESM, "ESM-SAP   - Send Deactivate EPS Bearer Context Request " "message (pti=%d, ebi=%d)\n",
      esm_rsp_msg->deactivate_eps_bearer_context_request.proceduretransactionidentity, esm_rsp_msg->deactivate_eps_bearer_context_request.epsbeareridentity);
  OAILOG_FUNC_OUT(LOG_NAS_ESM);
}
/****************************************************************************
 **                                                                        **
 ** Name:    esm_send_deactivate_eps_bearer_context_request()          **
 **                                                                        **
 ** Description: Builds Deactivate EPS Bearer Context Request message      **
 **                                                                        **
 **      The deactivate EPS bearer context request message is sent **
 **      by the network to request deactivation of an active EPS   **
 **      bearer context.                                           **
 **                                                                        **
 ** Inputs:  pti:       Procedure transaction identity             **
 **      ebi:       EPS bearer identity                        **
 **      esm_cause: ESM cause code                             **
 **      Others:    None                                       **
 **                                                                        **
 ** Outputs:     msg:       The ESM message to be sent                 **
 **      Return:    RETURNok, RETURNerror                      **
 **      Others:    None                                       **
 **                                                                        **
 ***************************************************************************/


Builds Deactivate EPS Bearer Context Request message

The deactivate EPS bearer context request message is sent
by the network to request deactivation of an active EPS
bearer context.

Procedure transaction identity
ebi:       EPS bearer identity
esm_cause: ESM cause code
Others:    None

The ESM message to be sent
Return:    RETURNok, RETURNerror
Others:    None
Builds Deactivate EPS Bearer Context Request message The deactivate EPS bearer context request message is sent by the network to request deactivation of an active EPS bearer context . Procedure transaction identity ebi : EPS bearer identity esm_cause : ESM cause code Others : None The ESM message to be sent Return : RETURNok RETURNerror Others : None
void
esm_send_deactivate_eps_bearer_context_request (
  pti_t pti,
  ebi_t ebi,
  ESM_msg * esm_rsp_msg,
  esm_cause_t esm_cause)
{
  OAILOG_FUNC_IN (LOG_NAS_ESM);
  memset(esm_rsp_msg, 0, sizeof(ESM_msg));
  esm_rsp_msg->deactivate_eps_bearer_context_request.protocoldiscriminator = EPS_SESSION_MANAGEMENT_MESSAGE;
  esm_rsp_msg->deactivate_eps_bearer_context_request.epsbeareridentity = ebi;
  esm_rsp_msg->deactivate_eps_bearer_context_request.messagetype = DEACTIVATE_EPS_BEARER_CONTEXT_REQUEST;
  esm_rsp_msg->deactivate_eps_bearer_context_request.proceduretransactionidentity = pti;
  esm_rsp_msg->deactivate_eps_bearer_context_request.esmcause = esm_cause;
  esm_rsp_msg->deactivate_eps_bearer_context_request.presencemask = 0;
  OAILOG_INFO (LOG_NAS_ESM, "ESM-SAP   - Send Deactivate EPS Bearer Context Request " "message (pti=%d, ebi=%d)\n",
      esm_rsp_msg->deactivate_eps_bearer_context_request.proceduretransactionidentity, esm_rsp_msg->deactivate_eps_bearer_context_request.epsbeareridentity);
  OAILOG_FUNC_OUT(LOG_NAS_ESM);
}
void esm_send_deactivate_eps_bearer_context_request ( pti_t pti , ebi_t ebi , ESM_msg * esm_rsp_msg , esm_cause_t esm_cause ) { OAILOG_FUNC_IN ( LOG_NAS_ESM ) ; memset ( esm_rsp_msg , 0 , sizeof ( ESM_msg ) ) ; esm_rsp_msg -> deactivate_eps_bearer_context_request . protocoldiscriminator = EPS_SESSION_MANAGEMENT_MESSAGE ; esm_rsp_msg -> deactivate_eps_bearer_context_request . epsbeareridentity = ebi ; esm_rsp_msg -> deactivate_eps_bearer_context_request . messagetype = DEACTIVATE_EPS_BEARER_CONTEXT_REQUEST ; esm_rsp_msg -> deactivate_eps_bearer_context_request . proceduretransactionidentity = pti ; esm_rsp_msg -> deactivate_eps_bearer_context_request . esmcause = esm_cause ; esm_rsp_msg -> deactivate_eps_bearer_context_request . presencemask = 0 ; OAILOG_INFO ( LOG_NAS_ESM , " " " \n " , esm_rsp_msg -> deactivate_eps_bearer_context_request . proceduretransactionidentity , esm_rsp_msg -> deactivate_eps_bearer_context_request . epsbeareridentity ) ; OAILOG_FUNC_OUT ( LOG_NAS_ESM ) ; }
Name:    esm_send_deactivate_eps_bearer_context_request()
Name : esm_send_deactivate_eps_bearer_context_request ()
/*
   * Mandatory - ESM message header
   */ /*
   * Mandatory - ESM cause code
   */ /*
   * Optional IEs
   */