2009-10-16 06:32:58 +00:00
|
|
|
#ifndef _GSM_04_80_H
|
|
|
|
#define _GSM_04_80_H
|
|
|
|
|
split 'libosmocore' from openbsc codebase
This library is intended to collect all generic/common funcitionality
of all Osmocom.org projects, including OpenBSC but also OsmocomBB
The library currently includes the following modules:
bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer,
tlv_parse, linuxlist
msgb allocation error debugging had to be temporarily disabled as it depends on
'debug.c' functionality which at the moment remains in OpenBSC
2010-02-20 15:24:02 +00:00
|
|
|
#include <osmocore/msgb.h>
|
2010-02-20 17:56:00 +00:00
|
|
|
#include <osmocore/protocol/gsm_04_80.h>
|
2009-10-16 06:32:58 +00:00
|
|
|
|
2009-10-26 19:36:34 +00:00
|
|
|
#define MAX_LEN_USSD_STRING 31
|
|
|
|
|
2010-06-17 09:35:57 +00:00
|
|
|
struct gsm_subscriber_connection;
|
|
|
|
|
2009-10-22 07:56:44 +00:00
|
|
|
struct ussd_request {
|
2009-10-26 19:36:34 +00:00
|
|
|
char text[MAX_LEN_USSD_STRING + 1];
|
2009-10-22 07:56:44 +00:00
|
|
|
u_int8_t transaction_id;
|
|
|
|
u_int8_t invoke_id;
|
|
|
|
};
|
|
|
|
|
2009-10-26 19:36:34 +00:00
|
|
|
int gsm0480_decode_ussd_request(const struct msgb *msg,
|
2009-10-22 07:56:44 +00:00
|
|
|
struct ussd_request *request);
|
2010-06-17 09:35:57 +00:00
|
|
|
int gsm0480_send_ussd_response(struct gsm_subscriber_connection *conn,
|
|
|
|
const struct msgb *in_msg, const char* response_text,
|
|
|
|
const struct ussd_request *req);
|
|
|
|
int gsm0480_send_ussd_reject(struct gsm_subscriber_connection *conn,
|
|
|
|
const struct msgb *msg,
|
|
|
|
const struct ussd_request *request);
|
2009-10-16 06:32:58 +00:00
|
|
|
|
2010-07-26 09:59:28 +00:00
|
|
|
struct msgb *gsm0480_create_notifySS(const char *text);
|
2010-07-26 10:34:27 +00:00
|
|
|
struct msgb *gsm0480_create_unstructuredSS_Notify(const char *text);
|
2010-07-26 11:05:56 +00:00
|
|
|
|
2010-07-25 19:41:11 +00:00
|
|
|
int gsm0480_wrap_invoke(struct msgb *msg, int op, int link_id);
|
2010-07-26 11:05:56 +00:00
|
|
|
int gsm0480_wrap_facility(struct msgb *msg);
|
2010-07-25 10:08:53 +00:00
|
|
|
|
2010-07-26 12:01:07 +00:00
|
|
|
int gsm0480_send_ussdNotify(struct gsm_subscriber_connection *conn, const char *text);
|
2010-07-26 19:31:50 +00:00
|
|
|
int gsm0480_send_releaseComplete(struct gsm_subscriber_connection *conn);
|
2010-07-26 12:01:07 +00:00
|
|
|
|
2009-10-16 06:32:58 +00:00
|
|
|
#endif
|