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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using the AMR-NB Audio Coder<br />

1.80 kbps (assuming SID frames are continuously transmitted)<br />

Note: The 1.80 kbit/s rate is not actually a voice signal, but the bit rate consumed when<br />

Voice Activation Detection (VAD) is processing a silence.<br />

This feature is only supported when using the Session Initiation Protocol (S<strong>IP</strong>). None of the<br />

available SDP options are currently supported through <strong>Dialogic</strong> ® Global Call software (that is,<br />

direct first-party call control). The options are only available using third-party call control (3PCC),<br />

where the application is responsible for interpreting received SDP text strings <strong>and</strong> for constructing<br />

all outbound SDP text strings.<br />

8.2 <strong>API</strong> <strong>Library</strong> Support<br />

The <strong>Dialogic</strong> ® <strong>IP</strong> <strong>Media</strong> <strong>Library</strong> <strong>API</strong> allows the application to provide a preferred receive bit rate,<br />

a preferred transmit bit rate, <strong>and</strong> a rule to determine how changes in the received Codec Mode<br />

Request (CMR) value control the transmitted bit rate. This <strong>API</strong> library support is described in the<br />

following topics:<br />

CMR Value (Preferred Receive Bit Rate)<br />

Preferred Transmit Bit Rate<br />

CMR Rules<br />

RTP Payload Format<br />

8.2.1 CMR Value (Preferred Receive Bit Rate)<br />

The CMR value indicates a preferred receive bit rate on the local side. The CMR value is a<br />

preference <strong>and</strong> is communicated to the remote side as a request.<br />

To specify the CMR value, set e<strong>Media</strong>Type in the <strong>IP</strong>M_MEDIA structure to<br />

MEDIATYPE_AUDIO_LOCAL_CODER_INFO <strong>and</strong> set eCoderType in the<br />

<strong>IP</strong>M_AUDIO_CODER_INFO structure to a value that corresponds to the preferred receive bit rate<br />

(CMR value). For example, to specify a CMR value of 5 which corresponds to a preferred receive<br />

bit rate of 7.95 kbit/s, set eCoderType to CODER_TYPE_AMRNB_7_95K.<br />

8.2.2 Preferred Transmit Bit Rate<br />

The preferred transmit bit rate indicates the following:<br />

The transmit bit rate to be used when a CMR value from the remote side has not been received<br />

yet<br />

The transmit bit rate to be used when the CMR value received from the remote side is 15 (don't<br />

care)<br />

The maximum transmit bit rate when the CMR rule is “CMR Limit” (see CMR Rules).<br />

To specify the preferred transmit bit rate, set e<strong>Media</strong>Type in the <strong>IP</strong>M_MEDIA structure to<br />

MEDIATYPE_AUDIO_REMOTE_CODER_INFO <strong>and</strong> set eCoderType in the<br />

<strong>IP</strong>M_AUDIO_CODER_INFO structure to the desired transmit bit rate. For example, to specify a<br />

40 <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!