[asterisk-commits] trunk r9260 - /trunk/channels/chan_zap.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Feb 8 19:21:59 MST 2006
Author: russell
Date: Wed Feb 8 20:21:57 2006
New Revision: 9260
URL: http://svn.digium.com/view/asterisk?rev=9260&view=rev
Log:
remove unnecessary format check in zt_request so that we will actually accept
a requested format of ALAW (issue #6421, different patch)
Modified:
trunk/channels/chan_zap.c
Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?rev=9260&r1=9259&r2=9260&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Wed Feb 8 20:21:57 2006
@@ -7587,7 +7587,6 @@
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 @@
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 {
More information about the asterisk-commits
mailing list