From 75a272a177497f4d679073297e096f056f28107f Mon Sep 17 00:00:00 2001 From: automerge Date: Thu, 14 Jun 2007 21:30:45 +0000 Subject: automerge commit git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@69391 f38db490-d61c-443f-a65b-d21fe96a405b --- channel.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'channel.c') diff --git a/channel.c b/channel.c index c76c9b7e7..628e0614f 100644 --- a/channel.c +++ b/channel.c @@ -2766,6 +2766,11 @@ int ast_channel_make_compatible(struct ast_channel *chan, struct ast_channel *pe int src; int dst; + if (chan->readformat == peer->writeformat && chan->writeformat == peer->readformat) { + /* Already compatible! Moving on ... */ + return 0; + } + /* Set up translation from the chan to the peer */ src = chan->nativeformats; dst = peer->nativeformats; -- cgit v1.2.3