PREV TOC HOME INDEX NEXT


4.4.5. Specifying Nonstandard Data Information When Using H.323

The following parameter set ID and parameter IDs can be used when setting up the GC_PARM_BLK pointed by the infoparmblkp function parameter:

See Section 6.14, IPSET_NONSTANDARDDATA Parameter Set for more information. The following code example shown how to set nonstandard data elements:

IP_H221NONSTANDARD appH221NonStd;
appH221NonStd.country_code = 181;
appH221NonStd.extension = 31;
appH221NonStd.manufacturer_code = 11;
char* pData = "Data String";
char* pOid = "1 22 333 4444";
choiceOfNSData = 1;/* App decides which type of object identifier to use */

/* setting NS Data */
gc_util_insert_parm_ref(&pParmBlock,
                        IPSET_NONSTANDARDDATA,
                        IPPARM_NONSTANDARDDATA_DATA,
                        (unsingned char)(strlen(pData)+1),
                        pData);
    
    if (choiceOfNSData) /* App decides the CHOICE of 
                           OBJECTIDENTIFIER. It cannot set 
                           both objid & H221 */
    {
        gc_util_insert_parm_ref(&pParmBlock,
                                IPSET_NONSTANDARDDATA,
                                IPPARM_H221NONSTANDARD,
                                (unsingned char)sizeof(IP_H221NONSTANDARD),
                                &appH221NonStd);
    }
    else
    {
        gc_util_insert_parm_ref(&pParmBlock,
                                IPSET_NONSTANDARDDATA,
                                IPPARM_NONSTANDARDDATA_OBJID,
                                (unsingned char)(strlen(pOid)+1),
                                pOid);
    } 

PREV TOC HOME INDEX NEXT

Click here to contact Telecom Support Resources

Copyright 2003, Intel Corporation
All rights reserved
This page generated February, 2003