Commit 47d0f7f9 authored by Iztok Juvancic's avatar Iztok Juvancic
Browse files

added emergency config parameters/intefcaes

parent 6fd1f542
Loading
Loading
Loading
Loading
+73 −20
Original line number Diff line number Diff line
@@ -54,8 +54,14 @@ module LibIot_VxLTE_Functions {
            if (PX_SIP_GMB_MONITORENABLED == true){
                vc_MonIntfList.gmB := valueof(m_MonIntf_Sip_Gm_B);
            }
            if (PX_SIP_MW_PSAP_MONITORENABLED == true){
                vc_MonIntfList.mwPSAP := valueof(m_MonIntf_Sip_Mw_PSAP);
            if (PX_SIP_MM_B_PSAP_MONITORENABLED == true){
                vc_MonIntfList.mmB_PSAP := valueof(m_MonIntf_Sip_MmB_PSAP);
            }
			if (PX_SIP_MW_EB_MONITORENABLED == true){
				vc_MonIntfList.mwEB := valueof(m_MonIntf_Sip_Mw_EB);
			}
			if (PX_SIP_MW_S_PSAP_MONITORENABLED == true){
			    vc_MonIntfList.mwS_PSAP := valueof(m_MonIntf_Sip_MwS_PSAP);
		    }
            if (PX_SIP_IC_MONITORENABLED == true){
                vc_MonIntfList.ic := valueof(m_MonIntf_Sip_Ic);
@@ -124,8 +130,14 @@ module LibIot_VxLTE_Functions {
                vc_vxlte_monitor_components.gmB := f_cf_create_monitor_sip ( vc_MonIntfList.gmB);
            }
            
            if (isvalue(vc_MonIntfList.mwPSAP)){
                vc_vxlte_monitor_components.mwPSAP := f_cf_create_monitor_sip ( vc_MonIntfList.mwPSAP);
            if (isvalue(vc_MonIntfList.mmB_PSAP)){
                vc_vxlte_monitor_components.mmB_PSAP := f_cf_create_monitor_sip ( vc_MonIntfList.mmB_PSAP);
            }
			if (isvalue(vc_MonIntfList.mwEB)){
				vc_vxlte_monitor_components.mwEB := f_cf_create_monitor_sip ( vc_MonIntfList.mwEB);
			}
			if (isvalue(vc_MonIntfList.mwS_PSAP)){
				vc_vxlte_monitor_components.mwS_PSAP := f_cf_create_monitor_sip ( vc_MonIntfList.mwS_PSAP);
			}
            if (isvalue(vc_MonIntfList.ic)){
                vc_vxlte_monitor_components.ic := f_cf_create_monitor_sip ( vc_MonIntfList.ic);
@@ -211,16 +223,33 @@ module LibIot_VxLTE_Functions {
                                                     )));
            }
            
            if (isvalue(vc_MonIntfList.mwPSAP)){
                f_cf_monitor_up_sip(vc_vxlte_monitor_components.mwPSAP);
                vc_vxlte_monitor_components.mwPI.start(f_cf_setFilter(
            if (isvalue(vc_MonIntfList.mmB_PSAP)){
                f_cf_monitor_up_sip(vc_vxlte_monitor_components.mmB_PSAP);
                vc_vxlte_monitor_components.mmB_PSAP.start(f_cf_setFilter(
                                                        valueof (m_SetFilterReq(
                                                                    e_sip,
                                                                    {vc_MonIntfList.mwPSAP.interfaceInfo}
                                                                    {vc_MonIntfList.mmB_PSAP.interfaceInfo}
                                                        )
                                                     )));
            }
			if (isvalue(vc_MonIntfList.mwEB)){
				f_cf_monitor_up_sip(vc_vxlte_monitor_components.mwEB);
				vc_vxlte_monitor_components.mwEB.start(f_cf_setFilter(
														valueof (m_SetFilterReq(
																	e_sip,
																	{vc_MonIntfList.mwEB.interfaceInfo}
														)
													 )));
			}
			if (isvalue(vc_MonIntfList.mwS_PSAP)){
			    f_cf_monitor_up_sip(vc_vxlte_monitor_components.mwS_PSAP);
			    vc_vxlte_monitor_components.mwS_PSAP.start(f_cf_setFilter(
				 									   valueof (m_SetFilterReq(
				 												   e_sip,
				 												   {vc_MonIntfList.mwS_PSAP.interfaceInfo}
				 									   )
				 									)));
		    }             
                        
            if (isvalue(vc_MonIntfList.ic)){
                f_cf_monitor_up_sip(vc_vxlte_monitor_components.ic);
                vc_vxlte_monitor_components.ic.start(f_cf_setFilter(
@@ -394,8 +423,14 @@ module LibIot_VxLTE_Functions {
            if (isvalue(vc_MonIntfList.gmB)){
                f_cf_monitor_down_sip(vc_vxlte_monitor_components.gmB);
            }
            if (isvalue(vc_MonIntfList.mwPSAP)){
                f_cf_monitor_down_sip(vc_vxlte_monitor_components.mwPSAP);
            if (isvalue(vc_MonIntfList.mmB_PSAP)){
                f_cf_monitor_down_sip(vc_vxlte_monitor_components.mmB_PSAP);
            }
			if (isvalue(vc_MonIntfList.mwEB)){
				f_cf_monitor_down_sip(vc_vxlte_monitor_components.mwEB);
			}
			if (isvalue(vc_MonIntfList.mwS_PSAP)){
				f_cf_monitor_down_sip(vc_vxlte_monitor_components.mwS_PSAP);
			}
            if (isvalue(vc_MonIntfList.ic)){
                f_cf_monitor_down_sip(vc_vxlte_monitor_components.ic);
@@ -488,7 +523,9 @@ module LibIot_VxLTE_Functions {
            if ((isvalue(vc_MonIntfList.gmA))  and (vc_MonIntfList.gmA.interfaceName==p_interfaceName)){ return true;}
            //if ((isvalue(vc_MonIntfList.gmB))  and (vc_MonIntfList.gmB.interfaceName==p_interfaceName)){ return true;}

            if ((isvalue(vc_MonIntfList.mwPSAP)) and (vc_MonIntfList.mwPSAP.interfaceName==p_interfaceName)){ return true;}
            if ((isvalue(vc_MonIntfList.mmB_PSAP)) and (vc_MonIntfList.mmB_PSAP.interfaceName==p_interfaceName)){ return true;}
			if ((isvalue(vc_MonIntfList.mwEB)) and (vc_MonIntfList.mwEB.interfaceName==p_interfaceName)){ return true;}
			if ((isvalue(vc_MonIntfList.mwS_PSAP)) and (vc_MonIntfList.mwS_PSAP.interfaceName==p_interfaceName)){ return true;}
            if ((isvalue(vc_MonIntfList.ic))   and (vc_MonIntfList.ic.interfaceName==p_interfaceName)){ return true;}

            if ((isvalue(vc_MonIntfList.mwPI)) and (vc_MonIntfList.mwPI.interfaceName==p_interfaceName)){ return true;}
@@ -531,7 +568,7 @@ module LibIot_VxLTE_Functions {
        
        var InterfaceAvailableList v_VxLTE_MonIntf_Available;
        var InterfaceAvailable v_InterfaceAvailable;
        var SipInterfaceMonitor v_gmA, v_gmB, v_mwPSAP, v_ic, v_mwPI, v_mwPS, v_mwPE, v_mwSI, v_mwPB, v_mwIB, v_mwIE, v_isc;
        var SipInterfaceMonitor v_gmA, v_gmB, v_mmBPSAP, v_mwEB, v_mwSPSAP, v_ic, v_mwPI, v_mwPS, v_mwPE, v_mwSI, v_mwPB, v_mwIB, v_mwIE, v_isc;
        var DiameterInterfaceMonitor v_cxIH, v_cxSH, v_gx, v_rx, v_s6a, v_s9, v_sh;
        
        if (PX_SIP_GMA_MONITORENABLED == true){
@@ -548,13 +585,29 @@ module LibIot_VxLTE_Functions {
            v_gmB := f_cf_create_monitor_sip (  valueof(m_MonIntf_Sip_Gm_B)/*PX_SIP_GMB_INTERFACENAME*/);
            f_cf_monitor_up_sip(v_gmB);
        }
        if (PX_SIP_MW_PSAP_MONITORENABLED == true){
        if (PX_SIP_MM_B_PSAP_MONITORENABLED == true){
            
            v_InterfaceAvailable.interfaceName := PX_SIP_MM_B_PSAP_INTERFACENAME; 
            v_InterfaceAvailable.available := PX_SIP_MM_B_PSAP_MONITORENABLED;
            v_VxLTE_MonIntf_Available := f_update_MonitorInterfaceList(v_VxLTE_MonIntf_Available,v_InterfaceAvailable);
            v_mmBPSAP := f_cf_create_monitor_sip (  valueof(m_MonIntf_Sip_MmB_PSAP)/*PX_SIP_MW_PSAP_INTERFACENAME*/ );
            f_cf_monitor_up_sip(v_mmBPSAP);
        }
		if (PX_SIP_MW_EB_MONITORENABLED == true){
    
			v_InterfaceAvailable.interfaceName := PX_SIP_MW_EB_INTERFACENAME; 
			v_InterfaceAvailable.available := PX_SIP_MW_EB_MONITORENABLED;
			v_VxLTE_MonIntf_Available := f_update_MonitorInterfaceList(v_VxLTE_MonIntf_Available,v_InterfaceAvailable);
			v_mwEB := f_cf_create_monitor_sip (  valueof(m_MonIntf_Sip_Mw_EB)/*PX_SIP_MW_PI_INTERFACENAME*/ );
			f_cf_monitor_up_sip(v_mwEB);
		}
		if (PX_SIP_MW_S_PSAP_MONITORENABLED == true){
    
            v_InterfaceAvailable.interfaceName := PX_SIP_MW_PSAP_INTERFACENAME; 
            v_InterfaceAvailable.available := PX_SIP_MW_PSAP_MONITORENABLED;
		    v_InterfaceAvailable.interfaceName := PX_SIP_MW_S_PSAP_INTERFACENAME; 
		    v_InterfaceAvailable.available := PX_SIP_MW_S_PSAP_MONITORENABLED;
		    v_VxLTE_MonIntf_Available := f_update_MonitorInterfaceList(v_VxLTE_MonIntf_Available,v_InterfaceAvailable);
            v_mwPSAP := f_cf_create_monitor_sip (  valueof(m_MonIntf_Sip_Mw_PSAP)/*PX_SIP_MW_PSAP_INTERFACENAME*/ );
            f_cf_monitor_up_sip(v_mwPSAP);
		    v_mwSPSAP := f_cf_create_monitor_sip (  valueof(m_MonIntf_Sip_MwS_PSAP)/*PX_SIP_MW_PSAP_INTERFACENAME*/ );
		    f_cf_monitor_up_sip(v_mwSPSAP);
	    }
        if (PX_SIP_IC_MONITORENABLED == true){
            v_InterfaceAvailable.interfaceName := PX_SIP_IC_INTERFACENAME;