Dialogic DIALOGIC MULTIMEDIA SOFTWARE FOR ADVANCEDTCA RELEASE 1.0, 05-2548-006 manual „ Example

Page 29

„Example

In this example, the first ipm_GetCapabilities( ) call retrieves only the number of capabilities available (count). That number is then used to allocate the right amount of memory and retrieve details of all the capabilities.

#include <ipmlib.h>

// Code follows:

unsigned int count; IPM_CODER_INFO *caps int i;

unsigned int count=ipm_GetCapabilties(dev,CAPABILITY_CODERLIST,0,NULL,SYNC); caps=(IPM_CAPABILITIES *malloc(sizeof(IPM_CAPABILITIES)*count);

// check for memory error here

count=ipm_GetCapabilties(dev,CAPABILITY_CODERLIST,count,caps,SYNC);

for (i=0;i<count;i++)

{

printf(“RFC 1890 Coder Type %ui supported\n”,caps[i].Coder.unCoderPayloadType);

}

// Free coder list here free(caps);

„See Also

None.

Dialogic® Multimedia Software for ATCA Release 1.0 Release Update, Rev 06 — January 23, 2008

29

Dialogic Corporation

 

Image 29
Contents Dialogic Multimedia Software for AdvancedTCA Release Release UpdateDialogic Corporation Intended Audience How to Use This PublicationPurpose See the following for additional information Related InformationDocument Rev 04 published June 8 Document Rev 06 published January 23Document Rev 05 published June 22 Document Rev 02 published March 30 Document Rev 03 published May 1Initial version of document Document Rev 01 published JanuaryRelease Developments Updates to Ipmaudiocoderinfo Summary of FeaturesUpdates to Ipmaudiocoderoptionsinfo 2Release.Issues2 CLI Issues Sorted by Type, Dialogic Multimedia PlatformAs the clock source instead of a previously recovered Msml Dlservices cli startPARMCHRFC2833EVTRXPLT IpmlCLI, Snmp EvrcRtfConfigLinux.xml for mediasvr Existent list when the cable is unplugged from a Pstn Issue Type Defect No Product or Description 3Documentation.Updates3 Dialogic Conferencing CNF API Programming Guide Dialogic Conferencing CNF API Library ReferenceDialogic Device Management API Library Reference Dialogic Fax Software ReferenceDialogic IP Media Library API Library Reference Dialogic Global Call IP Technology GuideParmchlatencyalgaudio Updates to the ipmSetParm and ipmGetParm functionsParmchlatencyframemaxaudio ParmchlatencyframeinitaudioUpdate to , Events Codertypeevrc CodertypeamrnbnonePage „ Description IpmGetCapabilities„ Cautions „ Example Ipmaudiocoderoptionsinfo „ Example Dialogic IP Media Library API Programming Guide Using AMR Coders for Narrow Band Audio DescriptionSupported RTP Payload Format Dialogic IP Media Library API SupportExample Local Side Remote SideIpmaudiocoderoptionsinfoversion Local Side Remote Side Coderoptamrcmrlimit Coderoptamrefficient Using Enhanced Variable Rate CodecsOutbound Call Resource Reservation of Audio CodersImplicit Release by a Subsequent Successful Reserve Call Inbound CallHandling a Resource Reservation Failure Application issues call to release resource RESOURCEIPMG726 Dialogic Multimedia API Programming Guide Dialogic Multimedia API Library ReferenceDialogic Standard Runtime Library API Programming Guide Dialogic Standard Runtime Library API Library ReferenceDialogic Voice API Library Reference Dialogic Voice API Programming Guide