[sms] Send a notification on incoming SMS
Further tests of the signal class. Send a notification
on incoming SMS.
diff --git a/src/gsm_04_11.c b/src/gsm_04_11.c
index b0d3a01..d354663 100644
--- a/src/gsm_04_11.c
+++ b/src/gsm_04_11.c
@@ -36,6 +36,7 @@
#include <openbsc/gsm_04_11.h>
#include <openbsc/gsm_04_08.h>
#include <openbsc/abis_rsl.h>
+#include <openbsc/signal.h>
#define GSM411_ALLOC_SIZE 1024
#define GSM411_ALLOC_HEADROOM 128
@@ -118,6 +119,15 @@
"UserData: \"%s\"\n", sms->mti, sms->vpf, sms->msg_ref,
sms->pid, sms->dcs, sms->ud_len, sms->user_data);
+ struct sms_signal_data sig = {
+ .data = {
+ .area = S_SMS,
+ },
+
+ .sms = sms,
+ };
+ dispatch_signal(&sig.data);
+
free(sms);
return 0;