mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-20 18:24:13 +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:
1 parent
8d3b22aee5
commit
0fa7d1b68e
3 files changed
+5
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user