Chapter 3 - EPC Installation
EPC installation
Following section shows how to build EPC and HSS on same host. If you are using your own MNC configuration, please check your MNC and MCC are listed in the {openair_dir}/openair-cn/UTILS/mcc_mnc_itu.c. (See trouble shooting)
Environment (FQDN)
You need to configure the FQDN value in /etc/host for S6A Authentication by adding the following entries EX. 127.0.1.1 EPC.HOSTNAME.realm EPC.HOSTNAME
Example
127.0.0.1 localhost
127.0.1.1 cran.oai.nmsl cran
In this case, our realm is “oai.nmsl “ and hostname is “cran”
Fixed bug in OAI
Notice: Although different version of OAI may modify the codes. Thus, the below line number may be different.
Issue: MNC not matched: configuration for commercial UE (Using Our own SIM)
You need to add mnc manually in the list : Edit /openair-cn/UTILS/mcc_mnc_itu.c
const mcc_mnc_list_t mcc_mnc_list[]={
{466,”68”} ###<- add this entry
…..
}
Issue : UE did not send “attach complete” message
Modify ./NAS/MME/EMM/SAP/emm_send.c:186:
In emm_send_attach_accept() function, replace this line
emm_msg->epsattachresult = EPS_ATTACH_RESULT_EPS;
with
emm_msg->epsattachresult = EPS_ATTACH_RESULT_EPS_IMSI;
Build
Go to your OAI directory
- Install Additional packages with old script
cd {openair_dir}/cmake_targets/ sudo ./build_oai -I --install-system-files --install-optional-packages
- Install kernel module for
cd {openair_dir}/openair-cn/SCRIPTS sudo ./build_epc -j
- Install EPC
(Add -c while rebuilding)cd {openair_dir}/openair-cn/SCRIPTS sudo ./build_epc -c -l