diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-15 21:29:32 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-15 21:29:32 +0000 |
commit | 794443f1fbb79c6d1e2e93c29d728ae22e806963 (patch) | |
tree | d23b0061349d58efcf24f7fef6370b54a3ce0a49 /channels | |
parent | 962df782f27894f7c28b1cff079a65fd969f9ec4 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@143140 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_iax2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 5d83f6280..0d972bd25 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 |