-- P1
.py
- MHS P1 definitions
-- $Header
: /f
/osi
/pepy
/RCS
/P1
.py
,v
7.1 91/02/22 09:34:43 mrose Interim $
-- Revision
7.1 91/02/22 09:34:43 mrose
-- Revision
7.0 89/11/23 22:11:31 mrose
-- Acquisition
, use
, and distribution of this module
and related
-- materials are subject to the restrictions of a license agreement
.
-- Consult the Preface
in the User
's Manual for the full terms of
static char *rcsid = "$Header: /f/osi/pepy/RCS/P1.py,v 7.1 91/02/22 09:34:43 mrose Interim $";
-- P1 makes use of types defined in the following module:
-- Sa: Recommendation S.a[14]
IMPLICIT DeliveryReportMPDU,
PerMessageFlag DEFAULT {},
IMPLICIT SEQUENCE OF PerDomainBilateralInfo
IMPLICIT SEQUENCE OF RecipientInfo,
-- this one's
for EAN
--,
%{ parse_p2 ($$
, $$_len
); %}
-- various envelope information
[APPLICATION
4] IMPLICIT SEQUENCE
{
alternateRecipientAllowed(2),
-- per
-domain bilateral information
PerDomainBilateralInfo
::=
AdministrationDomainName
,
IMPLICIT ExtensionIdentifier
,
IMPLICIT PerRecipientFlag
,
IMPLICIT ExplicitConversion DEFAULT
{}
-- this one
's for EAN --,
BITSTRING -- See Figure 23/X.411
IMPLICIT SEQUENCE OF SEQUENCE {
GlobalDomainIdentifier OPTIONAL
-- global domain identifier
GlobalDomainIdentifier ::=
AdministrationDomainName,
PrivateDomainIdentifier OPTIONAL
AdministrationDomainName ::=
PrivateDomainIdentifier ::=
DomainDefinedAttributeList
StandardAttributeList ::=
AdministrationDomainName OPTIONAL,
IMPLICIT X121Address OPTIONAL,
IMPLICIT TerminalID OPTIONAL,
PrivateDomainName OPTIONAL,
IMPLICIT OrganizationName OPTIONAL,
IMPLICIT UniqueUAIdentifier OPTIONAL,
IMPLICIT SEQUENCE OF OrganizationalUnit OPTIONAL
DomainDefinedAttributeList ::=
SEQUENCE OF DomainDefinedAttribute
DomainDefinedAttribute ::=
IMPLICIT PrintableString,
-- encoded information types
EncodedInformationTypes ::=
[APPLICATION 5] IMPLICIT SET {
-- this OPTIONAL is for EAN -- OPTIONAL,
IMPLICIT G3NonBasicParams
IMPLICIT TeletexNonBasicParams
IMPLICIT PresentationCapabilities
-- other non-basic parameters are for further study
-- but this one's
for EAN
--,
TeletexNonBasicParams
::=
IMPLICIT T61String OPTIONAL
,
IMPLICIT T61String OPTIONAL
,
IMPLICIT OCTETSTRING OPTIONAL
,
miscTerminalCapabilities
[3]
IMPLICIT T61String OPTIONAL
,
IMPLICIT OCTETSTRING OPTIONAL
PresentationCapabilities
::=
T73
.PresentationCapabilities
DeliveryReportEnvelope
::=
DeliveryReportContent
::=
TraceInformation OPTIONAL
,
IMPLICIT SEQUENCE OF ReportedRecipientInfo
,
IMPLICIT UMPDUContent OPTIONAL
,
ReportedRecipientInfo
::=
IMPLICIT ExtensionIdentifier
,
IMPLICIT PerRecipientFlag
,
IMPLICIT LastTraceInformation
,
IMPLICIT SupplementaryInformation OPTIONAL
-- last trace information
IMPLICIT NonDeliveredInfo
IMPLICIT DiagnosticCode OPTIONAL
conversionNotPerformed(2)
encodedInformationTypesUnsupported(6),
conversionImpractical(8),
implicitConversionNotResgistered(10),
-- supplementary information
SupplementaryInformation
::=
PrintableString
-- length limited
and for further study
PerMessageFlag DEFAULT
{},
IMPLICIT SEQUENCE OF PerDomainBilateralInfo
IMPLICIT SEQUENCE OF RecipientInfo
void
parse_p2 (octstr
, len)
if ((ps
= ps_alloc (str_open
)) == NULLPS
)
adios (NULLCP
, "ps_alloc");
if (str_setup (ps
, octstr
, len, 0) == NOTOK
)
adios (NULLCP
, "str_setup (%s)", ps_error (ps
-> ps_errno
));
if ((pe
= ps2pe (ps
)) == NULLPE
)
adios (NULLCP
, "ps2pe (%s)", ps_error (ps
-> ps_errno
));
(void
) print_P2_UAPDU (pe
, 1, NULLIP
, NULLVP
, NullParm
);