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 asn1PD_H245NonStandardIdentifier_h221NonStandard (OOCTXT* pctxt, H245NonStandardIdentifier_h221NonStandard* pvalue)
{
int stat = ASN_OK;
/* decode t35CountryCode */
stat = decodeConsUInt8 (pctxt, &amt;pvalue->t35CountryCode, 0U, 255U);
if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
/* decode t35Extension */
stat = decodeConsUInt8 (pctxt, &amt;pvalue->t35Extension, 0U, 255U);
if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
/* d
... ...
[file tail]:
... ...
lue->u.command);
if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
break;
/* indication */
case 3:
pvalue->u.indication = ALLOC_ASN1ELEM (pctxt, H245IndicationMessage);
if (pvalue->u.indication == NULL)
return LOG_ASN1ERR (pctxt, ASN_E_NOMEM);
stat = asn1PD_H245IndicationMessage (pctxt, pvalue->u.indication);
if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
break;
default:
return LOG_ASN1ERR (pctxt, ASN_E_INVOPT);
}
}
else {
stat = decodeSmallNonNegWholeNumber (pctxt, &amt;ui);
if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
else pvalue->t = ui + 5;
stat = decodeByteAlign (pctxt);
if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
stat = decodeOpenType (pctxt, &amt;openType.data, &amt;openType.numocts);
if (stat != ASN_OK) return LOG_ASN1ERR (pctxt, stat);
}
return (stat);
}