2 ==================================================================================
4 Copyright (c) 2018-2019 AT&T Intellectual Property.
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ==================================================================================
22 * Created on: Jul 11, 2019
23 * Author: sjana, Ashwin Sridharan
26 #ifndef E2AP_RIC_INDICATION_H_
27 #define E2AP_RIC_INDICATION_H_
32 #include <mdclog/mdclog.h>
34 #include <E2N_E2AP-PDU.h>
35 #include <E2N_InitiatingMessage.h>
36 #include <E2N_RICindication.h>
37 #include <E2N_ProtocolIE-Field.h>
39 #define NUM_INDICATION_IES 7
41 typedef struct ric_indication_helper ric_indication_helper;
43 struct ric_indication_helper{
44 ric_indication_helper(void) : req_id(1), req_seq_no(1), func_id(0), action_id(1), indication_type(0), indication_sn(0), indication_msg(0), indication_msg_size(0), indication_header(0), indication_header_size(0), call_process_id(0), call_process_id_size(0) {};
45 long int req_id, req_seq_no, func_id, action_id, indication_type, indication_sn;
47 unsigned char* indication_msg;
48 size_t indication_msg_size;
50 unsigned char* indication_header;
51 size_t indication_header_size;
53 unsigned char *call_process_id;
54 size_t call_process_id_size;
63 ~ric_indication(void);
65 bool encode_e2ap_indication(unsigned char *, size_t *, ric_indication_helper &);
66 E2N_InitiatingMessage_t * get_message (void) ;
67 bool set_fields(E2N_InitiatingMessage_t *, ric_indication_helper &);
68 bool get_fields(E2N_InitiatingMessage_t *, ric_indication_helper &);
69 std::string get_error(void) const {return error_string ; };
73 E2N_E2AP_PDU_t * e2ap_pdu_obj;
74 E2N_InitiatingMessage_t *initMsg;
75 E2N_RICindication_IEs_t *IE_array;
76 std::string error_string;
78 size_t errbuf_len = 128;
82 #endif /* E2AP_RIC_INDICATION_H_ */