aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/smpp_smsc.c
diff options
context:
space:
mode:
authorKeith <keith@rhizomatica.org>2017-09-12 11:32:12 +0200
committerKeith <keith@rhizomatica.org>2017-09-14 14:33:56 +0200
commit1cbc7e1adf859a7d5b05fa0dbdde1bb0cb998041 (patch)
treea69a72d0c88fd67eaff8b5ff69fa6900f259e709 /openbsc/src/libmsc/smpp_smsc.c
parent968a6c2365c0f772fa65ebe66466715d6861e7fc (diff)
libmsc: Log Rx DELIVER-SM RESP before calling gsm411_send_rp_ack
This patch just makes the log match chronologically what is happening. We receive the deliver_sm_resp before we send the RP ACK to the MS. Change-Id: I29270652957f58093be8bf7f2e898b0b4933bd93
Diffstat (limited to 'openbsc/src/libmsc/smpp_smsc.c')
-rw-r--r--openbsc/src/libmsc/smpp_smsc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/libmsc/smpp_smsc.c b/openbsc/src/libmsc/smpp_smsc.c
index 04afc49bb..83c29f69e 100644
--- a/openbsc/src/libmsc/smpp_smsc.c
+++ b/openbsc/src/libmsc/smpp_smsc.c
@@ -688,15 +688,15 @@ static int smpp_handle_deliver_resp(struct osmo_esme *esme, struct msgb *msg)
return -1;
}
+ LOGP(DSMPP, LOGL_INFO, "[%s] Rx DELIVER-SM RESP (%s)\n",
+ esme->system_id, get_value_string(smpp_status_strs,
+ deliver_r.command_status));
+
if (deliver_r.command_status == ESME_ROK)
smpp_cmd_ack(cmd);
else
smpp_cmd_err(cmd, deliver_r.command_status);
- LOGP(DSMPP, LOGL_INFO, "[%s] Rx DELIVER-SM RESP (%s)\n",
- esme->system_id, get_value_string(smpp_status_strs,
- deliver_r.command_status));
-
return 0;
}