[asterisk-commits] russell: branch group/vldtmf r40497 -
/team/group/vldtmf/channel.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Aug 18 21:00:54 MST 2006
Author: russell
Date: Fri Aug 18 23:00:54 2006
New Revision: 40497
URL: http://svn.digium.com/view/asterisk?rev=40497&view=rev
Log:
add the first bug has been fixed due to converting the frame types to an enum!
AST_FRAME_CNG or AST_FRAME_IMAGE would be ignored in ast_write
Modified:
team/group/vldtmf/channel.c
Modified: team/group/vldtmf/channel.c
URL: http://svn.digium.com/view/asterisk/team/group/vldtmf/channel.c?rev=40497&r1=40496&r2=40497&view=diff
==============================================================================
--- team/group/vldtmf/channel.c (original)
+++ team/group/vldtmf/channel.c Fri Aug 18 23:00:54 2006
@@ -1880,8 +1880,10 @@
/* Write audio if appropriate */
if (audiofd > -1)
write(audiofd, f->data, f->datalen);
+ default:
+ /* Ignore */
+ break;
}
- /* Ignore */
ast_frfree(f);
}
}
@@ -2153,6 +2155,9 @@
}
}
}
+ default:
+ /* Just pass it on! */
+ break;
}
} else {
/* Make sure we always return NULL in the future */
@@ -2532,7 +2537,14 @@
res = chan->tech->write(chan, f);
}
- break;
+ break;
+ case AST_FRAME_NULL:
+ case AST_FRAME_IAX:
+ /* Ignore these */
+ break;
+ default:
+ res = chan->tech->write(chan, f);
+ break;
}
if (f && f != fr)
More information about the asterisk-commits
mailing list