[Freeswitch-svn] [commit] r4065 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
mikej at freeswitch.org
Fri Jan 26 23:45:55 EST 2007
Author: mikej
Date: Fri Jan 26 23:45:54 2007
New Revision: 4065
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
Log:
fail the call when the best match is a codec with no name.
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Fri Jan 26 23:45:54 2007
@@ -1348,6 +1348,12 @@
channel = switch_core_session_get_channel(tech_pvt->session);
assert(channel != NULL);
+ if (!tech_pvt->rm_encoding) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can't load codec with no name?\n");
+ terminate_session(&tech_pvt->session, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER, __LINE__);
+ return SWITCH_STATUS_FALSE;
+ }
+
if (switch_core_codec_init(&tech_pvt->read_codec,
tech_pvt->rm_encoding,
tech_pvt->rm_fmtp,
More information about the Freeswitch-svn
mailing list