Don't offer AST_FORMAT_SLINEAR on DAHDI/Zaptel channels... while it could provide a slight performance benefit, the translation core in Asterisk has some flaws when a channel driver offers multiple raw formats. this fix is much simpler than fixing the translation core to solve that issue (although that will be done later).
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@186458
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
deflaw = AST_FORMAT_ULAW;
}
tmp->fds[0] = i->subs[index].dfd;
- tmp->nativeformats = AST_FORMAT_SLINEAR | deflaw;
+ tmp->nativeformats = deflaw;
/* Start out assuming ulaw since it's smaller :) */
tmp->rawreadformat = deflaw;
tmp->readformat = deflaw;