LibSip_SIPTypesAndValues.ttcn 81.2 KB
Newer Older
1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000
                    // [20.25 ]
                    type record Organization {
                        FieldName fieldName (ORGANIZATION_E) ,
                        charstring organization
                    }

                    // [20.26 ]
                    type record Priority {
                        FieldName fieldName (PRIORITY_E) ,
                        charstring priorityValue
                    }

                    // [20.27 RFC2616 14.33 RFC2617 1.2 ]
                    type record ProxyAuthenticate {
                        FieldName fieldName (PROXY_AUTHENTICATE_E) ,
                        Challenge challenge
                    }

                    // [20.28 RFC2616 14.35 RFC2617 1.2 ]
                    type record ProxyAuthorization {
                        FieldName fieldName (PROXY_AUTHORIZATION_E) ,
                        CredentialsList
                        credentials // changed from Credentials to allow multiple Authorization headers
                    }

                    // [20.29 ]
                    type record ProxyRequire {
                        FieldName fieldName (PROXY_REQUIRE_E) ,
                        OptionTag_List optionsTags
                    }

                    // [20.30 ]
                    type record RecordRoute {
                        FieldName fieldName (RECORD_ROUTE_E) ,
                        RouteBody_List routeBody
                    }

                    type set of InfoPackage_Type InfoPackage_List;
                    
                    type record InfoPackage_Type {
                        charstring  infoPackageName,
                        SemicolonParam_List infoPackageParams optional
                        
                    }
                    
                    //[6086]
                    type record RecvInfo {
                        FieldName fieldName(RECV_INFO_E),
                        InfoPackage_List infoPackageList
                    }

                    //[6086]
                    type record InfoPackage {
                        FieldName fieldName(INFO_PACKAGE_E),
                        InfoPackage_Type infoPackageType
                    }

                    // [20.31 ]
                    type record ReplyTo {
                        FieldName fieldName (REPLY_TO_E) ,
                        Addr_Union addressField,
                        SemicolonParam_List replyToParams optional
                    }

                    // [20.32 ]
                    type record Require {
                        FieldName fieldName (REQUIRE_E) ,
                        OptionTag_List optionsTags
                    }

                    // [20.33 ]
                    type record RetryAfter {
                        FieldName fieldName (RETRY_AFTER_E) ,
                        DeltaSec deltaSec,
                        charstring comment optional,
                        SemicolonParam_List retryParams optional
                    }

                    // [20.34 ]
                    type record Route {
                        FieldName fieldName (ROUTE_E) ,
                        RouteBody_List routeBody
                    }

                    // [20.35 RFC2616 14.38 ]
                    type record Server {
                        FieldName fieldName (SERVER_E) ,
                        ServerVal_List serverBody
                    }

                    // [20.36 ]
                    type record Subject {
                        FieldName fieldName (SUBJECT_E) ,
                        charstring summary
                    }

                    // [20.37 ]
                    type record Supported {
                        FieldName fieldName (SUPPORTED_E) ,
                        OptionTag_List optionsTags optional
                    }

                    // [20.38 ]
                    type record Timestamp {
                        FieldName fieldName (TIMESTAMP_E) ,
                        TimeValue timeValue optional,
                        TimeValue delay optional
                    }

                    // [20.39 ]
                    type record To {
                        FieldName fieldName (TO_E) ,
                        Addr_Union addressField,
                        SemicolonParam_List toParams optional
                    }

                    // [20.40 ]
                    type record Unsupported {
                        FieldName fieldName (UNSUPPORTED_E) ,
                        OptionTag_List optionsTags
                    }

                    // Undefined header field
                    type record UndefinedHeader {
                        charstring headerName,
                        charstring headerValue
                    }

                    type set of UndefinedHeader UndefinedHeader_List;

                    // [20.41 RFC2616 14.43 ]
                    type record UserAgent {
                        FieldName fieldName (USER_AGENT_E) ,
                        ServerVal_List userAgentBody
                    }

                    // [20.42 ]
                    type record Via {
                        FieldName fieldName (VIA_E) ,
                        ViaBody_List viaBody
                    }

                    // [20.43 ]
                    type record Warning {
                        FieldName fieldName (WARNING_E) ,
                        WarningValue_List warningValue
                    }

                    // [20.44 RFC2616 14.47 RFC2617 1.2 ]
                    type record WwwAuthenticate {
                        FieldName fieldName (WWW_AUTHENTICATE_E) ,
                        Challenge challenge
                    }

                } // end group CommonHeaderFieldTypes
                group RFC3262HeaderFieldTypes {
                    // [3262/7.1 ]
                    type record RSeq {
                        FieldName fieldName (RSEQ_E) ,
                        integer responseNum
                    }

                    // [3262/7.2 ]
                    type record RAck {
                        FieldName fieldName (RACK_E) ,
                        integer responseNum,
                        integer seqNumber,
                        charstring method
                    }

                } // end group RFC3262HeaderFieldTypes

                group RFC3265HeaderFieldTypes {
                    // [3265/7.2 ]
                    type record AllowEvents {
                        FieldName fieldName (ALLOW_EVENTS_E) ,
                        EventType_List eventTypes
                    }

                    type set of EventType EventType_List;
                    type charstring EventType;

                    // [3265/7.2 ]
                    type record Event {
                        FieldName fieldName (EVENT_E) ,
                        EventType eventType,
                        SemicolonParam_List eventParams optional
                    }

                    // [3265/7.2 ]
                    type record SubscriptionState {
                        FieldName fieldName (SUBSCRIPTION_STATE_E) ,
                        SubState subState,
                        SemicolonParam_List substateParams optional
                    }

                    type charstring SubState;

                } // end group RFC3265HeaderFieldTypes

                group RFC3313HeaderFieldTypes {
                    // [3313/5 ]
                    type record PMediaAuthorization {
                        FieldName fieldName (P_MEDIA_AUTHORIZATION_E) ,
                        PMediaAuthorization_List pMediaAuthorizations
                    }

                    type charstring PMediaAuthValue; // HEXDIG "0"-"9", "A"-"F"
                    type record of PMediaAuthValue PMediaAuthorization_List;


                } // end group RFC3265HeaderFieldTypes

                group RFC3323HeaderFieldTypes {
                    // [3323 ]
                    type record Privacy {
                        FieldName fieldName (PRIVACY_E) ,
                        PrivacyValue_List privValueList
                    }

                } // end group RFC3323HeaderFieldTypes

                group RFC3325HeaderFieldTypes {
                    // [3325 ]
                    type record PAssertedID {
                        FieldName fieldName (P_ASSERTED_ID_E) ,
                        PAssertedIDValue_List pAssertedIDValueList
                    }

                    // [3325 ]
                    type record PPreferredID {
                        FieldName fieldName (P_PREFERRED_ID_E) ,
                        PPreferredIDValue_List pPreferredIDValueList
                    }
                    // draft-drage-sipping-service-identification-01 (July 2007)
                    type record PPreferredService {
                        FieldName fieldName (P_PREFERRED_SERVICE_E) ,
                        charstring serviceId
                    }


                } // end group RFC3325HeaderFieldTypes

                group RFC3326HeaderFieldTypes {
                    // [3326 ]
                    type record of ReasonValue ReasonValues;

                    type record ReasonValue {
                        charstring token,
                        SemicolonParam_List reasonParams optional
                    }

                    type record Reason {
                        FieldName fieldName (REASON_E) ,
                        ReasonValues reasonValues
                    }

                } // end group RFC3326HeaderFieldTypes

                group RFC3327HeaderFieldTypes {
                    // [3327 ]
                    type record Path {
                        FieldName fieldName (PATH_E) ,
                        PathValues pathValues
                    }

                    type record of PathValue PathValues;

                    type record PathValue {
                        NameAddr nameAddr,
                        SemicolonParam_List rrParam optional
                    }

                } // end group RFC3515HeaderFieldTypes


                group RFC4488HeaderFieldTypes {
                    // [4488 ]
                    type record ReferSub {
                        FieldName fieldName (REFER_SUB_E) ,
                        boolean referSubValue,
                        SemicolonParam_List referSubParams optional
                    }

                } // end group RFC4488HeaderFieldTypes

                group RFC3329HeaderFieldTypes {
                    // [RFC3329/2.2 ]
                    type record SecurityMechanism {
                        charstring mechName,
                        SemicolonParam_List mechParams optional
                    }

                    type set of SecurityMechanism SecurityMechanism_List;

                    type record SecurityClient {
                        FieldName fieldName (SECURITY_CLIENT_E) ,
                        SecurityMechanism_List securityMech
                    }

                    type record SecurityServer {
                        FieldName fieldName (SECURITY_SERVER_E) ,
                        SecurityMechanism_List securityMech
                    }

                    type record SecurityVerify {
                        FieldName fieldName (SECURITY_VERIFY_E) ,
                        SecurityMechanism_List securityMech
                    }

                } // end group RFC3329HeaderFieldTypes

                group RFC3455HeaderFieldTypes {
                    type record of NameAddrParam NameAddrParam_List;

                    type record NameAddrParam {
                        NameAddr nameAddr,
                        SemicolonParam_List genericParams optional
                    }
                    // [3455/5.1 ]
                    type record PAssociatedURI {
                        FieldName fieldName (P_ASSOCIATED_URI_E) ,
                        NameAddrParam_List nameAddrList
                    }
                    // [3455/5.2 ]
                    type record PCalledPartyID {
                        FieldName fieldName (P_CALLED_PARTY_E) ,
                        NameAddrParam nameAddParams
                    }

                    type record of VnetworkSpec VnetworkSpec_List;

                    type record VnetworkSpec {
                        charstring vNetworkSpecToken,
                        SemicolonParam_List genericParams optional
                    }

                    // [3455/5.3 ]
                    type record PVisitedNetworkID {
                        FieldName fieldName (P_VISITED_NETWORK_E) ,
                        VnetworkSpec_List vNetWorkSpec
                    }

                    // [3455/5.4 ]
                    type record PAccessNetworkInfo {
                        FieldName fieldName (P_ACCESS_NETWORK_INFO_E) ,
                        charstring accessType,
                        SemicolonParam_List genericParams optional
                    }

                    // [3455/5.5 ]
                    type record PChargingFunctionAddresses {
                        FieldName fieldName (P_CHARGING_FUNCTION_ADDRESSES_E) ,
                        SemicolonParam_List chargeAddrParams optional
                    }

                    // [3455/5.6 ]
                    type record PChargingVector {
                        FieldName fieldName (P_CHARGING_VECTOR_E) ,
                        charstring icidValue,
                        SemicolonParam_List chargeParams optional
                    }

                } // end group RFC33455HeaderFieldTypes

                group RFC3515HeaderFieldTypes {
                    // [3515 ]
                    type record ReferTo {
                        FieldName fieldName (REFER_TO_E) ,
                        NameAddr nameAddr,
                        SemicolonParam_List referToParams optional
                    }

                } // end group RFC3515HeaderFieldTypes

                group RFC3608HeaderFieldTypes {
                    // [3608 ]
                    type record ServiceRoute {
                        FieldName fieldName (SERVICE_ROUTE_E) ,
                        RouteBody_List routeBody
                    }

                } // end group RFC33608HeaderFieldTypes


                group RFC3841HeaderFieldTypes {
                    // [3841 ]
                    type record AcceptContact {
                        FieldName fieldName (ACCEPT_CONTACT_E) ,
                        AcRcValue_List acValues
                    }

                    type set of AcRcValue AcRcValue_List;

                    type record AcRcValue {
                        charstring wildcard (c_WILDCARD) ,
                        SemicolonParam_List acRcParams optional
                    }
                    // [RFC 3841 ]
                    type charstring Directive;
                    type set of Directive Directive_List;
                    type record RequestDisposition {
                        FieldName fieldName (REQUEST_DISPOSITION_E) ,
                        Directive_List directives
                    }


                } // end group RFC3841HeaderFieldTypes

                group RFC3891HeaderFieldTypes {
                    // [3891 ]
                    type record Replaces {
                        FieldName fieldName (REPLACES_E) ,
                        CallidString callid,
                        SemicolonParam_List replacesParams optional
                    }

                } // end group RFC3891HeaderFieldTypes

                group RFC3892HeaderFieldTypes {
                    // [3892 ]
                    type record ReferredBy {
                        FieldName fieldName (REFERRED_BY_E) ,
                        NameAddr nameAddr,
                        SemicolonParam_List referredbyIdParams optional
                    }

                } // end group RFC3892HeaderFieldTypes

                group RFC4028HeaderFieldTypes {
                    // [4028 ]
                    type record MinSE {
                        FieldName fieldName (MIN_SE_E) ,
                        DeltaSec deltaSec,
                        SemicolonParam_List minSeParam optional
                    }
                    // [4028 ]
                    type record SessionExpires {
                        FieldName fieldName (SESSION_EXPIRES_E) ,
                        DeltaSec deltaSec,
                        SemicolonParam_List seParam optional
                    }

                } // end group RFC4028HeaderFieldTypes

                group RFC4244HeaderFieldTypes {
                    // [4244 ]
                    type record HistoryInfo {
                        FieldName fieldName (HISTORY_INFO_E) ,
                        HistoryInfo_List historyInfoList
                    }

                    type record of HistoryInfoEntry HistoryInfo_List;

                    type record of integer IntegerList;

                    type record HistoryInfoEntry {
                        NameAddr nameAddr,
                        IntegerList hiIndex optional,
                        SemicolonParam_List hiExtention optional
                    }

                    type record of charstring StringList;

                } // end group RFC4244HeaderFieldTypes

                group RFC5009PEarlyMediaHeader {
                    // [5009 ]
                    type record PEarlyMedia {
                        FieldName fieldName (P_EARLY_MEDIA_E) ,
                        EM_Param_List em_param
                    }
                    type charstring EM_Param;
                    type set of EM_Param EM_Param_List;

                } // end group RFC5009PEarlyMediaHeader

                // http://tools.ietf.org/html/draft-johnston-sipping-cc-uui-07, expires 16.Aug.2009
                // Transporting User to User Call Control Information in SIP for ISDN Interworking
                // type definition of SIP header mechanism
                group UserToUser_PreliminaryRFCDraft {
                    type record UserToUser {
                        FieldName fieldName (USER_TO_USER_E) ,
                        charstring uuiData  length(256),
                        /*length limitation due to ISDN, max of allowed 128 hex digits are represented by 256 characters*/
                        GenericParam uuiParam
                    }


                } // end group UserToUser_PreliminaryRFCDraft

                type record PAssertedService {
                    FieldName fieldName (P_ASSERTED_SERVICE_E) ,
                    PAssertedServiceValue pAssertedServiceValue
                }

                group RFC6442GeolocationConveyance {
                    // [6442 ]
                    type record Geolocation {
                        // RFC6442 clause 4.1
                        FieldName fieldName (GEOLOCATION_E) ,
                        SipUrl addrSpec,
                        SemicolonParam_List geolocParam optional
                    }
                    type enumerated GeolocationRoutingState {
                        GEOLOCATION_ROUTING_YES_E, GEOLOCATION_ROUTING_NO_E, GEOLOCATION_ROUTING_OTHER_E
                    }
                    type record GeolocationRouting {
                        // RFC6442 clause 4.2
                        FieldName fieldName (GEOLOCATION_ROUTING_E) ,
                        GeolocationRoutingState state,
                        GenericParam genericValue optional
                    }

                } // end group RFC6442GeolocationConveyance

                type charstring SessIdString  length(32);

                type record SessionId {
                    FieldName fieldName (SESSION_ID_E) ,
                    SessIdString sessid,
                    GenericParam sessidParam optional
                }

                type charstring EntityTag;

                type record SIP_ETag {
                    FieldName fieldName (SIP_ETAG_E) ,
                    EntityTag entityTag
                }

                type record SIP_If_Match {
                    FieldName fieldName (SIP_IF_MATCH_E) ,
                    EntityTag entityTag
                }

                // RFC4412
                type record ResourcePriority {
                    FieldName fieldName (RESOURCE_PRIORITY_E) ,
                    ResourcePriority_List resourcePriorityList
                }
                type set of R_Value ResourcePriority_List;
                type record R_Value {
                    charstring namespace,
                    charstring rPriority
                }
                
                // RFC5373
                type record AnswerMode {
                    FieldName fieldName (ANSWER_MODE_E),
                    AnswerMode_Value answerMode_Value,
                    SemicolonParam_List answerModeParams optional
                }
                type record PrivAnswerMode {
                    FieldName fieldName (PRIV_ANSWER_MODE_E),
                    AnswerMode_Value answerMode_Value,
                    SemicolonParam_List answerModeParams optional
                }                
                type charstring AnswerMode_Value;
               
                 // RFC4538
                type record TargetDialog {
                      FieldName fieldName (TARGET_DIALOG_E),
                      CallidString callid,
                      TdParam tdParam optional
                }
                type record TdParam {
                        charstring remoteParam optional,
                        charstring localParam optional,                        
                        SemicolonParam_List genericParams optional
                    }  

                 // RFC4964
                type record PAnswerState {
                      FieldName fieldName (P_ANSWER_STATE_E),
                      charstring answerType,
                      SemicolonParam_List genericParams optional
                }


            } // end group HeaderFieldTypes

            group MessageHeaderTypes {

                // Message-Header for all SIP requests and responses [20 ]
                type set MessageHeader {
                    Accept accept optional,
                    AcceptContact acceptContact optional,
                    AcceptEncoding acceptEncoding optional,
                    AcceptLanguage acceptLanguage optional,
                    AlertInfo alertInfo optional,
                    Allow allow optional,
                    AllowEvents allowEvents optional,
                    // 3265/7.2
                    AuthenticationInfo authenticationInfo optional,
                    // only in responses
                    Authorization authorization optional,
                    // only in requests
                    CallId callId optional,
                    // optional only in Invalid test cases mandatory otherwise
                    CallInfo callInfo optional,
                    Contact contact optional,
                    // optional in response and all requests except INVITE where mandatory
                    ContentDisposition contentDisposition optional,
                    ContentEncoding contentEncoding optional,
                    ContentLanguage contentLanguage optional,
                    ContentLength contentLength optional,
                    // optional in responses and all requests except ACK where mandatory
                    ContentType contentType optional,
                    CSeq cSeq optional,
                    // optional only in Invalid test cases mandatory otherwise
                    Date date optional,
                    ErrorInfo errorInfo optional,
                    // only in responses
                    Event event optional,
                    // 3265/7.2
                    Expires expires optional,
                    FeatureCaps featureCaps optional,  // 6809
                    From fromField,
                    Geolocation geolocation optional,
                    // 6442
                    GeolocationRouting geolocationRouting optional,
                    // 6442
                    HistoryInfo historyInfo optional,
                    // 4244
                    InfoPackage infoPackage optional,
                    // 6086
                    InReplyTo inReplyTo optional,
                    // only in requests
                    MaxForwards maxForwards optional,
                    // mandatory in requests not required in responses!
                    MimeVersion mimeVersion optional,
                    MinExpires minExpires optional,
                    // only in responses
                    MinSE minSE optional,
                    // 4028
                    Organization organization optional,
                    PAccessNetworkInfo pAccessNetworkInfo optional,
                    // 3455
                    PAssertedID pAssertedID optional,
                    // 3325
                    PAssertedService pAssertedService optional,
                    PAssociatedURI pAssociatedURI optional,
                    // 3455
                    Path path optional,
                    // 3327
                    PCalledPartyID pCalledPartyID optional,
                    // 3455
                    PChargingFunctionAddresses pChargingFunctionAddresses optional,
                    // 3455
                    PChargingVector pChargingVector optional,
                    // 3455
                    PEarlyMedia pEarlyMedia optional,
                    // 5009
                    PMediaAuthorization pMediaAuthorization optional,
                    // 3313
                    PPreferredID pPreferredID optional,
                    // 3325
                    PPreferredService pPreferredService optional,
                    // draft-drage-sipping-service-identification-01 (July 2007)
                    Priority priority optional,
                    // only in requests
                    Privacy privacy optional,
                    // 3323
                    ProxyAuthenticate proxyAuthenticate optional,
                    // only in responses
                    ProxyAuthorization proxyAuthorization optional,
                    // only in requests
                    ProxyRequire proxyRequire optional,
                    // only in requests
                    PVisitedNetworkID pVisitedNetworkID optional,
                    // 3455
                    RAck rAck optional,
                    // 3262/7.1
                    RSeq rSeq optional,
                    // 3262/7.1
                    Reason reason optional,
                    // 3326
                    RecordRoute recordRoute optional,
                    RecvInfo recvInfo optional,
                    // 6086
                    RequestDisposition requestDisposition optional,
                    // 3841
                    ReferredBy referredBy optional,
                    // 3892 - REFER method
                    ReferTo referTo optional,
                    // 3515 - REFER method
                    ReferSub referSub optional,
                    // 4488 - REFER method
                    Replaces replaces optional,
                    // 3891
                    ReplyTo replyTo optional,
                    // optional in responses and INVITE requests
                    Require require optional,
                    RetryAfter retryAfter optional,
                    // only in responses
                    Route route optional,
                    // only in requests
                    SecurityClient securityClient optional,
                    // 3329
                    SecurityServer securityServer optional,
                    // 3329
                    SecurityVerify securityVerify optional,
                    // 3329
                    Server server optional,
                    // only in responses
                    ServiceRoute serviceRoute optional,
                    // 3608
                    SessionExpires sessionExpires optional,
                    // 4028
                    SessionId sessionId optional,
                    SIP_ETag sipETag optional,
                    SIP_If_Match sipIfMatch optional,
                    Subject subject optional,
                    // only in requests
                    SubscriptionState subscriptionState optional,
                    // 3265/7.2
                    Supported supported optional,
                    Timestamp timestamp_ optional,
                    To toField,
                    Unsupported unsupported optional,
                    // only in responses
                    UserToUser userToUser optional,
                    UserAgent userAgent optional,
                    Via via,
                    Warning warning optional,
                    WwwAuthenticate wwwAuthenticate optional,
                    ResourcePriority resourcePriority optional,
                    // RFC4412
                    AnswerMode answerMode optional,
                    // RFC5373
                    PrivAnswerMode privAnswerMode optional,
                    // RFC5373
                    TargetDialog targetDialog optional,
                    // RFC4538
                    PAnswerState pAnswerState optional,
                    // RFC4964
                    // only in responses
                    UndefinedHeader_List undefinedHeader_List optional
                }


            } // end group MessageHeaderTypes

            group StartLineTypes {
                // Request-Line [7.1 ]
                type record RequestLine {
                    Method method,
                    SipUrl requestUri,
                    charstring sipVersion
                }

                // Status-Line [7.2 ]
                type record StatusLine {
                    charstring sipVersion,
                    integer statusCode,
                    charstring reasonPhrase
                }


            } // end group StartLineTypes


            group otherTypes {

                type record SipUserProfile {
                    /**
                     * @desc integer for the userprofile identifier
                     */
                    integer id,
                    /**
                     * @desc integer for Port number to exchange SIP messages
                     */
                    integer currPort,
                    /**
                     * @desc charstring for IP address to exchange SIP messages
                     */
                    charstring currIpaddr,
                    /**
                     * @desc integer for Port number to exchange SIP messages
                     */
                    integer contactPort,
                    /**
                     * @desc charstring for IP address to exchange SIP messages
                     */
                    charstring contactIpaddr,
                    /**
                     * @desc charstring for IP address used by the TS to exchange media streams
                     */
                    charstring bearerIpaddr,
                    /**
                     * @desc charstring for identity of the tester local domain
                     */
                    charstring homeDomain,
                    /**
                     * @desc charstring for identity of the tester local user
                     */
                    charstring publUsername,
                    /**
                     * @desc charstring for RFC 2617 3.2.1 qop options: Quoted string of one or more tokens indicating the "quality of protection" values supported by the server. The value "auth" indicates authentication; the value "auth-int" indicates authentication with integrity protection.
                     */
                    charstring qop,
                    /**
                     * @desc charstring for RFC 2617 3.2.2 username for authentication The name of user in the specified realm
                     */
                    charstring privUsername,
                    /**
                     * @desc charstring for RFC 2617 3.2.2.2 passwd: A known shared secret, the password of user of the specified username
                     */
                    charstring passwd,
                    /**
                     * @desc charstring for registrar domain for authentication and request line
                     */
                    charstring registrarDomain
                }



            } // end group otherTypes


        } // end group Subtypes



        group MSGtypes {

            group RequestTypes {
                // [7.1 ]
                /**
                 * @desc generic type of a SIP request message
                 * @member statusLine contains a method name, a Request-URI, and the protocol version
                 * @member msgHeader include all possible header fields that are allowed to be present according to RFCs and other standards
                 * @member messageBody depends on the request method, includes e.g. SDP message.
                 * @member payload contains the whole message as it has been received in its text format
                 */
                type record Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                // Note: the introduction of the following specific types is to enable better means for logging
                // on the other side the generic type is useful for functions dealing with multiple SIP message types
                type record REGISTER_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                type record INVITE_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                type record OPTIONS_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                type record BYE_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                type record CANCEL_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                type record ACK_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                // [3262/7.1 ]
                type record PRACK_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                // [3265/7.1 ]
                type record NOTIFY_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                // [3265/7.1 ]
                type record SUBSCRIBE_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                // [3903/11.1 ]
                type record PUBLISH_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                // [3311/7 ]
                type record UPDATE_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                type record REFER_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                type record MESSAGE_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                type record INFO_Request {
                    RequestLine requestLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

                type union RequestUnion {
                    REGISTER_Request Register,
                    INVITE_Request Invite,
                    OPTIONS_Request Options,
                    BYE_Request Bye,
                    CANCEL_Request Cancel,
                    ACK_Request Ack,
                    PRACK_Request Prack,
                    NOTIFY_Request Notify,
                    SUBSCRIBE_Request Subscribe,
                    PUBLISH_Request Publish,
                    UPDATE_Request Update,
                    REFER_Request Refer,
                    MESSAGE_Request Message,
                    INFO_Request Info// [2976 ]
                }

            } // end group RequestTypes

            group ResponseTypes {
                // [7.2 ]
                /**
                 * @desc generic type of a SIP response message
                 * @member statusLine consists of the protocol version followed by a numeric Status-Code and its associated textual phrase
                 * @member msgHeader include all possible header fields that are allowed to be present according to RFCs and other standards
                 * @member messageBody depends on the response method, includes e.g. SDP message.
                 * @member payload contains the whole message as it has been received in its text format
                 */
                type record Response {
                    StatusLine statusLine,
                    MessageHeader msgHeader,
                    MessageBody messageBody optional,
                    Payload payload optional
                }

            } // end group ResponseTypes

            // This MSG type is defined for sending synctactic variations, ans syntactically
            // erroneous messages, and receving messages failed parsing.
            group SyntacticTypes {
                type charstring Raw;

            } // end group SyntacticTypes


        // This type is defined for particular SIP message body types like SDP
        } // end group MSGTypes

    } // end group Types
}
with {
    encode "SIPCodec"; variant "";