changeset 8:81386a48c463

smsc-daemon: set source_name in GSUP replies
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 25 Aug 2023 14:56:52 -0800
parents 22ddb71f6883
children dfe99a061249
files smsc-daemon/gsup_rx.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/smsc-daemon/gsup_rx.c	Fri Aug 25 14:47:24 2023 -0800
+++ b/smsc-daemon/gsup_rx.c	Fri Aug 25 14:56:52 2023 -0800
@@ -30,6 +30,8 @@
 
 extern void record_mo_sm(struct osmo_gsup_message *gmsg);
 
+extern char smsc_ipa_name[];
+
 static void send_gsup_response(struct osmo_gsup_client *gsupc,
 				struct osmo_gsup_message *orig_msg)
 {
@@ -40,6 +42,8 @@
 	OSMO_STRLCPY_ARRAY(resp.imsi, orig_msg->imsi);
 	resp.message_class = OSMO_GSUP_MESSAGE_CLASS_SMS;
 	resp.sm_rp_mr = orig_msg->sm_rp_mr;
+	resp.source_name = smsc_ipa_name;
+	resp.source_name_len = strlen(smsc_ipa_name) + 1;
 	resp.destination_name = orig_msg->source_name;
 	resp.destination_name_len = orig_msg->source_name_len;