libosmogsm
0.9.6.311-c977
Osmocom GSM library
|
Format functions for GSM 04.80. More...
#include <osmocom/gsm/gsm0480.h>
#include <osmocom/gsm/gsm_utils.h>
#include <osmocom/core/logging.h>
#include <osmocom/gsm/protocol/gsm_04_08.h>
#include <osmocom/gsm/protocol/gsm_04_80.h>
#include <string.h>
Functions | |
static unsigned char * | msgb_wrap_with_TL (struct msgb *msgb, uint8_t tag) |
static unsigned char * | msgb_push_TLV1 (struct msgb *msgb, uint8_t tag, uint8_t value) |
int | gsm0480_wrap_invoke (struct msgb *msg, int op, int link_id) |
int | gsm0480_wrap_facility (struct msgb *msg) |
struct msgb * | gsm0480_create_unstructuredSS_Notify (int alertPattern, const char *text) |
struct msgb * | gsm0480_create_notifySS (const char *text) |
static int | parse_ss (const struct gsm48_hdr *hdr, uint16_t len, struct ss_request *req) |
static int | parse_ss_info_elements (const uint8_t *ussd_ie, uint16_t len, struct ss_request *req) |
static int | parse_facility_ie (const uint8_t *facility_ie, uint16_t length, struct ss_request *req) |
static int | parse_ss_invoke (const uint8_t *invoke_data, uint16_t length, struct ss_request *req) |
static int | parse_process_uss_req (const uint8_t *uss_req_data, uint16_t length, struct ss_request *req) |
static int | parse_ss_for_bs_req (const uint8_t *ss_req_data, uint16_t length, struct ss_request *req) |
int | gsm0480_decode_ussd_request (const struct gsm48_hdr *hdr, uint16_t len, struct ussd_request *req) |
int | gsm0480_decode_ss_request (const struct gsm48_hdr *hdr, uint16_t len, struct ss_request *req) |
struct msgb * | gsm0480_create_ussd_resp (uint8_t invoke_id, uint8_t trans_id, const char *text) |
struct gsm48_hdr * | gsm0480_l3hdr_push (struct msgb *msg, uint8_t proto_discr, uint8_t msg_type) |
struct msgb * | gsm0480_create_ussd_notify (int level, const char *text) |
struct msgb * | gsm0480_create_ussd_release_complete (void) |
Format functions for GSM 04.80.
struct msgb* gsm0480_create_notifySS | ( | const char * | text | ) |
References gsm_7bit_encode_n_ussd().
struct msgb* gsm0480_create_unstructuredSS_Notify | ( | int | alertPattern, |
const char * | text | ||
) |
References gsm_7bit_encode_n_ussd().
Referenced by gsm0480_create_ussd_notify().
struct msgb* gsm0480_create_ussd_notify | ( | int | level, |
const char * | text | ||
) |
struct msgb* gsm0480_create_ussd_release_complete | ( | void | ) |
References gsm0480_l3hdr_push().
struct msgb* gsm0480_create_ussd_resp | ( | uint8_t | invoke_id, |
uint8_t | trans_id, | ||
const char * | text | ||
) |
References gsm0480_l3hdr_push(), gsm_7bit_encode_n_ussd(), msgb_push_TLV1(), and msgb_wrap_with_TL().
int gsm0480_decode_ss_request | ( | const struct gsm48_hdr * | hdr, |
uint16_t | len, | ||
struct ss_request * | req | ||
) |
References parse_ss(), and ss_request::transaction_id.
int gsm0480_decode_ussd_request | ( | const struct gsm48_hdr * | hdr, |
uint16_t | len, | ||
struct ussd_request * | req | ||
) |
struct gsm48_hdr* gsm0480_l3hdr_push | ( | struct msgb * | msg, |
uint8_t | proto_discr, | ||
uint8_t | msg_type | ||
) |
int gsm0480_wrap_facility | ( | struct msgb * | msg | ) |
References msgb_wrap_with_TL().
Referenced by gsm0480_create_ussd_notify().
int gsm0480_wrap_invoke | ( | struct msgb * | msg, |
int | op, | ||
int | link_id | ||
) |
References msgb_push_TLV1(), and msgb_wrap_with_TL().
Referenced by gsm0480_create_ussd_notify().
|
inlinestatic |
Referenced by gsm0480_create_ussd_resp(), and gsm0480_wrap_invoke().
|
inlinestatic |
Referenced by gsm0480_create_ussd_resp(), gsm0480_wrap_facility(), and gsm0480_wrap_invoke().
|
static |
References parse_ss_invoke().
Referenced by parse_ss_info_elements().
|
static |
References gsm_7bit_decode_n_ussd(), MAX_LEN_USSD_STRING, and ss_request::ussd_text.
Referenced by parse_ss_invoke().
|
static |
References parse_ss_info_elements(), and ss_request::ussd_text.
Referenced by gsm0480_decode_ss_request(), and gsm0480_decode_ussd_request().
|
static |
References ss_request::ss_code.
Referenced by parse_ss_invoke().
|
static |
References parse_facility_ie().
Referenced by parse_ss().
|
static |
References ss_request::invoke_id, ss_request::opcode, parse_process_uss_req(), and parse_ss_for_bs_req().
Referenced by parse_facility_ie().