summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Engel <tobias@ccc.de>2012-03-28 13:54:20 +0200
committerHarald Welte <laforge@gnumonks.org>2015-01-01 14:34:36 +0100
commit37bf6628972271e1054d8583313754cda1bbd2fc (patch)
treedeb3030f492bd667bea40b7eb9f8a6d0c71ca9c6
parentc146eba59841beccb5d9e84386c39d836dba9967 (diff)
SS: Send Return Error instead of Reject when service is not provisionedlaforge/tobias_sup_serv_rebased
-rw-r--r--openbsc/src/libmsc/ss.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/openbsc/src/libmsc/ss.c b/openbsc/src/libmsc/ss.c
index 44a01ec3a..4eabe1a6d 100644
--- a/openbsc/src/libmsc/ss.c
+++ b/openbsc/src/libmsc/ss.c
@@ -125,9 +125,9 @@ static int change_ss_activation(struct gsm_subscriber_connection *conn, uint8_t
if(rc < 0 || !(ss_status & GSM0902_SS_STATUS_P_BIT)) {
DEBUGP(DMM, "SS 0x%02X not provisioned\n", req->ss_code);
- return gsm0480_send_ss_reject(conn, req,
- GSM_0480_PROBLEM_CODE_TAG_INVOKE,
- GSM_0480_INVOKE_PROB_CODE_UNRECOGNISED_OPERATION);
+ return gsm0480_send_ss_return_error(conn, req,
+ GSM0480_ERR_CODE_SS_SUBSCRIPTION_VIOLATION,
+ NULL);
}
ss_status &= ~GSM0902_SS_STATUS_A_BIT;
@@ -160,9 +160,9 @@ static int interrogate_ss(struct gsm_subscriber_connection *conn, const struct s
if(rc < 0 || !(ss_status & GSM0902_SS_STATUS_P_BIT)) {
DEBUGP(DMM, "SS 0x%02X not provisioned\n", req->ss_code);
- return gsm0480_send_ss_reject(conn, req,
- GSM_0480_PROBLEM_CODE_TAG_INVOKE,
- GSM_0480_INVOKE_PROB_CODE_UNRECOGNISED_OPERATION);
+ return gsm0480_send_ss_return_error(conn, req,
+ GSM0480_ERR_CODE_SS_SUBSCRIPTION_VIOLATION,
+ NULL);
}
msg = gsm48_msgb_alloc();