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
changes/06/16806/1
Keith Whyte 3 years ago
parent 4a5ba81f7d
commit b67131595f
  1. 5
      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;
}

Loading…
Cancel
Save