[asterisk-commits] rmudgett: branch rmudgett/iax_fracks r419882 - /team/rmudgett/iax_fracks/chan...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 31 20:06:35 CDT 2014
Author: rmudgett
Date: Thu Jul 31 20:06:29 2014
New Revision: 419882
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=419882
Log:
Misc change.
Modified:
team/rmudgett/iax_fracks/channels/chan_iax2.c
Modified: team/rmudgett/iax_fracks/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/iax_fracks/channels/chan_iax2.c?view=diff&rev=419882&r1=419881&r2=419882
==============================================================================
--- team/rmudgett/iax_fracks/channels/chan_iax2.c (original)
+++ team/rmudgett/iax_fracks/channels/chan_iax2.c Thu Jul 31 20:06:29 2014
@@ -4680,7 +4680,7 @@
cai->encmethods = peer->encmethods;
cai->sockfd = peer->sockfd;
cai->adsi = peer->adsi;
- memcpy(&ourprefs, &peer->prefs, sizeof(ourprefs));
+ ourprefs = peer->prefs;
/* Move the calling channel's native codec to the top of the preference list */
if (c) {
int i;
@@ -5851,6 +5851,8 @@
if (!native) {
return NULL;
}
+/* BUGBUG we really should use the cai.prefs on outgoing calls to generate the native codec ordering. */
+/* BUGBUG need to investigate the prefs ordering for incoming calls to generate the native codec ordering. */
if (iax2_format_compatibility_bitfield2cap_best(capability, native)
|| !ast_format_cap_count(native)) {
ast_log(LOG_WARNING, "No requested formats available for call to: IAX2/%s-%d\n",
More information about the asterisk-commits
mailing list