提交 10885336 authored 作者: Arnaldo Pereira's avatar Arnaldo Pereira

freetdm: removed dump_mf() debug call from ftmod_r2 and added a comment to ftdm_io

上级 179fa43c
...@@ -163,6 +163,8 @@ static ftdm_status_t start_chan_io_dump(ftdm_channel_t *chan, ftdm_io_dump_t *du ...@@ -163,6 +163,8 @@ static ftdm_status_t start_chan_io_dump(ftdm_channel_t *chan, ftdm_io_dump_t *du
return FTDM_FAIL; return FTDM_FAIL;
} }
memset(dump, 0, sizeof(*dump)); memset(dump, 0, sizeof(*dump));
/* on 64bits, we get a weird number if we don't cast to uint here
* which is what size_t will be anyway */
dump->buffer = ftdm_malloc((uint32_t)size); dump->buffer = ftdm_malloc((uint32_t)size);
if (!dump->buffer) { if (!dump->buffer) {
return FTDM_FAIL; return FTDM_FAIL;
......
...@@ -489,8 +489,6 @@ static void ftdm_r2_on_call_offered(openr2_chan_t *r2chan, const char *ani, cons ...@@ -489,8 +489,6 @@ static void ftdm_r2_on_call_offered(openr2_chan_t *r2chan, const char *ani, cons
ftdm_log_chan(ftdmchan, FTDM_LOG_NOTICE, "Call offered with ANI = %s, DNIS = %s, Category = (%d)\n", ani, dnis, category); ftdm_log_chan(ftdmchan, FTDM_LOG_NOTICE, "Call offered with ANI = %s, DNIS = %s, Category = (%d)\n", ani, dnis, category);
ftdm_set_state(ftdmchan, FTDM_CHANNEL_STATE_RING); ftdm_set_state(ftdmchan, FTDM_CHANNEL_STATE_RING);
dump_mf(r2chan);
/* nothing went wrong during call setup, MF has ended, we can and must disable the MF dump */ /* nothing went wrong during call setup, MF has ended, we can and must disable the MF dump */
if (r2data->mf_dump_size) { if (r2data->mf_dump_size) {
ftdm_channel_command(ftdmchan, FTDM_COMMAND_DISABLE_INPUT_DUMP, NULL); ftdm_channel_command(ftdmchan, FTDM_COMMAND_DISABLE_INPUT_DUMP, NULL);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论