aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/smpp_smsc.c
diff options
context:
space:
mode:
authorKeith <keith@rhizomatica.org>2017-05-13 23:38:52 +0200
committerKeith Whyte <keith@rhizomatica.org>2017-05-20 08:18:50 +0000
commit320960cf9d28474098dad11bd1042f2a58d87fac (patch)
treed572eea18b9d2ef6c2d2189d5f4cc0e118353a47 /openbsc/src/libmsc/smpp_smsc.c
parent9f77d7bd0e39cfd0f3e952c5b375abba5a415d37 (diff)
libmsc: Map SMPP command status to GSM 04.11 cause
Send SMS RP ERROR with a failure cause that relates to the status returned by the ESME in the deliver_sm_resp. Actual mapping array is limited as most phones I tested don't seem to care about the failure cause anyway, although some will display a different notification for GSM411_RP_CAUSE_MO_NUM_UNASSIGNED Change-Id: I61fb2d9ef4f2d2eabdc49b53d9966ad328d15e51
Diffstat (limited to 'openbsc/src/libmsc/smpp_smsc.c')
-rw-r--r--openbsc/src/libmsc/smpp_smsc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/libmsc/smpp_smsc.c b/openbsc/src/libmsc/smpp_smsc.c
index bd259186f..48a119261 100644
--- a/openbsc/src/libmsc/smpp_smsc.c
+++ b/openbsc/src/libmsc/smpp_smsc.c
@@ -681,11 +681,10 @@ static int smpp_handle_deliver_resp(struct osmo_esme *esme, struct msgb *msg)
return -1;
}
- /* Map SMPP command status to GSM 04.11 cause? */
if (deliver_r.command_status == ESME_ROK)
smpp_cmd_ack(cmd);
else
- smpp_cmd_err(cmd);
+ 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,