aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-07-26 19:05:56 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-07-29 04:23:25 +0800
commitc50510b67e8ce0509980f924d08a0772ebf043a5 (patch)
treebfb30bc3233602cb1c9c7ed0c726830fa51fba83 /openbsc
parent980891cdf435c558abebc962aaf36b4317cd8661 (diff)
gsm_04_80: Add code to wrap a facility IE around.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/include/openbsc/gsm_04_80.h2
-rw-r--r--openbsc/src/gsm_04_80.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_04_80.h b/openbsc/include/openbsc/gsm_04_80.h
index 4ec43123b..7c58c56ef 100644
--- a/openbsc/include/openbsc/gsm_04_80.h
+++ b/openbsc/include/openbsc/gsm_04_80.h
@@ -21,6 +21,8 @@ int gsm0480_send_ussd_reject(const struct msgb *msg,
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 a6b67028f..dc9ade478 100644
--- a/openbsc/src/gsm_04_80.c
+++ b/openbsc/src/gsm_04_80.c
@@ -416,6 +416,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(const struct msgb *in_msg,
const struct ussd_request *req)
{