[asterisk-commits] file: branch group/media_formats r411020 - /team/group/media_formats/channels/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 24 11:24:12 CDT 2014
Author: file
Date: Mon Mar 24 11:24:06 2014
New Revision: 411020
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=411020
Log:
Bit more!
Modified:
team/group/media_formats/channels/chan_misdn.c
Modified: team/group/media_formats/channels/chan_misdn.c
URL: http://svnview.digium.com/svn/asterisk/team/group/media_formats/channels/chan_misdn.c?view=diff&rev=411020&r1=411019&r2=411020
==============================================================================
--- team/group/media_formats/channels/chan_misdn.c (original)
+++ team/group/media_formats/channels/chan_misdn.c Mon Mar 24 11:24:06 2014
@@ -7504,7 +7504,7 @@
return 0;
}
- if (ast_format_cmp(frame->subclass.format, prefformat) == AST_FORMAT_CMP_NOT_EQUAL) {
+ if (ast_format_cmp(frame->subclass.format, ast_format_alaw) == AST_FORMAT_CMP_NOT_EQUAL) {
chan_misdn_log(-1, ch->bc->port, "Got Unsupported Frame with Format:%s\n", frame->subclass.format->codec->name);
return 0;
}
@@ -10857,7 +10857,7 @@
/* In Data Modes we queue frames */
memset(&frame, 0, sizeof(frame));
frame.frametype = AST_FRAME_VOICE; /* we have no data frames yet */
- ast_format_set(&frame.subclass.format, AST_FORMAT_ALAW, 0);
+ frame.subclass.format = ast_format_alaw;
frame.datalen = bc->bframe_len;
frame.samples = bc->bframe_len;
frame.mallocd = 0;
More information about the asterisk-commits
mailing list