aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whyte <keith@rhizomatica.org>2020-01-11 11:55:21 +0100
committerKeith Whyte <keith@rhizomatica.org>2020-01-11 13:07:14 +0100
commitb67131595f9a95956f7aa51ecbc2a89af84f7c2b (patch)
treeaa162f716b9b8fe2224add36cb9bae87711b981f
parent4a5ba81f7d057373ed44ab66169faa1f9d7b46ea (diff)
Use GSM411_RP_* and not GSM48_CC_*
d34ed5768cccab57e879bd32f38872d290c9ae89 introduced comparison of GSM411_RP_CAUSE_MO_NUM_UNASSIGNED with GSM48_CC_CAUSE_UNASSIGNED_NR For consistency lets use the GSM411_RP constants in SMS related code. Change-Id: Ie54966560f66d2dcde905feb2eb19ef90406acd1
-rw-r--r--src/libmsc/smpp_smsc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libmsc/smpp_smsc.c b/src/libmsc/smpp_smsc.c
index 3bfb81a3d..df3c8473e 100644
--- a/src/libmsc/smpp_smsc.c
+++ b/src/libmsc/smpp_smsc.c
@@ -38,6 +38,7 @@
#include <osmocom/core/logging.h>
#include <osmocom/core/write_queue.h>
#include <osmocom/core/talloc.h>
+#include <osmocom/gsm/protocol/gsm_04_11.h>
#include "smpp_smsc.h"
@@ -327,9 +328,9 @@ int smpp_route(const struct smsc *smsc, const struct osmo_smpp_addr *dest, struc
*pesme = NULL;
if (acl)
- return GSM48_CC_CAUSE_NETWORK_OOO;
+ return GSM411_RP_CAUSE_MO_NET_OUT_OF_ORDER;
else
- return GSM48_CC_CAUSE_UNASSIGNED_NR;
+ return GSM411_RP_CAUSE_MO_NUM_UNASSIGNED;
}