diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-02-09 02:21:57 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-02-09 02:21:57 +0000 |
commit | 7529e12ab461b5b91d09128ef0c7bc790db00335 (patch) | |
tree | 0b6123ebba5e82053039c40608b5721eb401e828 | |
parent | e13567b0c92bb29879cd02318b80385b713cf66d (diff) |
remove unnecessary format check in zt_request so that we will actually accept
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
-rw-r--r-- | channels/chan_zap.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 7514f2b9f..1eca4706e 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -7587,7 +7587,6 @@ static int pri_find_empty_chan(struct zt_pri *pri, int backwards) 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; @@ -7616,13 +7615,6 @@ static struct ast_channel *zt_request(const char *type, int format, void *data, 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 { |