[asterisk-commits] irroot: branch irroot/distrotech-customers-10 r334214 - /team/irroot/distrote...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Sep 1 04:29:31 CDT 2011
Author: irroot
Date: Thu Sep 1 04:29:28 2011
New Revision: 334214
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=334214
Log:
Conflicts with gwtimeout patch fixed (res_fax.c)
Modified:
team/irroot/distrotech-customers-10/res/res_fax.c
Modified: team/irroot/distrotech-customers-10/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-10/res/res_fax.c?view=diff&rev=334214&r1=334213&r2=334214
==============================================================================
--- team/irroot/distrotech-customers-10/res/res_fax.c (original)
+++ team/irroot/distrotech-customers-10/res/res_fax.c Thu Sep 1 04:29:28 2011
@@ -3762,19 +3762,22 @@
const char *val = ast_skip_blanks(value);
char *timeout = strchr(val, ',');
- details->gateway_timeout = 0;
if (timeout) {
- unsigned int gwtimeout;
*timeout++ = '\0';
- if (sscanf(timeout, "%u", &gwtimeout) == 1) {
- details->gateway_timeout = gwtimeout * 1000;
- } else {
- ast_log(LOG_WARNING, "Unsupported timeout '%s' passed to FAXOPT(%s).\n", timeout, data);
- }
}
if (ast_true(val)) {
if (details->gateway_id < 0) {
+ details->gateway_timeout = 0;
+ if (timeout) {
+ unsigned int gwtimeout;
+ if (sscanf(timeout, "%u", &gwtimeout) == 1) {
+ details->gateway_timeout = gwtimeout * 1000;
+ } else {
+ ast_log(LOG_WARNING, "Unsupported timeout '%s' passed to FAXOPT(%s).\n", timeout, data);
+ }
+ }
+
details->gateway_id = fax_gateway_attach(chan, details);
if (details->gateway_id < 0) {
ast_log(LOG_ERROR, "Error attaching T.38 gateway to channel %s.\n", chan->name);
More information about the asterisk-commits
mailing list