(Page 4 of 23 in this chapter) Version
typedef struct
{
DWORD size; /* Size of the structure */
DWORD flags; /* Flags to describe capabilities not used */
DWORD allocated_members; /* Number of members to allocate*/
DWORD user_value; /*Application-provided value*/
} CNF_CONFERENCE_PARMS;
|
Field
|
Description
|
|---|---|
|
flags
|
When set, specifies the capabilities the conference does not plan to use. You can disable capabilities at the resource level (in the cnf.cfg as described in Section 2.5.3) or at the conference level. NaturalConference optimizes the conferencing resource usage according to which capabilities are used, and can possibly allow the use of more members on the resource if enough system resources are freed up.
|
|
allocated_members
|
The number of members NaturalConference reserves for the conference. Whether the allocated members are used (joined) or not, the corresponding space is reserved on the conferencing resource. The allocated space can be modified by calling cnfResizeConference.
|
|
user_value
|
An application-supplied value or pointer that can be retrieved by calling cnfGetConferenceInfo.
|
extern CNFRESOURCEHD cnfresourcehd;
DWORD myCreateConference(unsigned allocated)
{ DWORD confid; DWORD error; CNF_CONFERENCE_PARMS confparms; confparms.size = sizeof(CNF_CONFERENCE_PARMS); confparms.allocatedmembers = allocated; confparms.flags = CNF_NO_ECHO_CANCEL | CNF_NO_TONE_CLAMPING; confparms.user_value = NULL; error = cnfCreateConference (cnfresourcehd, &confparms,
&confid);
if (error != SUCCESS) { printf("Error when creating conference : %d", error); return(error); } return(confid);
}
(Page 4 of 23 in this chapter) Version