mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 16:14:03 +00:00
gsm_04_11: count SMS delivery attempts for each CP-DATA
Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
This commit is contained in:
committed by
Holger Hans Peter Freyther
parent
aaa40b8688
commit
f11af07431
@@ -37,6 +37,7 @@
|
|||||||
#include <osmocore/tlv.h>
|
#include <osmocore/tlv.h>
|
||||||
#include <openbsc/debug.h>
|
#include <openbsc/debug.h>
|
||||||
#include <openbsc/gsm_data.h>
|
#include <openbsc/gsm_data.h>
|
||||||
|
#include <openbsc/db.h>
|
||||||
#include <openbsc/gsm_subscriber.h>
|
#include <openbsc/gsm_subscriber.h>
|
||||||
#include <openbsc/gsm_04_11.h>
|
#include <openbsc/gsm_04_11.h>
|
||||||
#include <openbsc/gsm_04_08.h>
|
#include <openbsc/gsm_04_08.h>
|
||||||
@@ -175,6 +176,7 @@ static int gsm411_cp_sendmsg(struct msgb *msg, struct gsm_trans *trans,
|
|||||||
trans->sms.cp_timer.cb = cp_timer_expired;
|
trans->sms.cp_timer.cb = cp_timer_expired;
|
||||||
/* 5.3.2.1: Set Timer TC1A */
|
/* 5.3.2.1: Set Timer TC1A */
|
||||||
bsc_schedule_timer(&trans->sms.cp_timer, GSM411_TMR_TC1A);
|
bsc_schedule_timer(&trans->sms.cp_timer, GSM411_TMR_TC1A);
|
||||||
|
db_sms_inc_deliver_attempts(trans->sms.sms);
|
||||||
DEBUGP(DSMS, "TX: CP-DATA ");
|
DEBUGP(DSMS, "TX: CP-DATA ");
|
||||||
break;
|
break;
|
||||||
case GSM411_MT_CP_ACK:
|
case GSM411_MT_CP_ACK:
|
||||||
|
Reference in New Issue
Block a user