aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorSergey.Kostanbaev <Sergey.Kostanbaev@gmail.com>2016-02-09 20:21:08 +0300
committerIvan Kluchnikov <kluchnikovi@gmail.com>2017-02-07 18:59:54 +0300
commitd4839fe14a0d060933f0006d10dc932375a7c7d6 (patch)
treea640aa5741fa5f75646e6b3e779957639eb8294e /openbsc/include
parentdb0e216845a7859bf878a891e2a210dbef6395df (diff)
manual merge SS from sup-ussd-on-master-ss-wip
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/debug.h1
-rw-r--r--openbsc/include/openbsc/gsm_04_80.h21
-rw-r--r--openbsc/include/openbsc/gsm_ussd_map.h14
-rw-r--r--openbsc/include/openbsc/gsm_ussd_map_proto.h25
-rw-r--r--openbsc/include/openbsc/transaction.h5
-rw-r--r--openbsc/include/openbsc/ussd.h9
6 files changed, 63 insertions, 12 deletions
diff --git a/openbsc/include/openbsc/debug.h b/openbsc/include/openbsc/debug.h
index d255d29e9..45842dcd7 100644
--- a/openbsc/include/openbsc/debug.h
+++ b/openbsc/include/openbsc/debug.h
@@ -39,6 +39,7 @@ enum {
DSUA,
DV42BIS,
DSUP,
+ DSS,
Debug_LastEntry,
};
diff --git a/openbsc/include/openbsc/gsm_04_80.h b/openbsc/include/openbsc/gsm_04_80.h
index 68de65a0f..a092938ca 100644
--- a/openbsc/include/openbsc/gsm_04_80.h
+++ b/openbsc/include/openbsc/gsm_04_80.h
@@ -7,18 +7,17 @@
struct gsm_subscriber_connection;
-int gsm0480_send_ussd_response(struct gsm_subscriber_connection *conn,
- const struct msgb *in_msg,
- int response_text_len,
- uint8_t response_lang,
- const char* response_text,
- const struct ussd_request *req,
- uint8_t code,
- uint8_t ctype,
- uint8_t mtype);
+int gsm0480_send_component(struct gsm_subscriber_connection *conn,
+ struct msgb *msg,
+ struct ss_header* reqhdr);
+
int gsm0480_send_ussd_reject(struct gsm_subscriber_connection *conn,
- const struct msgb *msg,
- const struct ussd_request *request);
+ uint8_t invoke_id,
+ uint8_t transaction_id);
+
+struct msgb *gsm0480_compose_ussd_component(struct ss_request* req);
+
+
int msc_send_ussd_notify(struct gsm_subscriber_connection *conn, int level,
const char *text);
diff --git a/openbsc/include/openbsc/gsm_ussd_map.h b/openbsc/include/openbsc/gsm_ussd_map.h
new file mode 100644
index 000000000..72798b24f
--- /dev/null
+++ b/openbsc/include/openbsc/gsm_ussd_map.h
@@ -0,0 +1,14 @@
+#ifndef _GSM_USSD_MAP_H
+#define _GSM_USSD_MAP_H
+
+#include <openbsc/gprs_gsup_client.h>
+#include <openbsc/gsm_subscriber.h>
+#include <openbsc/gsm_ussd_map_proto.h>
+
+int ussd_map_read_cb(struct gprs_gsup_client *sup_client,
+ struct msgb *msg);
+
+int ussd_map_tx_message(struct gsm_network *net, struct ss_header *req,
+ const char *extension, uint32_t ref, const uint8_t *component_data);
+
+#endif /* _GSM_USSD_MAP_H */
diff --git a/openbsc/include/openbsc/gsm_ussd_map_proto.h b/openbsc/include/openbsc/gsm_ussd_map_proto.h
new file mode 100644
index 000000000..7faa5b85f
--- /dev/null
+++ b/openbsc/include/openbsc/gsm_ussd_map_proto.h
@@ -0,0 +1,25 @@
+#ifndef _GSM_USSD_MAP_PROTO_H
+#define _GSM_USSD_MAP_PROTO_H
+
+#include <osmocom/gsm/gsm0480.h>
+
+
+enum {
+ FMAP_MSISDN = 0x80
+};
+
+int subscr_uss_message(struct msgb *msg,
+ struct ss_header *req,
+ const char* extension,
+ uint32_t ref,
+ const uint8_t *component_data);
+
+int rx_uss_message_parse(const uint8_t* data,
+ size_t len,
+ struct ss_header *ss,
+ uint32_t *ref,
+ char* extention,
+ size_t extention_len);
+
+
+#endif /* _GSM_USSD_MAP_PROTO_H */
diff --git a/openbsc/include/openbsc/transaction.h b/openbsc/include/openbsc/transaction.h
index 9a87d04e4..6890f14ae 100644
--- a/openbsc/include/openbsc/transaction.h
+++ b/openbsc/include/openbsc/transaction.h
@@ -56,6 +56,11 @@ struct gsm_trans {
struct gsm_sms *sms;
} sms;
+ struct {
+ uint8_t invoke_id;
+ uint8_t mo;
+ uint8_t dirty;
+ } ss;
};
};
diff --git a/openbsc/include/openbsc/ussd.h b/openbsc/include/openbsc/ussd.h
index eee0b9a0c..b5b073ae9 100644
--- a/openbsc/include/openbsc/ussd.h
+++ b/openbsc/include/openbsc/ussd.h
@@ -11,6 +11,13 @@
int handle_rcv_ussd(struct gsm_subscriber_connection *conn, struct msgb *msg);
-int on_ussd_response(const struct ss_request* req, const char* extention);
+int on_ussd_response(struct gsm_network *net,
+ uint32_t ref,
+ struct ss_header *reqhdr,
+ const uint8_t *component,
+ const char* extention);
+
+
+void _ussd_trans_free(struct gsm_trans *trans);
#endif