08.01.2013 Views

Dialogic IP Media Library API Programming Guide and Library ...

Dialogic IP Media Library API Programming Guide and Library ...

Dialogic IP Media Library API Programming Guide and Library ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using the AMR-NB Audio Coder<br />

8.3 Sample Scenarios<br />

The following sections show sample scenarios for using AMR-NB <strong>and</strong> for setting CMR <strong>and</strong> FT<br />

values:<br />

Sample Scenario: Transmit at Bit Rate Requested by Remote Side<br />

Sample Scenario: Transmit at Bit Rate Less Than Preferred Value<br />

Note: Using the AMR-NB resource in connection with one or more <strong>Dialogic</strong> products does not grant the<br />

right to practice the AMR-NB st<strong>and</strong>ard. To seek a license patent agreement to practice the st<strong>and</strong>ard,<br />

contact the VoiceAge Corporation at www.voiceage.com/licensing/php.<br />

8.3.1 Sample Scenario: Transmit at Bit Rate Requested by<br />

Remote Side<br />

In this example, the host application wants to transmit at the bit rate requested by the incoming<br />

CMR value. The following diagram depicts this use case, where the local side is the host<br />

application. FT refers to Frame Type <strong>and</strong> CMR refers to Codec Mode Request.<br />

Local Side Remote Side<br />

FT=4 (7.4 kbit/s), CMR=5 (7.95 kbit/s)<br />

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

FT=6 (10.2 kbt/s), CMR=5 (7.95 kbit/s)<br />

Note: While the diagram above implies an immediate reaction to a CMR from the other side, in reality,<br />

the other side’s response to a CMR may take a few packets.<br />

The sequence of activities is as follows:<br />

1. The application on the local side:<br />

a. Sets its preferred bit rate via the remote audio coder settings, in this case 7.4 kbit/s.<br />

b. Sets its CMR value via the local audio coder settings, in this case 7.95 kbit/s.<br />

c. Sets the RTP payload format to b<strong>and</strong>width efficient <strong>and</strong> its CMR rule to “CMR Tracking”<br />

via the coder options settings.<br />

d. Starts RTP streaming using ipm_Start<strong>Media</strong>( ).<br />

2. The <strong>IP</strong>M device on the local side transmits at the preferred bit rate, in this case 7.4 kbit/s.<br />

3. The <strong>IP</strong>M device on the local side receives its first packet from the remote side with a CMR<br />

value which is higher than its preferred bit rate. In this case the CMR value of 10.2 kbit/s is<br />

higher than the preferred bit rate of 7.4 kbit/s.<br />

42 <strong>Dialogic</strong> ® <strong>IP</strong> <strong>Media</strong> <strong>Library</strong> <strong>API</strong> <strong>Programming</strong> <strong>Guide</strong> <strong>and</strong> <strong>Library</strong> Reference<br />

<strong>Dialogic</strong> Corporation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!