⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ma_acc6.c

📁 gsm map协议源代码
💻 C
字号:
/********************************************************************16**

                         (c) COPYRIGHT 1989-2005 by 
                         Continuous Computing Corporation.
                         All rights reserved.

     This software is confidential and proprietary to Continuous Computing 
     Corporation (CCPU).  No part of this software may be reproduced,
     stored, transmitted, disclosed or used in any form or by any means
     other than as expressly provided by the written Software License 
     Agreement between CCPU and its licensee.

     CCPU warrants that for a period, as provided by the written
     Software License Agreement between CCPU and its licensee, this
     software will perform substantially to CCPU specifications as
     published at the time of shipment, exclusive of any updates or 
     upgrades, and the media used for delivery of this software will be 
     free from defects in materials and workmanship.  CCPU also warrants 
     that has the corporate authority to enter into and perform under the   
     Software License Agreement and it is the copyright owner of the software 
     as originally delivered to its licensee.

     CCPU MAKES NO OTHER WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
     WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY OR FITNESS FOR
     A PARTICULAR PURPOSE WITH REGARD TO THIS SOFTWARE, SERVICE OR ANY RELATED
     MATERIALS.

     IN NO EVENT SHALL CCPU BE LIABLE FOR ANY INDIRECT, SPECIAL,
     CONSEQUENTIAL DAMAGES, OR PUNITIVE DAMAGES IN CONNECTION WITH OR ARISING
     OUT OF THE USE OF, OR INABILITY TO USE, THIS SOFTWARE, WHETHER BASED
     ON BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), PRODUCT
     LIABILITY, OR OTHERWISE, AND WHETHER OR NOT IT HAS BEEN ADVISED
     OF THE POSSIBILITY OF SUCH DAMAGE.

                       Restricted Rights Legend

     This software and all related materials licensed hereby are
     classified as "restricted computer software" as defined in clause
     52.227-19 of the Federal Acquisition Regulation ("FAR") and were
     developed entirely at private expense for nongovernmental purposes,
     are commercial in nature and have been regularly used for
     nongovernmental purposes, and, to the extent not published and
     copyrighted, are trade secrets and confidential and are provided
     with all rights reserved under the copyright laws of the United
     States.  The government's rights to the software and related
     materials are limited and restricted as provided in clause
     52.227-19 of the FAR.

                    IMPORTANT LIMITATION(S) ON USE

     The use of this software is limited to the use set
     forth in the written Software License Agreement between CCPU and
     its Licensee. Among other things, the use of this software
     may be limited to a particular type of Designated Equipment, as 
     defined in such Software License Agreement.
     Before any installation, use or transfer of this software, please
     consult the written Software License Agreement or contact CCPU at
     the location set forth below in order to confirm that you are
     engaging in a permissible use of the software.

                    Continuous Computing Corporation
                    9380, Carroll Park Drive
                    San Diego, CA-92121, USA

                    Tel: +1 (858) 882 8800
                    Fax: +1 (858) 777 3388

                    Email: support@trillium.com
                    Web: http://www.ccpu.com

*********************************************************************17*/

/********************************************************************20**
  
     Name:     MAP - Acceptance Test
 
     Type:     C source file
  
     Desc:     C source code used to initialize ISD event structure,

     File:     ma_acc6.c
  
     Sid:      ma_acc6.c@@/main/2 - Fri Sep 16 02:37:47 2005
   
     Prg:      jz
  
*********************************************************************21*/
  
  
#include "envopt.h"        /* environment options */
#include "envdep.h"        /* environment dependent */
#include "envind.h"        /* environment independent */
#include "gen.h"           /* general layer */
#include "ssi.h"           /* system services */
#include "cm5.h"
#include "cm_ss7.h"
#include "cm_err.h"        /* common error */
#include "stu.h"           /* tcap upper interface */
#include "mat.h"           /* inap upper interface */
#include "lma.h"           /* layer management interface */
#ifdef MA_FTHA
#include "sht.h"           /* SHT interface */
#endif /* MA_FTHA */
#include "ma_acc.h"        /* acceptance test defines */
#include "ma.h"   
#include "ma_mf.h"
#ifdef ZJ
#include "cm_ftha.h"       /* Common FTHA */
#include "cm_pftha.h"      /* Common PSF defines */
#include "cm_psfft.h"
#include "cm_tupsf.h"      /* Common TCAP user PSF */
#include "zj_acc.h"        /* PSF Acceptance Test */
#endif
 
/* header/extern include files (.x) */
  
