📄 ma_acc4.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_acc4.c
Sid: ma_acc4.c@@/main/10 - Fri Sep 16 02:35:46 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"
#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"
/* Global Variable */
EXTERN MaAccCb maAccCb; /* TCAP Acceptance Test control block */
#define maAccUpdRepBNmb maAccUpdTknU8 /* Replace B Number */
#define maAccUpdRufOut maAccUpdTknU8 /* Network Access Mode */
#define maAccUpdCcbsSubsStat maAccUpdTknU8 /* Network Access Mode */
#define maAccUpdMonMode maAccUpdTknU8 /* Monitoring Mode */
#define maAccUpdCallOut maAccUpdTknU8 /* Call Outcome */
#define maAccUpdRptState maAccUpdTknU8 /* Reporting State */
#define maAccUpdNetAccMode maAccUpdTknU8 /* Network Access Mode */
#define maAccUpdDefCallHandl maAccUpdTknU8 /* Default Call Handling */
#define maAccUpdHoPri maAccUpdTknU8 /* Handover priority */
#define maAccUpdEqupStatus maAccUpdTknU8 /* Equp status */
#define maAccUpdHoNotReq maAccUpdTknU8 /* Handover Not required */
#define maAccUpdCiMode maAccUpdTknU8 /* Ciphering Mode */
#define maAccUpdCKSN maAccUpdTknU8 /* Ciphering Key Sequence Number */
#define maAccUpdMsNotReach maAccUpdTknU8 /* MS not reachable */
#define maAccUpdNetRsrs maAccUpdTknU8 /* Network resources */
#define maAccUpdHoType maAccUpdTknU8 /* Handover type */
#define maAccUpdFwdOpt maAccUpdTknU8 /* Forwarding Option */
#define maAccUpdIntraCugOpt maAccUpdTknU8 /* Intra CUG Options */
#define maAccUpdIntCugRest maAccUpdTknU8 /* Inter CUG Restrictions */
#define maAccUpdCugOAccess maAccUpdTknU8 /* CUG Outgoing Access */
/* Added function to update CUG Facilitiies */
#define maAccUpdCugFacilities maAccUpdTknU8
#define maAccUpdUssdDatCodSch maAccUpdTknU8 /* ussd Data Cod. sch. */
#define maAccUpdSSCode maAccUpdTknU8 /* Supp. Services Code */
#define maAccUpdBearServ maAccUpdTknU8 /* Bearer Service */
#define maAccUpdTeleServ maAccUpdTknU8 /* Teleservice */
#define maAccUpdSSStatus maAccUpdTknU8 /* SS Status */
#define maAccUpdCliRestOpt maAccUpdTknU8 /* cli Rest. Option */
#define maAccUpdOvrRideCat maAccUpdTknU8 /* OvrRide Category */
#define maAccUpdPerCallBas maAccUpdTknU8 /* Per Call Basis*/
#define maAccUpdNotToHldRetPty maAccUpdTknU8 /* Notofication to held Ret Pty*/
#define maAccUpdUtoUServInd maAccUpdTknU8 /* Usr to Usr Service Ind.*/
#define maAccUpdMaxConfNum maAccUpdTknStrS /* Max Conf Num*/
#define maAccUpdHntGrpAccSelOdr maAccUpdTknU8 /* Hunt Group Acc. sel Order*/
#define maAccUpdMsgToSnd maAccUpdTknU8 /* more message to send */
#define maAccUpdNoSMRPDA maAccUpdTknU8 /* SM RP DA */
#define maAccUpdNoSMRPOA maAccUpdTknU8 /* SM RP OA */
#define maAccUpdSMDelRslt maAccUpdTknU8 /* SM Delivery outcome */
#define maAccUpdAlrtReason maAccUpdTknU8 /* Alert Reason */
#define maAccUpdSMPRI maAccUpdTknU8 /* SM Priority */
#define maAccUpdRoamRestUF maAccUpdTknU8 /*Roam.Rest. o Unsup. Feat */
#define maAccUpdFrzTMSI maAccUpdTknU8 /* FreezeTMSI */
#define maAccUpdFrzPTMSI maAccUpdTknU8 /* FreezeP-TMSI */
#define maAccUpdMsSubsCat maAccUpdTknU8 /* Subscriber Category */
#define maAccUpdMsSubsStat maAccUpdTknU8 /* Subscriber Status */
#define maAccUpdMaxEntPri maAccUpdTknStrS /* Max. Entitled Priority */
#define maAccUpdSuppTCSI maAccUpdTknU8 /* Suppress TCSI */
#define maAccUpdAlrtPat maAccUpdTknU8 /* Alerting Pattern */
#define maAccUpdSuppOfAncmt maAccUpdTknU8 /* Supp. of Announcement */
#define maAccUpdCugSubsFlg maAccUpdTknU8 /* CUG Subscription Flag */
#define maAccUpdSSLstElmnt maAccUpdTknU8 /* SS List */
#define maAccUpdFwdIntReq maAccUpdTknU8 /* Forw. Interro Req. */
#define maAccUpdAssIdle maAccUpdTknU8 /* Assumed Idle */
#define maAccUpdCamBusy maAccUpdTknU8 /* Camel Busy */
#define maAccUpdNetDetNotRch maAccUpdTknU8 /* NetDetNotReachable */
#define maAccUpdNotPrvFrVlr maAccUpdTknU8 /* Not Provided From Vlr */
#define maAccUpdOrInterro maAccUpdTknU8 /* or-Interro. */
#define maAccUpdAbsSubsDiagSM maAccUpdTknStrS /* Abs. Subs. Diag. SM */
#define maAccUpdGprsSuppInd maAccUpdTknU8 /* GPRS Supp. Indicator */
#define maAccUpdAddSMDelOut maAccUpdTknU8 /* Add. SM Del. Outcome */
#define maAccUpdAddAbsSubsDiagSM maAccUpdTknStrS /* Add. Abs. Subs. Diag SM */
#define maAccUpdAlrtReasonInd maAccUpdTknU8 /* Alrt Rsn. Indicator */
#define maAccUpdGprsNodeInd maAccUpdTknU8 /* GPRS Node Indicator */
#define maAccUpdRegSubsRsp maAccUpdTknU8 /* Reg. Subs. Response */
#define maAccUpdBroadInitEntitle maAccUpdTknU8 /* broad. Init Ent. */
#define maAccUpdOBcsmTrgDetPoint maAccUpdTknU8 /* OBCSM Trig. Det. Point */
#define maAccUpdTBcsmTrgDetPoint maAccUpdTknU8 /* TBCSM Trg. Det. Pt */
#define maAccUpdMatchType maAccUpdTknU8 /* Match Type */
#define maAccUpdDstNmbLenLstElmnt maAccUpdTknStrS /* DestNmbLen. Lst */
#define maAccUpdCallTypeCrit maAccUpdTknU8 /* Call Type Criteria */
#define maAccUpdCamCapHan maAccUpdTknStrS /* Camel Cap. Handling */
#define maAccUpdSSEvtLstElmnt maAccUpdTknU8 /* SS Event List */
#define maAccUpdVplmnAddrAll maAccUpdTknU8 /* vplmn Address allowed */
#define maAccUpdRoamRestInSgsnUF maAccUpdTknU8 /*Roam Rest in Sgsn*/
#define maAccUpdVbsGrpInd maAccUpdTknU8 /* vbs Group Indication */
#define maAccUpdVgcsGrpInd maAccUpdTknU8 /* vgcs Group Indication */
#define maAccUpdCamSubsInfoWithDraw maAccUpdTknU8 /* Cam.Subs.InfoWithdraw */
#define maAccUpdReqPar maAccUpdTknU8 /* Requested Parameter */
#define maAccUpdCallDir maAccUpdTknU8 /* Call direction */
#define maAccUpdLocInformation maAccUpdTknU8 /* Loc. Info. */
#define maAccUpdSubsSta maAccUpdTknU8 /* Subs. State */
#define maAccUpdGrpKeyNmb maAccUpdTknStrS /* Group Key Number */
#define maAccUpdPri maAccUpdTknStrS /* Priority */
#define maAccUpdUpLnkFree maAccUpdTknU8 /* Uplink free */
#define maAccUpdUpLnkReq maAccUpdTknU8 /* Uplink Request */
#define maAccUpdUpLnkRlsInd maAccUpdTknU8 /* Uplink Rel. Ind. */
#define maAccUpdRlsGrpCall maAccUpdTknU8 /* Release Group Call */
#define maAccUpdUpLnkReqAck maAccUpdTknU8 /* Uplink Req. Ack */
#define maAccUpdUpLnkRejCmd maAccUpdTknU8 /* Uplink Rej. Cmd */
#define maAccUpdUpLnkSzeCmd maAccUpdTknU8 /* Uplink Seize Cmd */
#define maAccUpdUpLnkRlsCmd maAccUpdTknU8 /* Uplink Rls cmd */
#define maAccUpdMblNotRchRsn maAccUpdTknStrS /* Mobile Not Reach Rsn */
#define maAccUpdCanType maAccUpdTknU8 /* Can. type enum. */
#define maAccUpdInterroType maAccUpdTknU8 /* Interrogation Type */
#define maAccUpdFwdReason maAccUpdTknU8 /* Forwarding Reason */
#define maAccUpdOrPhase maAccUpdTknStrS /* OR-Phase */
#define maAccUpdCcbsCall maAccUpdTknU8 /* CCBS Call */
#define maAccUpdSupCcbsPhase maAccUpdTknStrS /* Supported CCBS Phase */
#define maAccUpdMwdSet maAccUpdTknU8 /* Mwd Set */
#define maAccUpdCcbsPsbl maAccUpdTknU8 /* ccbs - possible */
#define maAccUpdExtCont(ver,ptr,val) (IS_VER_EQUAL(maAccCb.pSwtch ,ver)? \
(maAccUpdExtContSeq(ptr)):(ROK));
#define maAccUpdSSEvtSpec maAccUpdTknStrS /* SS Event Spec */
#define maAccUpdSerKey maAccUpdTknStrS /* Service Key */
#define maAccUpdServInd maAccUpdTknStrE /* Service Indicator */
#define maAccUpdTransBNmb maAccUpdTknStrS /* Translated B Number */
#define maAccUpdAgeOfLocInfo maAccUpdTknStrS /* Age of Loc. Info. */
#define maAccUpdIMEI maAccUpdTknStrS /* Intern. Mob. Equp Number */
#define maAccUpdIMSI maAccUpdTknStrS /* International MSI */
#define maAccUpdSgsnAddr maAccUpdTknStrS /* Sgsn Address */
#define maAccUpdLMSI maAccUpdTknStrS /* Local MSI */
#define maAccUpdTMSI maAccUpdTknStrS /* Temporay MSI */
#define maAccUpdVlrNmb maAccUpdTknStrS /* VLR Number */
#define maAccUpdHlrNmb maAccUpdTknStrS /* HLR Number */
#define maAccUpdMscNmb maAccUpdTknStrS /* MSC Number */
#define maAccUpdHlrId maAccUpdTknStrS /* HLR Id */
#define maAccUpdMsISDN maAccUpdTknStrS /* MS ISDN Number */
#define maAccUpdRoamNmb maAccUpdTknStrS /* MS Roaming Number */
#define maAccUpdDialNmb maAccUpdTknStrS /* MS Dialled Number */
#define maAccUpdCellId maAccUpdTknStrS /* Global cell Id */
#define maAccUpdHoNmb maAccUpdTknStrS /* Handover number */
#define maAccUpdChanType maAccUpdTknStrS /* Channel type */
#define maAccUpdClassMarkInfo maAccUpdTknStrS /* class mark info */
#define maAccUpdAuthRand maAccUpdTknStrS /* Rand. nmb. used for Authentication */
#define maAccUpdAuthSRes maAccUpdTknStrS /* Authentication Set response */
#define maAccUpdAuthKey maAccUpdTknStrS /* Auth. key used for ciphering */
#define maAccUpdTrType maAccUpdTknStrS /* Trace type */
#define maAccUpdTrRef maAccUpdTknStrS /* Trace reference */
#define maAccUpdOMCId maAccUpdTknStrS /* OMS Id */
#define maAccUpdCallRef maAccUpdTknStrS /* Call Reference */
#define maAccUpdNmbOfFwd maAccUpdTknStrS
#define maAccUpdFwdToNmb maAccUpdTknStrS /* Forward to Number */
#define maAccUpdFwdToSubAddr maAccUpdTknStrS /* Forward to SubAddress */
#define maAccUpdCugInd maAccUpdTknStrS /* CUG Index */
#define maAccUpdCugIntLock maAccUpdTknStrS /* CUG Inter lock */
#define maAccUpdCugOpt maAccUpdTknU8 /* CUG options */
#define maAccUpdNoRplyCondTime maAccUpdTknStrS /* No reply codition time */
#define maAccUpdPasswd maAccUpdTknStrS /* Password */
#define maAccUpdGuidInfo maAccUpdTknU8 /* Guidance Info */
#define maAccUpdSmRpMti maAccUpdTknStrS /* SM RP MTI */
#define maAccUpdSmRpSmea maAccUpdTknStrS /* SM RP SMEA */
#define maAccUpdMWDStat maAccUpdTknStrS /* MWD Status */
#define maAccUpdODBGenData maAccUpdTknStrE /* ODB General Data */
#define maAccUpdODBHPLMNData maAccUpdTknStrE /* ODB HPLMN Data */
#define maAccUpdZoneCode maAccUpdTknStrS /* Zone code */
#define maAccUpdSCAddr maAccUpdTknStrS /* SC Address */
#define maAccUpdKi maAccUpdTknStrS /* Key */
#define maAccUpdDefPri maAccUpdTknStrS /* Default Priority */
#define maAccUpdSupCamPhase maAccUpdTknStrS /* Supported Camel Phases */
#define maAccUpdVmscAddr maAccUpdTknStrS /* Vmsc Addr. . */
#define maAccUpdGeogInfo maAccUpdTknStrS /* Geographical Information */
#define maAccUpdLocNmb maAccUpdTknStrS /* Location Number */
#define maAccUpdCellIdFixLen maAccUpdTknStrS /* Cell Id Fixed Length */
#define maAccUpdLaiFixLen maAccUpdTknStrS /* lai Fixed Length */
#define maAccUpdGmscAddr maAccUpdTknStrS /* GMSC Addr */
#define maAccUpdCallRefNmb maAccUpdTknStrS /* Call Reference Number */
#define maAccUpdNwNodeNmb maAccUpdTknStrS /* Network Node Number */
#define maAccUpdGroupId maAccUpdTknStrS /* Group Identifier */
#define maAccUpdGsmScfAddr maAccUpdTknStrS /* GSM SCF Address */
#define maAccUpdDstNmbLstElmnt maAccUpdTknStrS /* Destination Number LIst */
#define maAccUpdNaeaPrefCIC maAccUpdTknStrS /* Naea Preferred CIC */
#define maAccUpdPdpType maAccUpdTknStrS /* Pdp Type */
#define maAccUpdPdpAddr maAccUpdTknStrS /* Pdp Address */
#define maAccUpdQosSubs maAccUpdTknStrS /* qos subscribed */
#define maAccUpdBSubsAddr maAccUpdTknStrS /* B- Subscriber Address */
#define maAccUpdSIWFSNmb maAccUpdTknStrS /* SIWFS Number */
#define maAccUpdAsciCallRef maAccUpdTknStrS /* Asci Call Reference */
#define maAccUpdCodecInfo maAccUpdTknStrS /* Codec Information */
#define maAccUpdCipherAlgo maAccUpdTknU8 /* Ciphering Algorithm */
#define maAccUpdSgsnNmb maAccUpdTknStrS /* SGSN Number */
#define maAccUpdGgsnNmb maAccUpdTknStrS /* GGSN Number */
#define maAccUpdGgsnAddr maAccUpdTknStrS /* SGSN Address */
#define maAccUpdGrpCallNmb maAccUpdTknStrS /* Group Call Number */
#define maAccUpdGrpKey maAccUpdTknStrS /* Group Key */
#define maAccUpdCcbsIndex maAccUpdTknStrS /* CCBS Index */
#define maAccUpdBSubsNmb maAccUpdTknStrS /* B-Subscriber Number */
#define maAccUpdBSubsSubAddr maAccUpdTknStrS /* B-Subscriber Number */
#define maAccUpdNetNodeNmb maAccUpdTknStrS /* Network Node Number */
#define maAccUpdExtBearServ maAccUpdTknStrS /* extended bearer service */
#define maAccUpdExtTeleServ maAccUpdTknStrS /* extended tele service */
#define maAccUpdContextId maAccUpdTknStrS /* Context Identifier */
#define maAccUpdUssdStr maAccUpdTknStrE /* ussd String */
#define maAccUpdApn maAccUpdTknStrE /* ussd String */
#define maAccUpdSSUsrDat maAccUpdTknStrE /* SS User data */
#define maAccUpdSMRPUI maAccUpdTknStrE /* SM RP UI */
#define maAccUpdIMEI maAccUpdTknStrS /* IMEI */
#define maAccUpdEqpStatus maAccUpdTknU8 /* Euipment Status */
#define maAccUpdGmlcRest maAccUpdTknU8 /* GMLC Restriction */
#define maAccUpdElmntPres maAccUpdTknU8 /* Element Present */
#define maAccUpdSolsaSupInd maAccUpdTknU8 /* SOLSA support indicator */
#define maAccUpdSendSubsData maAccUpdTknU8 /* Send Subscriber Data */
#define maAccUpdIstInfoWithdraw maAccUpdTknU8 /* Ist info. withdraw */
#define maAccUpdGmlcListWithdraw maAccUpdTknU8 /* Gmlc list withdraw */
#define maAccUpdNotifcationToCse maAccUpdTknU8 /* Notification to CSE */
#define maAccUpdOCauseValue maAccUpdTknU8 /* O Cause Value */
#define maAccUpdTCauseValue maAccUpdTknU8 /* T Cause Value */
#define maAccUpdAllLsaData maAccUpdTknU8 /* All Lsa Data */
#define maAccUpdCsiActive maAccUpdTknU8 /* CSI Active */
#define maAccUpdFailCause maAccUpdTknU8 /* Failure Cause */
#define maAccUpdSegProhibited maAccUpdTknU8 /* Seg. Prohibhited */
#define maAccUpdImmResPreferred maAccUpdTknU8 /* Imm.Resp. preferred */
#define maAccUpdGprsEnhSupInd maAccUpdTknU8 /* Gprs Enh Supp Ind */
#define maAccUpdCsAllocRetenPriority maAccUpdTknU8 /* CS-Alloc Reten priority */
#define maAccUpdLsaIdentity maAccUpdTknStrS /* Lsa Identity */
#define maAccUpdAuthAuts maAccUpdTknStrS /* Auts */
#define maAccUpdSubsDataStored maAccUpdTknStrS /* Subscriber Data Stored */
#define maAccUpdSpecCsiWithdraw maAccUpdTknStrE /* Specific CSI Withdarw */
#define maAccUpdAuthXres maAccUpdTknStrS /* Xres */
#define maAccUpdAuthCk maAccUpdTknStrS /* Ck */
#define maAccUpdAuthIk maAccUpdTknStrS /* Ik */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -