Commit f0e1af3d authored by schmitting's avatar schmitting
Browse files

Template re-write started

parent 4098d1a6
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -824,6 +824,14 @@ const Bit3 c_ISUP_GNU_numbPlanInd_E164 := '001'B;
/* Value 'complete' for element iNN inside Generic number parameter (GNU); Optional(O) format.  (TX side).*/
const Bit1 c_ISUP_GNU_iNN_compl := '0'B;

/* Value 'Speech' of bit field element 'Information Transfer Capability' in ISDN IE 'Bearer Capability' */
const Bit5 c_BCAP_Speech := '00000'B;

/* Value '3.1 kHz audio' of bit field element 'Information Transfer Capability' in ISDN IE 'Bearer Capability' */
const Bit5 c_BCAP_3_1kHZ_Audio := '10000'B;

/* Value 'Unrestricted digital information with tones/announcements' of bit field element 'Information Transfer Capability' in ISDN IE 'Bearer Capability' */
const Bit5 c_BCAP_UDI_TA := '10001'B;
} /* end group Constants */

group Functions {
+200 −180

File changed.

Preview size limit exceeded, changes collapsed.

+103 −74
Original line number Diff line number Diff line
@@ -784,6 +784,17 @@ template CPN_PAR_tlv mw_CPN_PAR_tlv_any :=
}
} /* end group CPN */

group CUGIC {
template CUGIC_PAR_tlv mw_CUGIC_PAR_tlv_any :=
/* Default RX template for type CUGIC_PAR_tlv with wildcards for simple types */
{
 paramType := '00011010'B, /* Parameter Type '00011010'B */
 paramLen := '00000100'B,  /* Parameter Length field */
 networkIdentity := ?,     /* a) Network Identity (NI) (octets 1 and 2) */
 binaryCode := ?           /* Binary code */
}
} /* end group CUGIC */

group EIF {
template EIF_PAR_v m_EIF_Def :=
/* Default TX template for Event information parameter (EIF); Fixed(F) format. */
@@ -1032,15 +1043,6 @@ template HPC_PAR_tlv mw_HPC_PAR_tlv_any :=
 hopCounter := ?,          /* bits EDCBA: Hop counter */
 spare := '000'B           /* bits HGF: spare */
}

template HPC_PAR_tlv mw_HPC_Def :=
/* TX template for Hop counter parameter (HPC); Optional (O) format, with default values. */
{
 paramType := '00111101'B,                /* Parameter Type '00111101'B */
 paramLen := '00000001'B,                 /* Parameter Length field */
 hopCounter := ?,                         /* bits EDCBA: Hop counter */
 spare := '000'B                          /* bits HGF: spare */
}
} /* end group HPC */

group LPPI {
@@ -1075,14 +1077,6 @@ template LPPI_PAR_tlv mw_LPPI_req_Def :=
} /* end group LPPI */

group MCI {
template MCI_PAR_tlv mw_MCI_PAR_tlv_any :=
/* Default RX template for type MCI_PAR_tlv with wildcards for simple types */
{
 paramType := '00111000'B,  /* Parameter Type '00111000'B */
 paramLen := ?,             /* Parameter Length field */
 instructionIndicators := ?  
}

template MCI_PAR_tlv m_MCI_RelCall :=
/* TX template for Message compatibility information parameter (MCI); Optional(O) format, with Instruction Indicators indicating 'release call'. */
{
@@ -1102,6 +1096,14 @@ template InstructionIndicator m_InstructionIndicator_RelCall :=
 broadNarrowBandInterwIndicator := '10'B, /* bits G F: Broadband/narrowband interworking indicator */
 ext := '1'B                              /* extension bit */
}

template MCI_PAR_tlv mw_MCI_PAR_tlv_any :=
/* Default RX template for type MCI_PAR_tlv with wildcards for simple types */
{
 paramType := '00111000'B,  /* Parameter Type '00111000'B */
 paramLen := ?,             /* Parameter Length field */
 instructionIndicators := ?  
}
} /* end group MCI */

group MCRI {
@@ -1307,10 +1309,10 @@ template OFCI_PAR_tlv m_OFCI_CUG(Bit2 p_cugCallInd) :=
}

template OFCI_PAR_tlv mw_OFCI_PAR_tlv_any :=
/* Default RX template for type OFCI_PAR_tlv with wildcards for simple types */
/* TX template for Optional forward call indicators (OFCI); Optional (O) format, with Closed user group call indicator parameterized and default values otherwise. */
{
 paramType := '00001000'B, /* Parameter Type '00001000'B */
 paramLen := '00000001'B,  /* Parameter Length field */
 paramLen := ?,            /* Parameter Length field */
 cUGCallIndicator := ?,    /* bits BA: Closed user group call indicator */
 simpleSegIndicator := ?,  /* bit C: Simple segmentation indicator */
 spare := '0000'B,         /* bits G-D: spare */
@@ -1563,6 +1565,24 @@ template SRI_PAR_v mw_SRI_PAR_v_any :=
}
} /* end group SRI */

group TMRP {
template TMRP_PAR_tlv mw_TMRP_PAR_tlv_any :=
/* Default RX template for type TMRP_PAR_tlv with wildcards for simple types */
{
 paramType := '00111110'B,          /* Parameter Type '00111110'B */
 paramLen := '00000001'B,           /* Parameter Length field */
 transmissionMediumRequirement := ? /* Transmission medium requirement */
}

template TMRP_PAR_tlv mw_TMRP_PAR_tlv(Bit8 p_TMR) :=
/* Default RX template for type TMRP_PAR_tlv with parametrized Transmission medium requirement */
{
 paramType := '00111110'B,              /* Parameter Type '00111110'B */
 paramLen := '00000001'B,               /* Parameter Length field */
 transmissionMediumRequirement := p_TMR /* Transmission medium requirement */
}
} /* end group TMRP */

group UAI {
template UAI_PAR_tlv m_UAI_connected :=
/* TX template for Action indicator (UAI); Optional (O) format, with throughConnInstructionIndicator = 'connected'. */
@@ -1680,7 +1700,7 @@ template USIContents mw_USIContents_any :=
 bCAP_octet7 := mw_BCAP_octet7_any ifpresent  
}

template USI_PAR_tlv mw_USI_Std(template USIContents p_uSIContents) :=
template USI_PAR_tlv mw_USI_Std(USIContents p_uSIContents) :=
/* Default RX template with parametrization for  User service information parameter (USI); Optional(O) format. */
{
 paramType := '00011101'B,    /* Parameter Type '00011101'B */
@@ -1688,7 +1708,7 @@ template USI_PAR_tlv mw_USI_Std(template USIContents p_uSIContents) :=
 uSIContents := p_uSIContents 
}

template USIContents mw_USIContents_Std(template Bit5 p_InfoTrfCap, Bit5 p_UserInfoL1) :=
template USIContents mw_USIContents_Std(Bit5 p_InfoTrfCap, Bit5 p_UserInfoL1) :=
/* Default RX template for type USIContents with Information transfer capability and User information Layer 1 protocol parameterized, and with 'any' template values for other structured types, and wildcards for simple types.*/
{
 bCAP_octet3 := mw_BCAP_octet3_Std(p_InfoTrfCap),
@@ -1698,7 +1718,7 @@ template USIContents mw_USIContents_Std(template Bit5 p_InfoTrfCap, Bit5 p_UserI
 bCAP_octet7 := mw_BCAP_octet7_any ifpresent  
}

template USIContents mw_USIContents_InfoTrfCap(template Bit5 p_InfoTrfCap) :=
template USIContents mw_USIContents_InfoTrfCap(Bit5 p_InfoTrfCap) :=
/* RX template for type USIContents with Information transfer capability parameterized, and with 'any' template values for other structured types, and wildcards for simple types.*/
{
 bCAP_octet3 := mw_BCAP_octet3_Std(p_InfoTrfCap),
@@ -1805,7 +1825,7 @@ template BCAP_octet7 mw_BCAP_octet7_any :=
 ext := ?                            /* Extension */
}

template BCAP_octet3 mw_BCAP_octet3_Std(template Bit5 p_InfoTrfCap) :=
template BCAP_octet3 mw_BCAP_octet3_Std(Bit5 p_InfoTrfCap) :=
/* Default RX template for type BCAP_octet3 with wildcards for simple types */
{
 informationTransferCapability := p_InfoTrfCap, /* Information transfer capability */
@@ -1827,6 +1847,41 @@ template BCAP_octet5 mw_BCAP_octet5_Std(Bit5 p_UserInfoL1) :=
}
} /* end group USI */

group USIP {
template USIP_PAR_tlv mw_USIP_PAR_tlv_any :=
/* Default RX template for type USIP_PAR_tlv with 'any' template values for structured types, and wildcards for simple types */
{
 paramType := '00110000'B,         /* Parameter Type '00110000'B */
 paramLen := ?,                    /* Parameter Length field */
 uSIContents := mw_USIContents_any 
}

template USIP_PAR_tlv mw_USIP_PAR_tlv(USIContents p_uSIContents) :=
/* Default RX template for type USIP_PAR_tlv with parametrized Information Transfer Capability, 'any' template values for structured types, and wildcards for simple types */
{
 paramType := '00110000'B,         /* Parameter Type '00110000'B */
 paramLen := ?,                    /* Parameter Length field */
 uSIContents := p_uSIContents 
}
} /* end group USIP */

group UTSI {
template UTSI_PAR_tlv mw_UTSI_PAR_tlv_any :=
/* Default RX template for type UTSI_PAR_tlv with wildcards for simple types */
{
 paramType := '00110100'B,                        /* Parameter Type '00110100'B */
 paramLen := '00000011'B,                         /* Parameter Length field */
 presentation := ?,                               /* Presentation */
 interpretation := ?,                             /* Interpretation */
 codingStandard := ?,                             /* Coding standard */
 ext1 := ?,                                       /* Extension */
 highLayerCharacteristicsIdentification := ?,     /* High layer characteristics identification */
 ext2 := ?,                                       /* Extension */
 extendedLayerCharacteristicsIdentification := ?, /* Extended layer characteristics identification */
 ext3 := ?                                        /* Extension */
}
} /* end group UTSI */

group UUID {
template UUID_PAR_tlv m_UUID_req_S1(Bit2 p_serv1) :=
/* TX template for User-to-user indicators parameter (UUID); Optional (O) format, with Service 1 requested. */
@@ -2305,38 +2360,52 @@ template FRJ_OPTIONAL_PARAMS mw_FRJ_USED_OPTIONAL_PARAMS(template UUID_PAR_tlv p
 userToUserIndicators := p_UUI /* User-to-user indicators, O, len=3 */
}

template IAM_OPTIONAL_PARAMS mw_IAM_USED_OPTIONAL_PARAMS(template CGN_PAR_tlv p_CGN, template ATP_PAR_tlv p_ATP, template USI_PAR_tlv p_USI, template GNU_PAR_tlv p_GNU, template HPC_PAR_tlv p_HPC) :=
/* RX template for SET: optional parameters of Initial address message (IAM) with Calling party number, Access transport, User service information, Generic number and Hop counter parameterized and 'any' other optional parameters.*/
template IAM_OPTIONAL_PARAMS mw_IAM_USED_OPTIONAL_PARAMS
							(template CGN_PAR_tlv p_CGN,
							 template OFCI_PAR_tlv p_OFCI,
							 template RDN_PAR_tlv p_RDN,
							 template RDI_PAR_tlv p_RDI,
							 template CUGIC_PAR_tlv p_CUGIC,
							 template OCN_PAR_tlv p_OCN,
							 template UUIF_PAR_tlv p_UUIF,
							 template ATP_PAR_tlv p_ATP,
							 template USI_PAR_tlv p_USI,
							 template GNU_PAR_tlv p_GNU,
							 template USIP_PAR_tlv p_USIP,
							 template UTSI_PAR_tlv p_UTSI,
							 template TMRP_PAR_tlv p_TMRP,
							 template HPC_PAR_tlv p_HPC) :=
/* RX template for SET: optional parameters of Initial address message (IAM) with CGN, OFCI, RDN, RDI, CUGIC, OCN, UUIF, ATP, USI, GNU, USIP, UTSI, TMRP, HPC parameterized and 'any' other optional parameters.*/
{
 transitNetworkSelection := mw_TNS_PAR_tlv_any ifpresent,              /* Transit network selection, O, len=4-? */
 callReference := mw_CRF_PAR_tlv_any ifpresent,                        /* Call reference, O, len=7 */
 callingPartyNumber := p_CGN,                                          /* Calling party number, O, len=4-? */
 optionalForwardCallIndicators := mw_OFCI_PAR_tlv_any ifpresent,       /* Optional forward call indicators, O, len=3 */
 redirectingNumber := mw_RDN_PAR_tlv_any ifpresent,                    /* Redirecting number, O, len=4-? */
 redirectionInformation := mw_RDI_PAR_tlv_any ifpresent,               /* Redirection information, O, len=3-4 */
 closedUserGroupInterlockCode := mw_CUGIC_PAR_tlv_any ifpresent,       /* Closed user group interlock code, O, len=6 */
 optionalForwardCallIndicators := p_OFCI,                              /* Optional forward call indicators, O, len=3 */
 redirectingNumber := p_RDN,                                           /* Redirecting number, O, len=4-? */
 redirectionInformation := p_RDI,                                      /* Redirection information, O, len=3-4 */
 closedUserGroupInterlockCode := p_CUGIC,                              /* Closed user group interlock code, O, len=6 */
 connectionRequest := mw_CRQ_PAR_tlv_any ifpresent,                    /* Connection request, O, len=7-9 */
 originalCalledNumber := mw_OCN_PAR_tlv_any ifpresent,                 /* Original called number, O, len=4-? */
 userToUserInformation := mw_UUIF_PAR_tlv_any ifpresent,               /* User-to-user information, O, len=3-131 */
 originalCalledNumber := p_OCN,                                        /* Original called number, O, len=4-? */
 userToUserInformation := p_UUIF,                                      /* User-to-user information, O, len=3-131 */
 accessTransport := p_ATP,                                             /* Access transport, O, len=3-? */
 userServiceInformation := p_USI,                                      /* User service information, O, len=4-13 */
 userToUserIndicators := mw_UUID_PAR_tlv_any ifpresent,                /* User-to-user indicators, O, len=3 */
 genericNumber1 := p_GNU,                                              /* Generic number1, O, len=5-? */
 genericNumber2 := mw_GNU_PAR_tlv_any ifpresent,                       /* Generic number2, O, len=5-? */
 propagationDelayCounter := mw_PDC_PAR_tlv_any ifpresent,              /* Propagation delay counter, O, len=4 */
 userServiceInformationPrime := mw_USIP_PAR_tlv_any ifpresent,         /* User service information prime, O, len=4-13 */
 userServiceInformationPrime := p_USIP,                                /* User service information prime, O, len=4-13 */
 networkSpecificFacility := mw_NSF_PAR_tlv_any ifpresent,              /* Network specific facility, O, len=4-? */
 genericDigits1 := mw_GDG_PAR_tlv_any ifpresent,                       /* Generic digits1, O, len=4-? */
 genericDigits2 := mw_GDG_PAR_tlv_any ifpresent,                       /* Generic digits2, O, len=4-? */
 originationISCPointCode := mw_OIPC_PAR_tlv_any ifpresent,             /* Origination ISC point code, O, len=4 */
 userTeleserviceInformation := mw_UTSI_PAR_tlv_any ifpresent,          /* User teleservice information, O, len=4-5 */
 userTeleserviceInformation := p_UTSI,                                 /* User teleservice information, O, len=4-5 */
 remoteOperations := mw_ROP_PAR_tlv_any ifpresent,                     /* Remote operations, O, len=8-? */
 parameterCompatibilityInformation := mw_PCI_PAR_tlv_any ifpresent,    /* Parameter compatibility information, O, len=4-? */
 genericNotificationIndicator1 := mw_GNI_PAR_tlv_any ifpresent,        /* Generic notification indicator1, O, len=3 */
 genericNotificationIndicator2 := mw_GNI_PAR_tlv_any ifpresent,        /* Generic notification indicator2, O, len=3 */
 serviceActivation := mw_SAC_PAR_tlv_any ifpresent,                    /* Service activation, O, len=3-? */
 mLPPPrecedence := mw_MLPP_PAR_tlv_any ifpresent,                      /* MLPP precedence, O, len=8 */
 transmissionMediumRequirementPrime := mw_TMRP_PAR_tlv_any ifpresent,  /* Transmission medium requirement prime, O, len=3 */
 transmissionMediumRequirementPrime := p_TMRP,                         /* Transmission medium requirement prime, O, len=3 */
 locationNumber := mw_LON_PAR_tlv_any ifpresent,                       /* Location number, O, len=4-? */
 forwardGVNS := mw_FGVNS_PAR_tlv_any ifpresent,                        /* Forward GVNS, O, len=5-26 */
 cCSS := mw_CCSS_PAR_tlv_any ifpresent,                                /* CCSS, O, len=3-? */
@@ -3032,15 +3101,6 @@ template CTR_PAR_tlv mw_CTR_PAR_tlv_any :=
 callTransferIdentity := ? /* Call transfer identity */
}

template CUGIC_PAR_tlv mw_CUGIC_PAR_tlv_any :=
/* Default RX template for type CUGIC_PAR_tlv with wildcards for simple types */
{
 paramType := '00011010'B, /* Parameter Type '00011010'B */
 paramLen := '00000100'B,  /* Parameter Length field */
 networkIdentity := ?,     /* a) Network Identity (NI) (octets 1 and 2) */
 binaryCode := ?           /* Binary code */
}

template DIF_PAR_tlv mw_DIF_PAR_tlv_any :=
/* Default RX template for type DIF_PAR_tlv with wildcards for simple types */
{
@@ -3350,14 +3410,6 @@ template SPC_PAR_tlv mw_SPC_PAR_tlv_any :=
 spare := '00'B            /* spare */
}

template TMRP_PAR_tlv mw_TMRP_PAR_tlv_any :=
/* Default RX template for type TMRP_PAR_tlv with wildcards for simple types */
{
 paramType := '00111110'B,          /* Parameter Type '00111110'B */
 paramLen := '00000001'B,           /* Parameter Length field */
 transmissionMediumRequirement := ? /* Transmission medium requirement */
}

template TMU_PAR_tlv mw_TMU_PAR_tlv_any :=
/* Default RX template for type TMU_PAR_tlv with wildcards for simple types */
{
@@ -3387,29 +3439,6 @@ template UCI_PAR_tlv mw_UCI_PAR_tlv_any :=
 spare := '00000'B,              /* bits G-C: spare */
 ext := ?                        /* bit H: Extension indicator */
}

template USIP_PAR_tlv mw_USIP_PAR_tlv_any :=
/* Default RX template for type USIP_PAR_tlv with 'any' template values for structured types, and wildcards for simple types */
{
 paramType := '00110000'B,         /* Parameter Type '00110000'B */
 paramLen := ?,                    /* Parameter Length field */
 uSIContents := mw_USIContents_any 
}

template UTSI_PAR_tlv mw_UTSI_PAR_tlv_any :=
/* Default RX template for type UTSI_PAR_tlv with wildcards for simple types */
{
 paramType := '00110100'B,                        /* Parameter Type '00110100'B */
 paramLen := '00000011'B,                         /* Parameter Length field */
 presentation := ?,                               /* Presentation */
 interpretation := ?,                             /* Interpretation */
 codingStandard := ?,                             /* Coding standard */
 ext1 := ?,                                       /* Extension */
 highLayerCharacteristicsIdentification := ?,     /* High layer characteristics identification */
 ext2 := ?,                                       /* Extension */
 extendedLayerCharacteristicsIdentification := ?, /* Extended layer characteristics identification */
 ext3 := ?                                        /* Extension */
}
} /* end group ParametersAnyValue */
} /* end group Parameter */
} /* end Module SipIsup_ISUP_ParamTemplates */
+21263 −21070

File changed.

Preview size limit exceeded, changes collapsed.