]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-2980
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 14 Jan 2011 00:41:43 +0000 (18:41 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 14 Jan 2011 00:41:43 +0000 (18:41 -0600)
src/mod/endpoints/mod_sofia/sofia_glue.c

index a5298440593d28a877cfde54e38d90183cd175c2..bf7c1aa7a16f8fd843ddfd1233334f996c79af84 100644 (file)
@@ -2695,8 +2695,8 @@ switch_status_t sofia_glue_tech_set_codec(private_object_t *tech_pvt, int force)
                                                           SWITCH_CODEC_FLAG_ENCODE | SWITCH_CODEC_FLAG_DECODE | tech_pvt->profile->codec_flags,
                                                           NULL, switch_core_session_get_pool(tech_pvt->session)) != SWITCH_STATUS_SUCCESS) {
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_ERROR, "Can't load codec?\n");
-               switch_goto_status(SWITCH_STATUS_FALSE, end);
                switch_channel_hangup(tech_pvt->channel, SWITCH_CAUSE_INCOMPATIBLE_DESTINATION);
+               switch_goto_status(SWITCH_STATUS_FALSE, end);
        }
 
        if (switch_core_codec_init_with_bitrate(&tech_pvt->write_codec,