From b02c89e292983def3656c64cdbd68f32953b210f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 26 Jul 2010 19:05:56 +0800 Subject: gsm_04_80: Add code to wrap a facility IE around. --- openbsc/include/openbsc/gsm_04_80.h | 2 ++ openbsc/src/gsm_04_80.c | 8 ++++++++ 2 files changed, 10 insertions(+) (limited to 'openbsc') diff --git a/openbsc/include/openbsc/gsm_04_80.h b/openbsc/include/openbsc/gsm_04_80.h index fbf9465d8..e0a7c3623 100644 --- a/openbsc/include/openbsc/gsm_04_80.h +++ b/openbsc/include/openbsc/gsm_04_80.h @@ -25,6 +25,8 @@ int gsm0480_send_ussd_reject(struct gsm_subscriber_connection *conn, struct msgb *gsm0480_create_notifySS(const char *text); struct msgb *gsm0480_create_unstructuredSS_Notify(const char *text); + int gsm0480_wrap_invoke(struct msgb *msg, int op, int link_id); +int gsm0480_wrap_facility(struct msgb *msg); #endif diff --git a/openbsc/src/gsm_04_80.c b/openbsc/src/gsm_04_80.c index 1eada9c9c..757653ac4 100644 --- a/openbsc/src/gsm_04_80.c +++ b/openbsc/src/gsm_04_80.c @@ -413,6 +413,14 @@ int gsm0480_wrap_invoke(struct msgb *msg, int op, int link_id) return 0; } +/* wrap the GSM 04.08 Facility IE around it */ +int gsm0480_wrap_facility(struct msgb *msg) +{ + msgb_wrap_with_TL(msg, GSM0480_IE_FACILITY); + + return 0; +} + int gsm0480_send_ussd_reject(struct gsm_subscriber_connection *conn, const struct msgb *in_msg, const struct ussd_request *req) -- cgit v1.2.3