<param name="spool-dir" value="$${temp_dir}"/>
<param name="file-prefix" value="faxrx"/>
+ <!-- How many packets to process before sending the re-invite on tx/rx -->
+ <!-- <param name="t38-rx-reinvite-packet-count" value="50"/> -->
+ <!-- <param name="t38-tx-reinvite-packet-count" value="100"/> -->
</fax-settings>
<descriptors>
spandsp_globals.header = "SpanDSP Fax Header";
spandsp_globals.timezone = "";
spandsp_globals.tonedebug = 0;
+ spandsp_globals.t38_tx_reinvite_packet_count = 100;
+ spandsp_globals.t38_rx_reinvite_packet_count = 50;
if ((xml = switch_xml_open_cfg("spandsp.conf", &cfg, NULL)) || (xml = switch_xml_open_cfg("fax.conf", &cfg, NULL))) {
status = SWITCH_STATUS_SUCCESS;
} else {
spandsp_globals.enable_t38_request = 0;
}
+ } else if (!strcmp(name, "t38-tx-reinvite-packet-count")) {
+ int delay = atoi(value);
+
+ if (delay >= 0 && delay < 1000) {
+ spandsp_globals.t38_tx_reinvite_packet_count = delay;
+ } else {
+ spandsp_globals.t38_tx_reinvite_packet_count = 100;
+ }
+ } else if (!strcmp(name, "t38-rx-reinvite-packet-count")) {
+ int delay = atoi(value);
+
+ if (delay >= 0 && delay < 1000) {
+ spandsp_globals.t38_rx_reinvite_packet_count = delay;
+ } else {
+ spandsp_globals.t38_rx_reinvite_packet_count = 0;
+ }
} else if (!strcmp(name, "ident")) {
if (!strcmp(value, "_undef_")) {
spandsp_globals.ident = "";
switch_ivr_sleep(session, 250, SWITCH_TRUE, NULL);
if (pvt->app_mode == FUNCTION_TX) {
- req_counter = 100;
+ req_counter = spandsp_globals.t38_tx_reinvite_packet_count;
} else {
- req_counter = 50;
+ req_counter = spandsp_globals.t38_rx_reinvite_packet_count;
}
while (switch_channel_ready(channel)) {