From 1cbc7e1adf859a7d5b05fa0dbdde1bb0cb998041 Mon Sep 17 00:00:00 2001 From: Keith Date: Tue, 12 Sep 2017 11:32:12 +0200 Subject: 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 --- openbsc/src/libmsc/smpp_smsc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'openbsc/src/libmsc') 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; } -- cgit v1.2.3