libosmogsm
0.10.2
Osmocom GSM library
|
#include <osmocom/core/defs.h>
#include <osmocom/core/msgb.h>
#include <osmocom/gsm/protocol/gsm_04_08.h>
#include <osmocom/gsm/protocol/gsm_04_80.h>
Go to the source code of this file.
Data Structures | |
struct | ussd_request |
struct | ss_request |
Macros | |
#define | MAX_LEN_USSD_STRING 31 |
Functions | |
int | gsm0480_decode_ussd_request (const struct gsm48_hdr *hdr, uint16_t len, struct ussd_request *request) OSMO_DEPRECATED("Use gsm0480_decode_ss_request() instead") |
int | gsm0480_decode_ss_request (const struct gsm48_hdr *hdr, uint16_t len, struct ss_request *request) |
struct msgb * | gsm0480_create_ussd_resp (uint8_t invoke_id, uint8_t trans_id, const char *text) |
struct msgb * | gsm0480_create_unstructuredSS_Notify (int alertPattern, const char *text) |
struct msgb * | gsm0480_create_notifySS (const char *text) |
struct msgb * | gsm0480_create_ussd_notify (int level, const char *text) |
struct msgb * | gsm0480_create_ussd_release_complete (void) |
int | gsm0480_wrap_invoke (struct msgb *msg, int op, int link_id) |
int | gsm0480_wrap_facility (struct msgb *msg) |
struct gsm48_hdr * | gsm0480_l3hdr_push (struct msgb *msg, uint8_t proto_discr, uint8_t msg_type) |
#define MAX_LEN_USSD_STRING 31 |
Referenced by parse_process_uss_req().
struct msgb* gsm0480_create_notifySS | ( | const char * | text | ) |
struct msgb* gsm0480_create_unstructuredSS_Notify | ( | int | alertPattern, |
const char * | text | ||
) |
References ASN1_OCTET_STRING_TAG, data, GSM_0480_SEQUENCE_TAG, gsm_7bit_encode_n_ussd(), and len.
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(), GSM0480_MTYPE_RELEASE_COMPLETE, and GSM48_PDISC_NC_SS.
struct msgb* gsm0480_create_ussd_resp | ( | uint8_t | invoke_id, |
uint8_t | trans_id, | ||
const char * | text | ||
) |
References ASN1_OCTET_STRING_TAG, GSM0480_COMPIDTAG_INVOKE_ID, GSM0480_CTYPE_RETURN_RESULT, GSM0480_IE_FACILITY, gsm0480_l3hdr_push(), GSM0480_MTYPE_RELEASE_COMPLETE, GSM0480_OP_CODE_PROCESS_USS_REQ, GSM0480_OPERATION_CODE, GSM48_PDISC_NC_SS, GSM_0480_SEQUENCE_TAG, 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 * | request | ||
) |
References gsm48_hdr_pdisc(), GSM48_PDISC_NC_SS, parse_ss(), gsm48_hdr::proto_discr, and ss_request::transaction_id.
int gsm0480_decode_ussd_request | ( | const struct gsm48_hdr * | hdr, |
uint16_t | len, | ||
struct ussd_request * | request | ||
) |
struct gsm48_hdr* gsm0480_l3hdr_push | ( | struct msgb * | msg, |
uint8_t | proto_discr, | ||
uint8_t | msg_type | ||
) |
References msg_type, gsm48_hdr::msg_type, proto_discr, and gsm48_hdr::proto_discr.
Referenced by gsm0480_create_ussd_notify(), gsm0480_create_ussd_release_complete(), gsm0480_create_ussd_resp(), and gsm411_push_cp_header().
int gsm0480_wrap_facility | ( | struct msgb * | msg | ) |
References GSM0480_IE_FACILITY, and msgb_wrap_with_TL().
Referenced by gsm0480_create_ussd_notify().
int gsm0480_wrap_invoke | ( | struct msgb * | msg, |
int | op, | ||
int | link_id | ||
) |
References GSM0480_COMPIDTAG_INVOKE_ID, GSM0480_CTYPE_INVOKE, GSM0480_OPERATION_CODE, msgb_push_TLV1(), and msgb_wrap_with_TL().
Referenced by gsm0480_create_ussd_notify().