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.

Reserving Resources for Audio Coders<br />

Figure 7. Reservation State after a Subsequent Call Fails<br />

Application Device Management Interface <strong>IP</strong>ML Interface<br />

dev_ReserveResourceEx(ipmH,RESOURCE_<strong>IP</strong>M_G726,RESOURCE_<strong>IP</strong>M_G729)<br />

DMEV_RESERVE_RESOURCE<br />

dev_ReserveResourceEx(ipmH,RESOURCE_<strong>IP</strong>M_AMR_NB)<br />

DMEV_RESERVE_RESOURCE_FAIL<br />

ipm_Start<strong>Media</strong>(ipmH,G.726)<br />

<strong>IP</strong>MEV_STARTMEDIA<br />

ipm_Stop()<br />

<strong>IP</strong>MEV_STOP<br />

dev_ReleaseResourceEx(ipmH,RESOURCE_<strong>IP</strong>M_ALL_AUDIO_CODERS)<br />

DMEV_RELEASE_RESOURCE<br />

ipm_Start<strong>Media</strong>(ipmH,G.726)<br />

<strong>IP</strong>MEV_STARTMEDIA<br />

ipm_Stop()<br />

<strong>IP</strong>MEV_STOP<br />

Application gets a re-INVITE from the<br />

remote side requesting a change of coder.<br />

Application issues call to stop the media<br />

operation.<br />

Application issues reserve for AMR-NB;<br />

operation fails for lack of available resources.<br />

G.726 <strong>and</strong> G.729 were previously reserved<br />

successfully <strong>and</strong> remain in effect.<br />

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