www.pudn.com > VOIP(H323).rar
To Read all the content
[file head]:
/**
* This file was generated by the Objective Systems ASN1C Compiler
* (http://www.obj-sys.com). Version: 5.70, Date: 07-Oct-2004.
*/
#include "ooasn1.h"
#include "MULTIMEDIA-SYSTEM-CONTROL.h"
/**************************************************************/
/* */
/* NonStandardIdentifier_h221NonStandard */
/* */
/**************************************************************/
EXTERN int asn1PE_H245NonStandardIdentifier_h221NonStandard (OOCTXT* pctxt, H245NonStandardIdentifier_h221NonStandard* pvalue)
{
int stat = ASN_OK;
/* encode t35CountryCode */
stat = encodeConsUnsigned (pctxt, pvalue->t35CountryCode, 0U, 255U);
if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
/* encode t35Extension */
stat = encodeConsUnsigned (pctxt, pvalue->t35Extension, 0U, 255U);
if (stat != ASN_OK) return LOG_AS
... ...
[file tail]:
... ...
/* response */
case 2:
stat = asn1PE_H245ResponseMessage (pctxt, pvalue->u.response,context);
if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
break;
/* command */
case 3:
stat = asn1PE_H245CommandMessage (pctxt, pvalue->u.command);
if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
break;
/* indication */
case 4:
stat = asn1PE_H245IndicationMessage (pctxt, pvalue->u.indication);
if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
break;
default:
return LOG_ASN1ERR (pctxt, ASN_E_INVOPT);
}
}
else {
/* Encode extension choice index value */
stat = encodeSmallNonNegWholeNumber (pctxt, pvalue->t - 5);
if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
/* Encode extension element data value */
}
return (stat);
}