a requested format of ALAW (issue #6421, different patch)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9260
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
static struct ast_channel *zt_request(const char *type, int format, void *data, int *cause)
{
- int oldformat;
int groupmatch = 0;
int channelmatch = -1;
int roundrobin = 0;
lock = &iflock;
start = iflist;
end = ifend;
- /* We do signed linear */
- oldformat = format;
- format &= (AST_FORMAT_SLINEAR | AST_FORMAT_ULAW);
- if (!format) {
- ast_log(LOG_NOTICE, "Asked to get a channel of unsupported format '%d'\n", oldformat);
- return NULL;
- }
if (data) {
dest = ast_strdupa((char *)data);
} else {