mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-02 04:53:37 +00:00
add debug message for s1ap(trace_level:25)
This commit is contained in:
@@ -20,5 +20,8 @@ status_t s1ap_decode_pdu(s1ap_message_t *message, pkbuf_t *pkbuf)
|
||||
return CORE_ERROR;
|
||||
}
|
||||
|
||||
if (g_trace_mask && TRACE_MODULE >= 25)
|
||||
asn_fprint(stdout, &asn_DEF_S1AP_S1AP_PDU, message);
|
||||
|
||||
return CORE_OK;
|
||||
}
|
||||
|
@@ -10,6 +10,9 @@ status_t s1ap_encode_pdu(pkbuf_t **pkbuf, s1ap_message_t *message)
|
||||
|
||||
d_assert(message, return CORE_ERROR,);
|
||||
|
||||
if (g_trace_mask && TRACE_MODULE >= 25)
|
||||
asn_fprint(stdout, &asn_DEF_S1AP_S1AP_PDU, message);
|
||||
|
||||
*pkbuf = pkbuf_alloc(0, MAX_SDU_LEN);
|
||||
d_assert(*pkbuf, return CORE_ERROR,);
|
||||
|
||||
|
@@ -1007,24 +1007,17 @@ status_t s1ap_build_ue_context_release_command(
|
||||
|
||||
Cause = &ie->value.choice.Cause;
|
||||
|
||||
#if 0 /* ENB_UE_S1AP_ID could be allocated with 0 from eNodeB */
|
||||
if (enb_ue->enb_ue_s1ap_id)
|
||||
#endif
|
||||
{
|
||||
UE_S1AP_IDs->present = S1AP_UE_S1AP_IDs_PR_uE_S1AP_ID_pair;
|
||||
UE_S1AP_IDs->choice.uE_S1AP_ID_pair =
|
||||
core_calloc(1, sizeof(S1AP_UE_S1AP_ID_pair_t));
|
||||
UE_S1AP_IDs->choice.uE_S1AP_ID_pair->mME_UE_S1AP_ID =
|
||||
enb_ue->mme_ue_s1ap_id;
|
||||
UE_S1AP_IDs->choice.uE_S1AP_ID_pair->eNB_UE_S1AP_ID =
|
||||
enb_ue->enb_ue_s1ap_id;
|
||||
}
|
||||
#if 0
|
||||
else
|
||||
{
|
||||
UE_S1AP_IDs->present = S1AP_UE_S1AP_IDs_PR_mME_UE_S1AP_ID;
|
||||
UE_S1AP_IDs->choice.mME_UE_S1AP_ID = enb_ue->mme_ue_s1ap_id;
|
||||
}
|
||||
#if UE_S1AP_IDs_PRESENT_mME_UE_S1AP_ID
|
||||
UE_S1AP_IDs->present = S1AP_UE_S1AP_IDs_PR_mME_UE_S1AP_ID;
|
||||
UE_S1AP_IDs->choice.mME_UE_S1AP_ID = enb_ue->mme_ue_s1ap_id;
|
||||
#else
|
||||
UE_S1AP_IDs->present = S1AP_UE_S1AP_IDs_PR_uE_S1AP_ID_pair;
|
||||
UE_S1AP_IDs->choice.uE_S1AP_ID_pair =
|
||||
core_calloc(1, sizeof(S1AP_UE_S1AP_ID_pair_t));
|
||||
UE_S1AP_IDs->choice.uE_S1AP_ID_pair->mME_UE_S1AP_ID =
|
||||
enb_ue->mme_ue_s1ap_id;
|
||||
UE_S1AP_IDs->choice.uE_S1AP_ID_pair->eNB_UE_S1AP_ID =
|
||||
enb_ue->enb_ue_s1ap_id;
|
||||
#endif
|
||||
|
||||
Cause->present = group;
|
||||
|
Reference in New Issue
Block a user