mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-02 11:19:28 +00:00
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:
parent
5173675d9f
commit
9fe512805b
@ -34,6 +34,9 @@
|
|||||||
|
|
||||||
<param name="spool-dir" value="$${temp_dir}"/>
|
<param name="spool-dir" value="$${temp_dir}"/>
|
||||||
<param name="file-prefix" value="faxrx"/>
|
<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>
|
</fax-settings>
|
||||||
|
|
||||||
<descriptors>
|
<descriptors>
|
||||||
|
@ -519,6 +519,8 @@ switch_status_t load_configuration(switch_bool_t reload)
|
|||||||
spandsp_globals.header = "SpanDSP Fax Header";
|
spandsp_globals.header = "SpanDSP Fax Header";
|
||||||
spandsp_globals.timezone = "";
|
spandsp_globals.timezone = "";
|
||||||
spandsp_globals.tonedebug = 0;
|
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))) {
|
if ((xml = switch_xml_open_cfg("spandsp.conf", &cfg, NULL)) || (xml = switch_xml_open_cfg("fax.conf", &cfg, NULL))) {
|
||||||
status = SWITCH_STATUS_SUCCESS;
|
status = SWITCH_STATUS_SUCCESS;
|
||||||
@ -627,6 +629,22 @@ switch_status_t load_configuration(switch_bool_t reload)
|
|||||||
} else {
|
} else {
|
||||||
spandsp_globals.enable_t38_request = 0;
|
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")) {
|
} else if (!strcmp(name, "ident")) {
|
||||||
if (!strcmp(value, "_undef_")) {
|
if (!strcmp(value, "_undef_")) {
|
||||||
spandsp_globals.ident = "";
|
spandsp_globals.ident = "";
|
||||||
|
@ -82,6 +82,8 @@ struct spandsp_globals {
|
|||||||
char *modem_directory;
|
char *modem_directory;
|
||||||
switch_hash_t *tones;
|
switch_hash_t *tones;
|
||||||
int tonedebug;
|
int tonedebug;
|
||||||
|
int t38_tx_reinvite_packet_count;
|
||||||
|
int t38_rx_reinvite_packet_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct spandsp_globals spandsp_globals;
|
extern struct spandsp_globals spandsp_globals;
|
||||||
|
@ -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);
|
switch_ivr_sleep(session, 250, SWITCH_TRUE, NULL);
|
||||||
|
|
||||||
if (pvt->app_mode == FUNCTION_TX) {
|
if (pvt->app_mode == FUNCTION_TX) {
|
||||||
req_counter = 100;
|
req_counter = spandsp_globals.t38_tx_reinvite_packet_count;
|
||||||
} else {
|
} else {
|
||||||
req_counter = 50;
|
req_counter = spandsp_globals.t38_rx_reinvite_packet_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (switch_channel_ready(channel)) {
|
while (switch_channel_ready(channel)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user