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

Page 31

unParm1

set to a value from the eIPM_CODER_OPTION_PARMS enumeration

For AMR, set to 0.

For EVRC, where the media type is

MEDIATYPE_AUDIO_REMOTE_CODER_OPTIONS_INFO, valid value is:

CODER_OPT_INTERLEAVE_LENGTH - Reduce the listener’s perception of data loss by spreading such a loss over non-consecutive vocoder frames.

CODER_OPT_CDMA_RATE_REDUC - Rate reduction. Bit rate is varied to achieve a variety of average bit rates for more flexibility in bandwidth usage.

nValue1

The value set here is for the parameter specified in unParm1.

For AMR, set to 0.

For EVRC, where unParm1=CODER_OPT_INTERLEAVE_LENGTH, possible values are in the range 0 to 7. The default value is 0.

For EVRC, where unParm1=CODER_OPT_CDMA_RATE_REDUC, possible values are 0 and 4. Default value is 0.

unParm2

For AMR, set to 0.

For EVRC, set to 0.

nValue2

For AMR, set to 0.

For EVRC, set to 0.

„Example

The following code example shows how to set options when using an EVRC coder type:

... /* Setup IP address here */

// Local Audio Coder

ipmMediaInfo.MediaData[unCount].eMediaType = MEDIATYPE_AUDIO_LOCAL_CODER_INFO; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eCoderType = CODER_TYPE_EVRC; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eFrameSize = CODER_FRAMESIZE_20; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.unFramesPerPkt = 2; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eVadEnable = CODER_VAD_DISABLE; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.unCoderPayloadType = 96; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.unRedPayloadType = 0;

unCount++;

// Remote Audio Coder

ipmMediaInfo.MediaData[unCount].eMediaType = MEDIATYPE_AUDIO_REMOTE_CODER_INFO; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eCoderType = CODER_TYPE_EVRC; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eFrameSize = CODER_FRAMESIZE_20; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.unFramesPerPkt = 2; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eVadEnable = CODER_VAD_DISABLE; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.unCoderPayloadType = 96; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.unRedPayloadType = 0 ;

unCount++;

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

31

Dialogic Corporation

 

Image 31
Contents Dialogic Multimedia Software for AdvancedTCA Release Release UpdateDialogic Corporation Purpose How to Use This PublicationIntended Audience See the following for additional information Related InformationDocument Rev 05 published June 22 Document Rev 06 published January 23Document Rev 04 published June 8 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 startEvrc IpmlPARMCHRFC2833EVTRXPLT CLI, SnmpRtfConfigLinux.xml for mediasvr Existent list when the cable is unplugged from a Pstn Issue Type Defect No Product or Description 3Documentation.Updates3 Dialogic Fax Software Reference Dialogic Conferencing CNF API Library ReferenceDialogic Conferencing CNF API Programming Guide Dialogic Device Management API Library 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 Voice API Programming Guide Dialogic Standard Runtime Library API Library ReferenceDialogic Standard Runtime Library API Programming Guide Dialogic Voice API Library Reference