FS-7301 #comment set the tx-reinvite-packet-count to 400, seems we are too fast for the remote in this case which is causing your failure #resolve

This commit is contained in:
Brian West 2015-02-19 14:43:58 -06:00
parent 5173675d9f
commit 9fe512805b
4 changed files with 25 additions and 2 deletions

View File

@ -34,6 +34,9 @@
<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>

View File

@ -519,6 +519,8 @@ switch_status_t load_configuration(switch_bool_t reload)
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;
@ -627,6 +629,22 @@ switch_status_t load_configuration(switch_bool_t reload)
} 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 = "";

View File

@ -82,6 +82,8 @@ struct spandsp_globals {
char *modem_directory;
switch_hash_t *tones;
int tonedebug;
int t38_tx_reinvite_packet_count;
int t38_rx_reinvite_packet_count;
};
extern struct spandsp_globals spandsp_globals;

View File

@ -1483,9 +1483,9 @@ 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 = 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)) {