Small tweak for media I/O in proxy mode, don't silence frame just because no codec. Needed for H.323 fax.

This commit is contained in:
Robert Jongbloed 2012-09-18 13:39:13 +10:00
parent babe1cdb89
commit c979f1b8f3
1 changed files with 3 additions and 1 deletions

View File

@ -729,7 +729,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
even_more_done:
if (!*frame || !(*frame)->codec || !(*frame)->codec->implementation || !switch_core_codec_ready((*frame)->codec)) {
if (!*frame ||
(!switch_test_flag(*frame, SFF_PROXY_PACKET) &&
(!(*frame)->codec || !(*frame)->codec->implementation || !switch_core_codec_ready((*frame)->codec)))) {
*frame = &runtime.dummy_cng_frame;
}