summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openbsc/src/libmsc/gsm_04_11.c1
-rw-r--r--openbsc/src/libmsc/sms_queue.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c
index a8b18b99a..4125810d4 100644
--- a/openbsc/src/libmsc/gsm_04_11.c
+++ b/openbsc/src/libmsc/gsm_04_11.c
@@ -904,6 +904,7 @@ int gsm411_send_sms(struct gsm_subscriber_connection *conn, struct gsm_sms *sms)
osmo_counter_inc(conn->bts->network->stats.sms.delivered);
db_sms_inc_deliver_attempts(trans->sms.sms);
+ LOGP(DLSMS, LOGL_NOTICE, "sms_mon: db_sms_inc_deliver_attempts : gsm411_send_sms : sms->id = %llu \n", sms->id);
return gsm411_rp_sendmsg(&trans->sms.smr_inst, msg,
GSM411_MT_RP_DATA_MT, msg_ref, GSM411_SM_RL_DATA_REQ);
diff --git a/openbsc/src/libmsc/sms_queue.c b/openbsc/src/libmsc/sms_queue.c
index 2edc42f02..5700d188d 100644
--- a/openbsc/src/libmsc/sms_queue.c
+++ b/openbsc/src/libmsc/sms_queue.c
@@ -442,6 +442,7 @@ static int sms_sms_cb(unsigned int subsys, unsigned int signal,
switch (signal) {
case S_SMS_DELIVERED:
/* Remember the subscriber and clear the pending entry */
+ LOGP(DLSMS, LOGL_NOTICE, "sms_mon: S_SMS_DELIVERED : sms->id = %llu \n", sig_sms->sms->id);
network->sms_queue->pending -= 1;
subscr = subscr_get(pending->subscr);
sms_pending_free(pending);
@@ -450,6 +451,7 @@ static int sms_sms_cb(unsigned int subsys, unsigned int signal,
subscr_put(subscr);
break;
case S_SMS_MEM_EXCEEDED:
+ LOGP(DLSMS, LOGL_NOTICE, "sms_mon: S_SMS_DELIVERED : sms->id = %llu \n", sig_sms->sms->id);
network->sms_queue->pending -= 1;
sms_pending_free(pending);
sms_queue_trigger(network->sms_queue);
@@ -469,14 +471,17 @@ static int sms_sms_cb(unsigned int subsys, unsigned int signal,
case 0:
/* BAD SMS? */
db_sms_inc_deliver_attempts(sig_sms->sms);
+ LOGP(DLSMS, LOGL_NOTICE, "sms_mon: db_sms_inc_deliver_attempts : bad sms : sms->id = %llu \n", sig_sms->sms->id);
sms_pending_failed(pending, 0);
break;
case GSM_PAGING_EXPIRED:
+ LOGP(DLSMS, LOGL_NOTICE, "sms_mon: GSM_PAGING_EXPIRED : sms->id = %llu \n", sig_sms->sms->id);
sms_pending_failed(pending, 1);
break;
case GSM_PAGING_OOM:
case GSM_PAGING_BUSY:
+ LOGP(DLSMS, LOGL_NOTICE, "sms_mon: GSM_PAGING_BUSY : sms->id = %llu \n", sig_sms->sms->id);
network->sms_queue->pending -= 1;
sms_pending_free(pending);
sms_queue_trigger(network->sms_queue);