From ec8a4e23d31ec84a041cbdbebea476258db87b0d Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 14 Oct 2010 22:56:06 +0200 Subject: ipaccess: Add a structure for informing the USSD provider about the state This is used to inform the USSD provider about the state of the connection. --- openbsc/include/openbsc/ipaccess.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'openbsc/include/openbsc/ipaccess.h') diff --git a/openbsc/include/openbsc/ipaccess.h b/openbsc/include/openbsc/ipaccess.h index b36811ce3..b37022038 100644 --- a/openbsc/include/openbsc/ipaccess.h +++ b/openbsc/include/openbsc/ipaccess.h @@ -2,6 +2,7 @@ #define _IPACCESS_H #include "e1_input.h" +#include "gsm_subscriber.h" #include #define IPA_TCP_PORT_OML 3002 @@ -29,6 +30,9 @@ enum ipaccess_msgtype { IPAC_MSGT_ID_GET = 0x04, IPAC_MSGT_ID_RESP = 0x05, IPAC_MSGT_ID_ACK = 0x06, + + /* OpenBSC extension */ + IPAC_MSGT_SCCP_STATE = 0xff, }; enum ipaccess_id_tags { @@ -43,6 +47,14 @@ enum ipaccess_id_tags { IPAC_IDTAG_UNIT = 0x08, }; +struct ipac_msgt_sccp_state { + uint8_t src_ref[3]; + uint8_t dst_ref[3]; + uint8_t trans_id; + uint8_t invoke_id; + char imsi[GSM_IMSI_LENGTH]; +} __attribute__((packed)); + int ipaccess_connect(struct e1inp_line *line, struct sockaddr_in *sa); /* -- cgit v1.2.3