#include "gen.x"
#include "ssi.x"
#include "cm5.x"
#include "cm_ss7.x"
#include "cm_lib.x"
#include "stu.x"
#include "lma.x"
#include "mat.x"
#ifdef MA_FTHA
#include "sht.x"           /* SHT interface */
#endif /* MA_FTHA */
#ifdef ZJ
#include "cm_ftha.x"       /* Common FTHA */
#include "cm_pftha.x"      /* Common PSF defines */
#include "cm_psfft.x"
#include "cm_tupsf.x"      /* Common TCAP user PSF */
#endif
#include "ma.x"      
#include "ma_acc.x" 

#define MA_MEMSET(_ptr, _size)   cmZero((Data *)_ptr, _size)

#ifdef MA_INIT_ISD_REQ 
PUBLIC Void maInitISDReq ARGS((MaInsSubsDataReq   *isdReqEv));
#endif


#ifndef MA_SGSN_SPECIFIC

/*
*
*       Fun:   maInitISDReq
*
*       Desc:  This function initialize the Insert Subscriber Data Request
*              event structure.
*
*       Ret:   ROK 
*
*       Notes: None 
*
*       File:  ma_acc6.c
*
*/
  
#ifdef ANSI
PUBLIC Void maInitISDReq
(
MaInsSubsDataReq   *isdReqEv         /* ISD request */
)
#else
PUBLIC Void maInitISDReq (isdReqEv)
MaInsSubsDataReq   *isdReqEv;        /* ISD request */
#endif
{
   U16  i;

   MA_MEMSET(&isdReqEv->imsi, sizeof(MaIMSI));
   MA_MEMSET(&isdReqEv->subsData, sizeof(MaSubsData)); 
   /* subscriber data */
   {
      MA_MEMSET(&isdReqEv->subsData.msISDN, sizeof(MaMsISDN)); 
      MA_MEMSET(&isdReqEv->subsData.subsCat, sizeof(MaMsSubsCat));
      MA_MEMSET(&isdReqEv->subsData.subsStat, sizeof(MaMsSubsStat));
      MA_MEMSET(&isdReqEv->subsData.bearServLst[0], 
                (sizeof(MaExtBearServ)*MAT_MAX_BEARSERV)); 
      MA_MEMSET(&isdReqEv->subsData.teleServLst[0], 
                (sizeof(MaExtTeleServ)*MAT_MAX_TELESERV)); 
      for (i = 0; i < MAT_MAX_SS; i++)
      {
         isdReqEv->subsData.provSSLst[i].elmntPres.pres = FALSE;
      }
      MA_MEMSET(&isdReqEv->subsData.odbData, sizeof(MaOdbData));
      MA_MEMSET(&isdReqEv->subsData.roamRest, sizeof(MaRoamRestUF));
      MA_MEMSET(&isdReqEv->subsData.regSubsDat[0], 
                (sizeof(MaZoneCode)*MAT_MAX_ZONES));
#ifdef MAP_PHASE2_EXT_MARK
      MA_MEMSET(&isdReqEv->extMarker, sizeof(MaExtMarker)); 
#endif
      MA_MEMSET(&isdReqEv->subsData.vbsSubsDat[0], 
                (sizeof(MaVoiceBrdCastDat)*MAT_MAX_VBSSUBSDATA));
      MA_MEMSET(&isdReqEv->subsData.vgcsSubsDat[0], 
                (sizeof(MaVoiceGrpCallDat)*MAT_MAX_VGCSSUBSDATA));
      MA_MEMSET(&isdReqEv->subsData.vlrCamSubsInfo, 
                sizeof(MaVlrCamSubsInfo));
   }
#ifdef MAP_PHASE2_EXT_MARK
   MA_MEMSET(&isdReqEv->extMarker, sizeof(MaExtMarker)); 
#endif
   MA_MEMSET(&isdReqEv->extCont, sizeof(MaExtCont)); 
   MA_MEMSET(&isdReqEv->naeaPrefCI, sizeof(MaNaeaPrefCI)); 
   MA_MEMSET(&isdReqEv->gprsSubsDat, sizeof(MaGprsSubsDat));
   MA_MEMSET(&isdReqEv->roamRestInSgsnUF, sizeof(MaRoamRestInSgsnUF));
   MA_MEMSET(&isdReqEv->netAccMode, sizeof(MaNetAccMode)); 
#if (MAP_REL98 || MAP_REL99)
   MA_MEMSET(&isdReqEv->lsaInfo, sizeof(MaLsaInfo)); 
   MA_MEMSET(&isdReqEv->lmuInd, sizeof(MaLmuInd)); 
   MA_MEMSET(&isdReqEv->lcsInfo, sizeof(MaLcsInfo)); 
#endif /* MAP_REL98 || MAP_REL99 */
#if MAP_REL99                 
   MA_MEMSET(&isdReqEv->istAlertTmr, sizeof(MaIstAlertTmr)); 
   MA_MEMSET(&isdReqEv->superChargerSuppInHlr, 
             sizeof(MaSuperChargerSuppInHlr)); 
   MA_MEMSET(&isdReqEv->mcSsInfo, sizeof(MaMcSsInfo));
   MA_MEMSET(&isdReqEv->csAllocRetenPriority, 
             sizeof(MaCsAllocRetenPriority)); 
   MA_MEMSET(&isdReqEv->sgsnCamSubsInfo,sizeof(MaSgsnCamSubsInfo));
   MA_MEMSET(&isdReqEv->pdpChargingChar, sizeof(MaChargingChar)); 
#endif /* MAP_REL99 */

   RETVOID;
}

