Dialogic 05-2548-006 manual Local Side Remote Side

Page 36

Local Side

Remote Side

FT=4 (7.4 kbit/s), CMR=5 (7.95 kbits/s)

FT=5 (7.95 kbit/s), CMR=6 (10.2 kbit/s)

FT=4 (7.4 kbit/s), CMR=5 (7.95 kbits/s)

FT=5 (7.95 kbit/s), CMR=3 (6.7 kbit/s)

FT=3 (6.7kbit/s), CMR=5 (7.95 kbit/s)

Note: While the diagram above implies an immediate reaction to a CMR from the other side, in reality, the other side’s response to a CMR may take a few packets.

The sequence of activities is as follows:

1.The host is transmitting at the preferred bit rate set by the host application via the remote audio coder settings, in this case 7.4 kbit/s.

2.The host sets its initial CMR value to 7.95 kbit/s via the local audio coder setting.

3.The host sets its RTP payload to efficient bandwidth and CMR limit mode.

4.The host receives it first packet from the remote side with the CMR value higher than the preferred rate.

5.The host leaves the transmitted bit rate at the preferred value.

6.The host receives a packet from the remote side with a CMR value less than the preferred rate.

7.The host changes the transmitted bit rate to match the received CMR value.

The following code demonstrates the configuration required to handle this scenario.

...

/* Setup IP address here */

// Local Audio Coder

ipmMediaInfo.MediaData[unCount].eMediaType = MEDIATYPE_AUDIO_LOCAL_CODER_INFO; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eCoderType = CODER_TYPE_AMRNB_7_95k; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eFrameSize = CODER_FRAMESIZE_20; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.unFramesPerPkt = 1; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eVadEnable = CODER_VAD_ENABLE 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;

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

Image 36
Contents Release Update Dialogic Multimedia Software for AdvancedTCA ReleaseDialogic Corporation How to Use This Publication PurposeIntended Audience Related Information See the following for additional informationDocument Rev 06 published January 23 Document Rev 05 published June 22Document Rev 04 published June 8 Document Rev 03 published May 1 Document Rev 02 published March 30Document Rev 01 published January Initial version of documentRelease Developments Summary of Features Updates to IpmaudiocoderinfoUpdates to Ipmaudiocoderoptionsinfo 2Release.Issues2 Issues Sorted by Type, Dialogic Multimedia Platform CLIAs the clock source instead of a previously recovered Dlservices cli start MsmlIpml PARMCHRFC2833EVTRXPLTCLI, 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 Library Reference Dialogic Conferencing CNF API Programming GuideDialogic Device Management API Library Reference Dialogic Fax Software ReferenceDialogic Global Call IP Technology Guide Dialogic IP Media Library API Library ReferenceUpdates to the ipmSetParm and ipmGetParm functions ParmchlatencyalgaudioParmchlatencyframeinitaudio ParmchlatencyframemaxaudioUpdate to , Events Codertypeamrnbnone CodertypeevrcPage IpmGetCapabilities „ Description„ Cautions „ Example Ipmaudiocoderoptionsinfo „ Example Using AMR Coders for Narrow Band Audio Description Dialogic IP Media Library API Programming GuideDialogic IP Media Library API Support Supported RTP Payload FormatLocal Side Remote Side ExampleIpmaudiocoderoptionsinfoversion Local Side Remote Side Using Enhanced Variable Rate Codecs Coderoptamrcmrlimit CoderoptamrefficientResource Reservation of Audio Coders Outbound CallInbound Call Implicit Release by a Subsequent Successful Reserve CallHandling a Resource Reservation Failure Application issues call to release resource RESOURCEIPMG726 Dialogic Multimedia API Library Reference Dialogic Multimedia API Programming GuideDialogic Standard Runtime Library API Library Reference Dialogic Standard Runtime Library API Programming GuideDialogic Voice API Library Reference Dialogic Voice API Programming Guide