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
|
|
|
|
|
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);
|
2009-10-26 19:36:34 +00:00
|
|
|
int gsm0480_send_ussd_response(const struct msgb *in_msg, const char* response_text,
|
2009-10-22 07:56:44 +00:00
|
|
|
const struct ussd_request *req);
|
2009-10-26 19:36:34 +00:00
|
|
|
int gsm0480_send_ussd_reject(const struct msgb *msg,
|
2009-10-22 07:56:44 +00:00
|
|
|
const struct ussd_request *request);
|
2009-10-16 06:32:58 +00:00
|
|
|
|
|
|
|
#endif
|