aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gsm_04_80.h
blob: 7f46895d541ff11b8ac5ee2464bed9fcf2a3224c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef _GSM_04_80_H
#define _GSM_04_80_H

#include <osmocom/core/msgb.h>
#include <osmocom/gsm/protocol/gsm_04_80.h>
#include <osmocom/gsm/gsm0480.h>

struct gsm_subscriber_connection;

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);

struct msgb *gsm0480_gen_ussdNotify(int level, const char *text);
struct msgb *gsm0480_gen_releaseComplete(void);

int msc_gsm0480_send_ussdNotify(struct gsm_subscriber_connection *conn,
				int level, const char *text);
int msc_gsm0480_send_releaseComplete(struct gsm_subscriber_connection *conn);

int bsc_gsm0480_send_ussdNotify(struct gsm_subscriber_connection *conn,
				int level, const char *text);
int bsc_gsm0480_send_releaseComplete(struct gsm_subscriber_connection *conn);

#endif