📄 ma_acc5.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 for support routines to fill messages
at the interface for acceptance testing.
This is the version used for the MAP software
test sample.
File: ma_acc5.c
Sid: ma_acc5.c@@/main/10 - Fri Sep 16 02:36:02 2005
Prg: ssk
*********************************************************************21*/
/* header include files (.h) */
#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" /* general layer */
#include "ssi.x" /* system services */
#include "cm5.x"
#include "cm_ss7.x" /* Common */
#include "cm_lib.x" /* Common library headers */
#include "stu.x" /* tcap upper interface */
#include "lma.x" /* layer management interface */
#include "mat.x" /* inap upper interface */
#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" /* acceptance test defines */
/* Global Variable */
EXTERN MaAccCb maAccCb; /* TCAP Acceptance Test control block */
EXTERN MaAllSSEv maInvoke; /* Global Invoke Structure */
EXTERN MaAllSSEv maRetRslt; /* Global Return Result Structure */
PRIVATE Txt prntBuf[255];
#define CHKRET if(ret != ROK) RETVALUE(RFAILED)
#define maAccVerifyRepBNmb maAccVerifyTknU8 /* Replace B Number */
#define maAccVerifyRufOut maAccVerifyTknU8 /* Network Access Mode */
#define maAccVerifyCcbsSubsStat maAccVerifyTknU8 /* Network Access Mode */
#define maAccVerifyMonMode maAccVerifyTknU8 /* Monitoring Mode */
#define maAccVerifyCallOut maAccVerifyTknU8 /* Call Outcome */
#define maAccVerifyRptState maAccVerifyTknU8 /* Reporting State */
#define maAccVerifyNetAccMode maAccVerifyTknU8 /* Network Access Mode */
#define maAccVerifyDefCallHandl maAccVerifyTknU8 /* Default Call Handling */
#define maAccVerifyHoPri maAccVerifyTknU8 /* Handover priority */
#define maAccVerifyEqupStatus maAccVerifyTknU8 /* Equp status */
#define maAccVerifyHoNotReq maAccVerifyTknU8 /* Handover Not required */
#define maAccVerifyCiMode maAccVerifyTknU8 /* Ciphering Mode */
#define maAccVerifyCKSN maAccVerifyTknU8 /* Ciphering Key Sequence Number */
#define maAccVerifyMsNotReach maAccVerifyTknU8 /* MS not reachable */
#define maAccVerifyNetRsrs maAccVerifyTknU8 /* Network resources */
#define maAccVerifyHoType maAccVerifyTknU8 /* Handover type */
#define maAccVerifyFwdOpt maAccVerifyTknU8 /* Forwarding Option */
#define maAccVerifyIntraCugOpt maAccVerifyTknU8 /* Intra CUG Options */
#define maAccVerifyIntCugRest maAccVerifyTknU8 /* Inter CUG Restrictions */
#define maAccVerifyCugOAccess maAccVerifyTknU8 /* CUG Outgoing Access */
#define maAccVerifyCugFacilities maAccVerifyTknU8
#define maAccVerifyCugOpt maAccVerifyTknU8
#define maAccVerifyUssdDatCodSch maAccVerifyTknU8 /* ussd Data Cod. sch. */
#define maAccVerifySSCode maAccVerifyTknU8 /* Supp. Services Code */
#define maAccVerifyBearServ maAccVerifyTknU8 /* Bearer Service */
#define maAccVerifyTeleServ maAccVerifyTknU8 /* Teleservice */
#define maAccVerifySSStatus maAccVerifyTknU8 /* SS Status */
#define maAccVerifyCliRestOpt maAccVerifyTknU8 /* cli Rest. Option */
#define maAccVerifyOvrRideCat maAccVerifyTknU8 /* OvrRide Category */
#define maAccVerifyPerCallBas maAccVerifyTknU8 /* Per Call Basis*/
#define maAccVerifyNotToHldRetPty maAccVerifyTknU8 /* Notification to Held Ret Pty */
#define maAccVerifyUtoUServInd maAccVerifyTknU8 /* */
#define maAccVerifyMaxConfNum maAccVerifyTknStrS /* */
#define maAccVerifyHntGrpAccSelOdr maAccVerifyTknU8 /* */
#define maAccVerifyMsgToSnd maAccVerifyTknU8 /* more message to send */
#define maAccVerifyNoSMRPDA maAccVerifyTknU8 /* SM RP DA */
#define maAccVerifyNoSMRPOA maAccVerifyTknU8 /* SM RP OA */
#define maAccVerifySMDelRslt maAccVerifyTknU8 /* SM Delivery outcome */
#define maAccVerifyAlrtReason maAccVerifyTknU8 /* Alert Reason */
#define maAccVerifySMPRI maAccVerifyTknU8 /* SM Priority */
#define maAccVerifyRoamRestUF maAccVerifyTknU8 /*Roam.Rest. o Unsup. Feat */
#define maAccVerifyFrzTMSI maAccVerifyTknU8 /* FreezeTMSI */
#define maAccVerifyFrzPTMSI maAccVerifyTknU8 /* FreezeP-TMSI */
#define maAccVerifyMsSubsCat maAccVerifyTknU8 /* Subscriber Category */
#define maAccVerifyMsSubsStat maAccVerifyTknU8 /* Subscriber Status */
#define maAccVerifyMaxEntPri maAccVerifyTknStrS /* Max. Entitled Priority */
#define maAccVerifySuppTCSI maAccVerifyTknU8 /* Suppress TCSI */
#define maAccVerifyAlrtPat maAccVerifyTknU8 /* Alerting Pattern */
#define maAccVerifySuppOfAncmt maAccVerifyTknU8 /* Supp. of Announcement */
#define maAccVerifyCugSubsFlg maAccVerifyTknU8 /* CUG Subscription Flag */
#define maAccVerifySSLstElmnt maAccVerifyTknU8 /* SS List */
#define maAccVerifyFwdIntReq maAccVerifyTknU8 /* Forw. Interro Req. */
#define maAccVerifyAssIdle maAccVerifyTknU8 /* Assumed Idle */
#define maAccVerifyCamBusy maAccVerifyTknU8 /* Camel Busy */
#define maAccVerifyNetDetNotRch maAccVerifyTknU8 /* NetDetNotReachable */
#define maAccVerifyNotPrvFrVlr maAccVerifyTknU8 /* Not Provided From Vlr */
#define maAccVerifyOrInterro maAccVerifyTknU8 /* or-Interro. */
#define maAccVerifyAbsSubsDiagSM maAccVerifyTknStrS /* Abs. Subs. Diag. SM */
#define maAccVerifyGprsSuppInd maAccVerifyTknU8 /* GPRS Supp. Indicator */
#define maAccVerifyAddSMDelOut maAccVerifyTknU8 /* Add. SM Del. Outcome */
#define maAccVerifyAddAbsSubsDiagSM maAccVerifyTknStrS /* Add.Abs.Subs. Diag SM */
#define maAccVerifyAlrtReasonInd maAccVerifyTknU8 /* Alrt Rsn. Indicator */
#define maAccVerifyGprsNodeInd maAccVerifyTknU8 /* GPRS Node Indicator */
#define maAccVerifyRegSubsRsp maAccVerifyTknU8 /* Reg. Subs. Response */
#define maAccVerifyBroadInitEntitle maAccVerifyTknU8 /* broad. Init Ent. */
#define maAccVerifyOBcsmTrgDetPoint maAccVerifyTknU8 /* OBCSM Trig. Det. Point */
#define maAccVerifyTBcsmTrgDetPoint maAccVerifyTknU8 /* TBCSM Trg. Det. Pt */
#define maAccVerifyMatchType maAccVerifyTknU8 /* Match Type */
#define maAccVerifyDstNmbLenLstElmnt maAccVerifyTknStrS /* DestNmbLen. Lst */
#define maAccVerifyCallTypeCrit maAccVerifyTknU8 /* Call Type Criteria */
#define maAccVerifyCamCapHan maAccVerifyTknStrS /* Camel Cap. Handling */
#define maAccVerifySSEvtLstElmnt maAccVerifyTknU8 /* SS Event List */
#define maAccVerifyVplmnAddrAll maAccVerifyTknU8 /* vplmn Address allowed */
#define maAccVerifyRoamRestInSgsnUF maAccVerifyTknU8 /*Roam Rest in Sgsn*/
#define maAccVerifyVbsGrpInd maAccVerifyTknU8 /* vbs Group Indication */
#define maAccVerifyVgcsGrpInd maAccVerifyTknU8 /* vgcs Group Indication */
#define maAccVerifyCamSubsInfoWithDraw maAccVerifyTknU8 /* Cam.Subs.InfoWithdraw */
#define maAccVerifyReqPar maAccVerifyTknU8 /* Requested Parameter */
#define maAccVerifyCallDir maAccVerifyTknU8 /* Call direction */
#define maAccVerifyLocInformation maAccVerifyTknU8 /* Loc. Info. */
#define maAccVerifySubsSta maAccVerifyTknU8 /* Subs. State */
#define maAccVerifyGrpKeyNmb maAccVerifyTknStrS /* Group Key Number */
#define maAccVerifyPri maAccVerifyTknStrS /* Priority */
#define maAccVerifyUpLnkFree maAccVerifyTknU8 /* Uplink free */
#define maAccVerifyUpLnkReq maAccVerifyTknU8 /* Uplink Request */
#define maAccVerifyUpLnkRlsInd maAccVerifyTknU8 /* Uplink Rel. Ind. */
#define maAccVerifyRlsGrpCall maAccVerifyTknU8 /* Release Group Call */
#define maAccVerifyUpLnkReqAck maAccVerifyTknU8 /* Uplink Req. Ack */
#define maAccVerifyUpLnkRejCmd maAccVerifyTknU8 /* Uplink Rej. Cmd */
#define maAccVerifyUpLnkSzeCmd maAccVerifyTknU8 /* Uplink Seize Cmd */
#define maAccVerifyUpLnkRlsCmd maAccVerifyTknU8 /* Uplink Rls cmd */
#define maAccVerifyMblNotRchRsn maAccVerifyTknStrS /* Mobile Not Reach Rsn */
#define maAccVerifyCanType maAccVerifyTknU8 /* Can. type enum. */
#define maAccVerifyInterroType maAccVerifyTknU8 /* Interrogation Type */
#define maAccVerifyFwdReason maAccVerifyTknU8 /* Forwarding Reason */
#define maAccVerifyOrPhase maAccVerifyTknStrS /* OR-Phase */
#define maAccVerifyCcbsCall maAccVerifyTknU8 /* CCBS Call */
#define maAccVerifySupCcbsPhase maAccVerifyTknStrS /* Supported CCBS Phase */
#define maAccVerifyMwdSet maAccVerifyTknU8 /* Mwd Set */
#define maAccVerifyCcbsPsbl maAccVerifyTknU8 /* ccbs - possible */
#define maAccVerifyExtCont(ver,ptr,ptr1) (IS_VER_EQUAL(maAccCb.pSwtch ,ver)? \
(maAccVerifyExtContSeq(ptr,ptr1)):(ROK));
#define maAccVerifySSEvtSpec maAccVerifyTknStrS /* SS Event Spec */
#define maAccVerifySerKey maAccVerifyTknStrS /* Service Key */
#define maAccVerifyServInd maAccVerifyTknStrE /* Service Indicator */
#define maAccVerifyTransBNmb maAccVerifyTknStrS /* Translated B Number */
#define maAccVerifyAgeOfLocInfo maAccVerifyTknStrS /* Age of Loc. Info. */
#define maAccVerifyIMEI maAccVerifyTknStrS /* Intern. Mob. Equp Number */
#define maAccVerifyIMSI maAccVerifyTknStrS /* International MSI */
#define maAccVerifySgsnAddr maAccVerifyTknStrS /* Sgsn Address */
#define maAccVerifyLMSI maAccVerifyTknStrS /* Local MSI */
#define maAccVerifyTMSI maAccVerifyTknStrS /* Temporay MSI */
#define maAccVerifyVlrNmb maAccVerifyTknStrS /* VLR Number */
#define maAccVerifyHlrNmb maAccVerifyTknStrS /* HLR Number */
#define maAccVerifyMscNmb maAccVerifyTknStrS /* MSC Number */
#define maAccVerifyHlrId maAccVerifyTknStrS /* HLR Id */
#define maAccVerifyMsISDN maAccVerifyTknStrS /* MS ISDN Number */
#define maAccVerifyRoamNmb maAccVerifyTknStrS /* MS Roaming Number */
#define maAccVerifyDialNmb maAccVerifyTknStrS /* MS Dialled Number */
#define maAccVerifyCellId maAccVerifyTknStrS /* Global cell Id */
#define maAccVerifyHoNmb maAccVerifyTknStrS /* Handover number */
#define maAccVerifyChanType maAccVerifyTknStrS /* Channel type */
#define maAccVerifyClassMarkInfo maAccVerifyTknStrS /* class mark info */
#define maAccVerifyAuthRand maAccVerifyTknStrS /* Rand. nmb. used for Authentication */
#define maAccVerifyAuthSRes maAccVerifyTknStrS /* Authentication Set response */
#define maAccVerifyAuthKey maAccVerifyTknStrS /* Auth. key used for ciphering */
#define maAccVerifyTrType maAccVerifyTknStrS /* Trace type */
#define maAccVerifyTrRef maAccVerifyTknStrS /* Trace reference */
#define maAccVerifyOMCId maAccVerifyTknStrS /* OMS Id */
#define maAccVerifyCallRef maAccVerifyTknStrS /* Call Reference */
#define maAccVerifyNmbOfFwd maAccVerifyTknStrS
#define maAccVerifyFwdToNmb maAccVerifyTknStrS /* Forward to Number */
#define maAccVerifyFwdToSubAddr maAccVerifyTknStrS /* Forward to SubAddress */
#define maAccVerifyCugInd maAccVerifyTknStrS /* CUG Index */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -