Use GSM411_RP_* and not GSM48_CC_*

d34ed5768c 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
This commit is contained in:
Keith Whyte 2020-01-11 11:55:21 +01:00
parent 4a5ba81f7d
commit b67131595f
1 changed files with 3 additions and 2 deletions

View File

@ -38,6 +38,7 @@
#include <osmocom/core/logging.h> #include <osmocom/core/logging.h>
#include <osmocom/core/write_queue.h> #include <osmocom/core/write_queue.h>
#include <osmocom/core/talloc.h> #include <osmocom/core/talloc.h>
#include <osmocom/gsm/protocol/gsm_04_11.h>
#include "smpp_smsc.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; *pesme = NULL;
if (acl) if (acl)
return GSM48_CC_CAUSE_NETWORK_OOO; return GSM411_RP_CAUSE_MO_NET_OUT_OF_ORDER;
else else
return GSM48_CC_CAUSE_UNASSIGNED_NR; return GSM411_RP_CAUSE_MO_NUM_UNASSIGNED;
} }