summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_pjsip.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index 207a7d90b..c111cf1d3 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -629,22 +629,6 @@ static struct ast_frame *chan_pjsip_read(struct ast_channel *ast)
return f;
}
- if (ast_format_cap_iscompatible_format(ast_channel_nativeformats(ast), f->subclass.format) == AST_FORMAT_CMP_NOT_EQUAL) {
- struct ast_format_cap *caps;
-
- ast_debug(1, "Oooh, format changed to %s\n", ast_format_get_name(f->subclass.format));
-
- caps = ast_format_cap_alloc(AST_FORMAT_CAP_FLAG_DEFAULT);
- if (caps) {
- ast_format_cap_append(caps, f->subclass.format, 0);
- ast_channel_nativeformats_set(ast, caps);
- ao2_ref(caps, -1);
- }
-
- ast_set_read_format(ast, ast_channel_readformat(ast));
- ast_set_write_format(ast, ast_channel_writeformat(ast));
- }
-
if (channel->session->dsp) {
f = ast_dsp_process(ast, channel->session->dsp, f);