#else /* MA_SGSN_SPECIFIC */


/*
*
*       Fun:   maInitISDReq
*
*       Desc:  This function initialize the Insert Subscriber Data Request
*              event structure.
*
*       Ret:   ROK 
*
*       Notes: None 
*
*       File:  ma_acc6.c
*
*/
  
#ifdef ANSI
PUBLIC Void maInitISDReq
(
MaInsSubsDataReq   *isdReqEv         /* ISD request */
)
#else
PUBLIC Void maInitISDReq (isdReqEv)
MaInsSubsDataReq   *isdReqEv;        /* ISD request */
#endif
{

   MA_MEMSET(&isdReqEv->imsi, sizeof(MaIMSI));
   MA_MEMSET(&isdReqEv->subsData, sizeof(MaSubsData)); 
   /* subscriber data */
   {
      MA_MEMSET(&isdReqEv->subsData.msISDN, sizeof(MaMsISDN)); 
      MA_MEMSET(&isdReqEv->subsData.subsStat, sizeof(MaMsSubsStat));
      MA_MEMSET(&isdReqEv->subsData.teleServLst[0], 
                (sizeof(MaExtTeleServ)*MAT_MAX_TELESERV)); 
      MA_MEMSET(&isdReqEv->subsData.odbData, sizeof(MaOdbData));
      MA_MEMSET(&isdReqEv->subsData.roamRest, sizeof(MaRoamRestUF));
      MA_MEMSET(&isdReqEv->subsData.regSubsDat[0], 
                (sizeof(MaZoneCode)*MAT_MAX_ZONES));
#ifdef MAP_PHASE2_EXT_MARK
      MA_MEMSET(&isdReqEv->extMarker, sizeof(MaExtMarker)); 
#endif
   }
#ifdef MAP_PHASE2_EXT_MARK
   MA_MEMSET(&isdReqEv->extMarker, sizeof(MaExtMarker)); 
#endif
   MA_MEMSET(&isdReqEv->extCont, sizeof(MaExtCont)); 
   MA_MEMSET(&isdReqEv->gprsSubsDat, sizeof(MaGprsSubsDat));
   MA_MEMSET(&isdReqEv->roamRestInSgsnUF, sizeof(MaRoamRestInSgsnUF));
   MA_MEMSET(&isdReqEv->netAccMode, sizeof(MaNetAccMode)); 
#if (MAP_REL98 || MAP_REL99)
   MA_MEMSET(&isdReqEv->lcsInfo, sizeof(MaLcsInfo)); 
#endif /* MAP_REL98 || MAP_REL99 */

#if MAP_REL99     

   MA_MEMSET(&isdReqEv->sgsnCamSubsInfo,sizeof(MaSgsnCamSubsInfo));
   MA_MEMSET(&isdReqEv->pdpChargingChar, sizeof(MaChargingChar)); 
#endif /* MAP_REL99 */

   RETVOID;
}
#endif /* MA_SGSN_SPECIFIC */

/********************************************************************30**

         End of file:     ma_acc6.c@@/main/2 - Fri Sep 16 02:37:47 2005
   
*********************************************************************31*/


/********************************************************************40**
  
        Notes:
  
*********************************************************************41*/

/********************************************************************50**

*********************************************************************51*/

   
/********************************************************************60**
  
        Revision history:
  
*********************************************************************61*/
  
/********************************************************************70**
  
  version    initials                   description
-----------  ---------  ------------------------------------------------
 
*********************************************************************71*/
/********************************************************************90**
 
    ver       pat    init                  description
----------- -------- ---- -----------------------------------------------
1.1          ---      jz   1. initial release
/main/1      ---      cp   1. Updated for rel 2.2
/main/2      ---      st   1. Updated for MAP sotware release 2.3
*********************************************************************91*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -