spandsp_globals.spool = switch_core_strdup(spandsp_globals.config_pool, "/tmp");
spandsp_globals.ident = "SpanDSP Fax Ident";
spandsp_globals.header = "SpanDSP Fax Header";
+ spandsp_globals.timezone = "";
/* TODO make configuration param */
spandsp_globals.tonedebug = 1;
char *filename;
char *ident;
char *header;
+ char *timezone;
int use_ecm;
int disable_v17;
/* All the things which are common to audio and T.38 FAX setup */
t30_set_tx_ident(t30, pvt->ident);
t30_set_tx_page_header_info(t30, pvt->header);
+ if (pvt->timezone && pvt->timezone[0])
+ t30_set_tx_page_header_tz(t30, pvt->timezone);
t30_set_phase_e_handler(t30, phase_e_handler, pvt);
t30_set_phase_d_handler(t30, phase_d_handler, pvt);
pvt->header = switch_core_session_strdup(session, spandsp_globals.header);
}
+ if ((tmp = switch_channel_get_variable(channel, "fax_timezone"))) {
+ char *data = NULL;
+
+ data = strdup(tmp);
+ switch_url_decode(data);
+ pvt->timezone = switch_core_session_strdup(session, data);
+
+ switch_safe_free(data);
+ } else {
+ pvt->timezone = switch_core_session_strdup(session, spandsp_globals.timezone);
+ }
+
if (pvt->app_mode == FUNCTION_TX) {
if ((tmp = switch_channel_get_variable(channel, "fax_start_page"))) {
pvt->tx_page_start = atoi(tmp);