SMS-over-GSUP: set log context in gsm411_gsup_rx()
Change-Id: I3414953d2aa7b075fcee1cf6e5e76c527ae7b507
This commit is contained in:
parent
46f1069220
commit
12c7b536ac
|
@ -133,9 +133,6 @@ static int gsm411_gsup_mo_handler(struct gsm_network *net, struct vlr_subscr *vs
|
|||
const char *msg_name;
|
||||
bool msg_is_err;
|
||||
|
||||
/* Associate logging messages with this subscriber */
|
||||
log_set_context(LOG_CTX_VLR_SUBSCR, vsub);
|
||||
|
||||
/* Determine the message type and name */
|
||||
msg_is_err = OSMO_GSUP_IS_MSGT_ERROR(gsup_msg->message_type);
|
||||
switch (gsup_msg->message_type) {
|
||||
|
@ -241,9 +238,6 @@ static int gsm411_gsup_mt_handler(struct gsm_network *net, struct vlr_subscr *vs
|
|||
bool sm_rp_mmts_ind;
|
||||
int rc;
|
||||
|
||||
/* Associate logging messages with this subscriber */
|
||||
log_set_context(LOG_CTX_VLR_SUBSCR, vsub);
|
||||
|
||||
LOGP(DLSMS, LOGL_DEBUG, "RX MT-forwardSM-Req\n");
|
||||
|
||||
/**
|
||||
|
@ -310,6 +304,9 @@ int gsm411_gsup_rx(struct gsup_client_mux *gcm, void *data, const struct osmo_gs
|
|||
return -GMM_CAUSE_IMSI_UNKNOWN;
|
||||
}
|
||||
|
||||
/* Associate logging messages with this subscriber */
|
||||
log_set_context(LOG_CTX_VLR_SUBSCR, vsub);
|
||||
|
||||
switch (gsup_msg->message_type) {
|
||||
/* GSM 04.11 code implementing MO SMS */
|
||||
case OSMO_GSUP_MSGT_MO_FORWARD_SM_ERROR:
|
||||
|
|
Loading…
Reference in New Issue