mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@69391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2766,6 +2766,11 @@ int ast_channel_make_compatible(struct ast_channel *chan, struct ast_channel *pe
|
|||||||
int src;
|
int src;
|
||||||
int dst;
|
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 */
|
/* Set up translation from the chan to the peer */
|
||||||
src = chan->nativeformats;
|
src = chan->nativeformats;
|
||||||
dst = peer->nativeformats;
|
dst = peer->nativeformats;
|
||||||
|
Reference in New Issue
Block a user