提交 9c8d9cf1 authored 作者: Chris Rienzo's avatar Chris Rienzo

FS-9959 [mod_spandsp] Add two new channel variables

   fax_t38_tx_reinvite_packet_count - overrides t38-tx-reinvite-packet-count param in spandsp.conf
   fax_t38_rx_reinvite_packet_count - overrides t38-rx-reinvite-packet-count param in spandsp.conf
上级 1918f296
......@@ -1474,9 +1474,19 @@ void mod_spandsp_fax_process_fax(switch_core_session_t *session, const char *dat
switch_ivr_sleep(session, 250, SWITCH_TRUE, NULL);
if (pvt->app_mode == FUNCTION_TX) {
req_counter = spandsp_globals.t38_tx_reinvite_packet_count;
const char *packet_count = switch_channel_get_variable(channel, "fax_t38_tx_reinvite_packet_count");
if (!zstr(packet_count) && switch_is_number(packet_count)) {
req_counter = atoi(packet_count);
} else {
req_counter = spandsp_globals.t38_tx_reinvite_packet_count;
}
} else {
req_counter = spandsp_globals.t38_rx_reinvite_packet_count;
const char *packet_count = switch_channel_get_variable(channel, "fax_t38_rx_reinvite_packet_count");
if (!zstr(packet_count) && switch_is_number(packet_count)) {
req_counter = atoi(packet_count);
} else {
req_counter = spandsp_globals.t38_rx_reinvite_packet_count;
}
}
while (switch_channel_ready(channel)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论