mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
make error more clear about missing trunk_type param in openzap.conf (and auto tolerate the err) and fix printf metas
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@621 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
@@ -1703,8 +1703,8 @@ static ZIO_SIG_CONFIGURE_FUNCTION(zap_isdn_configure_span)
|
||||
}
|
||||
|
||||
if (span->trunk_type >= ZAP_TRUNK_NONE) {
|
||||
snprintf(span->last_error, sizeof(span->last_error), "Unknown trunk type!");
|
||||
return ZAP_FAIL;
|
||||
zap_log(ZAP_LOG_WARNING, "Invalid trunk type '%s' defaulting to T1.\n", zap_trunk_type2str(span->trunk_type));
|
||||
span->trunk_type = ZAP_TRUNK_T1;
|
||||
}
|
||||
|
||||
for(i = 1; i <= span->chan_count; i++) {
|
||||
@@ -1785,6 +1785,7 @@ static ZIO_SIG_CONFIGURE_FUNCTION(zap_isdn_configure_span)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!digit_timeout) {
|
||||
digit_timeout = DEFAULT_DIGIT_TIMEOUT;
|
||||
}
|
||||
|
@@ -2482,6 +2482,7 @@ zap_status_t zap_configure_span(const char *type, zap_span_t *span, zio_signal_c
|
||||
va_end(ap);
|
||||
} else {
|
||||
zap_log(ZAP_LOG_ERROR, "can't find '%s'\n", type);
|
||||
status = ZAP_FAIL;
|
||||
}
|
||||
|
||||
return status;
|
||||
|
Reference in New Issue
Block a user