2010-09-30 10:30:41 +00:00
|
|
|
#ifndef gsm0480_h
|
|
|
|
#define gsm0480_h
|
|
|
|
|
|
|
|
#include "msgb.h"
|
2010-10-11 05:56:06 +00:00
|
|
|
#include "protocol/gsm_04_08.h"
|
|
|
|
#include "protocol/gsm_04_80.h"
|
2010-09-30 10:30:41 +00:00
|
|
|
|
2010-10-08 17:47:15 +00:00
|
|
|
#define MAX_LEN_USSD_STRING 31
|
|
|
|
|
|
|
|
struct ussd_request {
|
|
|
|
char text[MAX_LEN_USSD_STRING + 1];
|
|
|
|
uint8_t transaction_id;
|
|
|
|
uint8_t invoke_id;
|
|
|
|
};
|
|
|
|
|
2010-10-11 05:56:06 +00:00
|
|
|
int gsm0480_decode_ussd_request(const struct gsm48_hdr *hdr, uint16_t len,
|
2010-10-08 17:47:15 +00:00
|
|
|
struct ussd_request *request);
|
|
|
|
|
2010-09-30 10:30:41 +00:00
|
|
|
struct msgb *gsm0480_create_unstructuredSS_Notify(int alertPattern, const char *text);
|
|
|
|
struct msgb *gsm0480_create_notifySS(const char *text);
|
|
|
|
|
|
|
|
int gsm0480_wrap_invoke(struct msgb *msg, int op, int link_id);
|
|
|
|
int gsm0480_wrap_facility(struct msgb *msg);
|
|
|
|
|
|
|
|
#endif
|