From: Tilghman Lesher Date: Mon, 15 Sep 2008 21:29:32 +0000 (+0000) Subject: Set the raw formats at the same time as the other formats. X-Git-Tag: 1.4.23-rc1~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84b197673be76fb54e15afb38d54eeebf89789e7;p=thirdparty%2Fasterisk.git Set the raw formats at the same time as the other formats. (closes issue #13240) Reported by: jvandal Patches: 20080813__bug13240.diff.txt uploaded by Corydon76 (license 14) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@143140 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 5d83f62804..0d972bd25e 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -3801,8 +3801,8 @@ static struct ast_channel *ast_iax2_new(int callno, int state, int capability) tmp->tech = &iax2_tech; /* We can support any format by default, until we get restricted */ tmp->nativeformats = capability; - tmp->readformat = ast_best_codec(capability); - tmp->writeformat = ast_best_codec(capability); + tmp->readformat = tmp->rawreadformat = ast_best_codec(capability); + tmp->writeformat = tmp->rawwriteformat = ast_best_codec(capability); tmp->tech_pvt = CALLNO_TO_PTR(i->callno); /* Don't use ast_set_callerid() here because it will