]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] FS-10587 502 response sent on codec mismatch
authorBrian West <brian@freeswitch.org>
Thu, 24 Aug 2017 20:06:04 +0000 (15:06 -0500)
committerBrian West <brian@freeswitch.org>
Thu, 24 Aug 2017 20:06:04 +0000 (15:06 -0500)
src/switch_core_media.c

index d6aba883ea724a67893d5c8d22d190cfc30c88f6..32a16899de258e9a5fb3fe4fbcd11c9b2aa52bd2 100644 (file)
@@ -7558,14 +7558,14 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi
 
                        } else {
                                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "VIDEO RTP REPORTS ERROR: [%s]\n", switch_str_nil(err));
-                               switch_channel_hangup(session->channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
+                               switch_channel_hangup(session->channel, SWITCH_CAUSE_INCOMPATIBLE_DESTINATION);
                                goto end;
                        }
                }
 
        } else {
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "AUDIO RTP REPORTS ERROR: [%s]\n", switch_str_nil(err));
-               switch_channel_hangup(session->channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
+               switch_channel_hangup(session->channel, SWITCH_CAUSE_INCOMPATIBLE_DESTINATION);
                status = SWITCH_STATUS_FALSE;
                goto end;
        }