src/mme_app/mme_app_itti_messaging.c
void mme_app_send_s1ap_handover_preparation_failure(mme_ue_s1ap_id_t mme_ue_s1ap_id, enb_ue_s1ap_id_t enb_ue_s1ap_id, sctp_assoc_id_t assoc_id, enum s1cause cause){
  OAILOG_FUNC_IN (LOG_MME_APP);
  /** Send a S1AP HANDOVER PREPARATION FAILURE TO THE SOURCE ENB. */
  MessageDef * message_p = itti_alloc_new_message (TASK_MME_APP, S1AP_HANDOVER_PREPARATION_FAILURE);
  DevAssert (message_p != NULL);
  DevAssert(cause != S1AP_SUCCESSFUL_HANDOVER);

  itti_s1ap_handover_preparation_failure_t *s1ap_handover_preparation_failure_p = &message_p->ittiMsg.s1ap_handover_preparation_failure;
  memset ((void*)s1ap_handover_preparation_failure_p, 0, sizeof (itti_s1ap_handover_preparation_failure_t));

  /** Set the identifiers. */
  s1ap_handover_preparation_failure_p->mme_ue_s1ap_id = mme_ue_s1ap_id;
  s1ap_handover_preparation_failure_p->enb_ue_s1ap_id = enb_ue_s1ap_id;
  s1ap_handover_preparation_failure_p->assoc_id = assoc_id;
  /** Set the negative cause. */
  s1ap_handover_preparation_failure_p->cause = cause;

  MSC_LOG_TX_MESSAGE (MSC_MMEAPP_MME, MSC_NAS_MME, NULL, 0, "MME_APP Sending S1AP HANDOVER_PREPARATION_FAILURE");
  /** Sending a message to S1AP. */
  itti_send_msg_to_task (TASK_S1AP, INSTANCE_DEFAULT, message_p);
  OAILOG_FUNC_OUT (LOG_MME_APP);
}
//------------------------------------------------------------------------------
/**
 * Send an S1AP Handover Preparation Failure to the S1AP layer.
 * Not triggering release of resources, everything will stay as it it.
 * The MME_APP ITTI message elements though need to be deallocated.
 */
Send an S1AP Handover Preparation Failure to the S1AP layer.
Not triggering release of resources, everything will stay as it it.
The MME_APP ITTI message elements though need to be deallocated.
Send an S1AP Handover Preparation Failure to the S1AP layer . Not triggering release of resources everything will stay as it it . The MME_APP ITTI message elements though need to be deallocated .
void mme_app_send_s1ap_handover_preparation_failure(mme_ue_s1ap_id_t mme_ue_s1ap_id, enb_ue_s1ap_id_t enb_ue_s1ap_id, sctp_assoc_id_t assoc_id, enum s1cause cause){
  OAILOG_FUNC_IN (LOG_MME_APP);
  MessageDef * message_p = itti_alloc_new_message (TASK_MME_APP, S1AP_HANDOVER_PREPARATION_FAILURE);
  DevAssert (message_p != NULL);
  DevAssert(cause != S1AP_SUCCESSFUL_HANDOVER);
  itti_s1ap_handover_preparation_failure_t *s1ap_handover_preparation_failure_p = &message_p->ittiMsg.s1ap_handover_preparation_failure;
  memset ((void*)s1ap_handover_preparation_failure_p, 0, sizeof (itti_s1ap_handover_preparation_failure_t));
  s1ap_handover_preparation_failure_p->mme_ue_s1ap_id = mme_ue_s1ap_id;
  s1ap_handover_preparation_failure_p->enb_ue_s1ap_id = enb_ue_s1ap_id;
  s1ap_handover_preparation_failure_p->assoc_id = assoc_id;
  s1ap_handover_preparation_failure_p->cause = cause;
  MSC_LOG_TX_MESSAGE (MSC_MMEAPP_MME, MSC_NAS_MME, NULL, 0, "MME_APP Sending S1AP HANDOVER_PREPARATION_FAILURE");
  itti_send_msg_to_task (TASK_S1AP, INSTANCE_DEFAULT, message_p);
  OAILOG_FUNC_OUT (LOG_MME_APP);
}
void mme_app_send_s1ap_handover_preparation_failure ( mme_ue_s1ap_id_t mme_ue_s1ap_id , enb_ue_s1ap_id_t enb_ue_s1ap_id , sctp_assoc_id_t assoc_id , enum s1cause cause ) { OAILOG_FUNC_IN ( LOG_MME_APP ) ; MessageDef * message_p = itti_alloc_new_message ( TASK_MME_APP , S1AP_HANDOVER_PREPARATION_FAILURE ) ; DevAssert ( message_p != NULL ) ; DevAssert ( cause != S1AP_SUCCESSFUL_HANDOVER ) ; itti_s1ap_handover_preparation_failure_t * s1ap_handover_preparation_failure_p = & message_p -> ittiMsg . s1ap_handover_preparation_failure ; memset ( ( void * ) s1ap_handover_preparation_failure_p , 0 , sizeof ( itti_s1ap_handover_preparation_failure_t ) ) ; s1ap_handover_preparation_failure_p -> mme_ue_s1ap_id = mme_ue_s1ap_id ; s1ap_handover_preparation_failure_p -> enb_ue_s1ap_id = enb_ue_s1ap_id ; s1ap_handover_preparation_failure_p -> assoc_id = assoc_id ; s1ap_handover_preparation_failure_p -> cause = cause ; MSC_LOG_TX_MESSAGE ( MSC_MMEAPP_MME , MSC_NAS_MME , NULL , 0 , " " ) ; itti_send_msg_to_task ( TASK_S1AP , INSTANCE_DEFAULT , message_p ) ; OAILOG_FUNC_OUT ( LOG_MME_APP ) ; }
Send an S1AP Handover Preparation Failure to the S1AP layer.
Send an S1AP Handover Preparation Failure to the S1AP layer .
/** Send a S1AP HANDOVER PREPARATION FAILURE TO THE SOURCE ENB. */ /** Set the identifiers. */ /** Set the negative cause. */ /** Sending a message to S1AP. */