mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-30 21:02:46 +00:00
added support to read from the configuration file ring_on_ms and ring_off_msg
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@990 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
b11682a956
commit
abdb9b1f3f
@ -368,6 +368,20 @@ static ZIO_CONFIGURE_FUNCTION(wanpipe_configure)
|
||||
} else {
|
||||
wp_globals.flash_ms = num;
|
||||
}
|
||||
} else if (!strcasecmp(var, "ring_on_ms")) {
|
||||
num = atoi(val);
|
||||
if (num < 500 || num > 5000) {
|
||||
zap_log(ZAP_LOG_WARNING, "invalid ring_on_ms at line %d (valid range 500 to 5000)\n", lineno);
|
||||
} else {
|
||||
wp_globals.ring_on_ms = num;
|
||||
}
|
||||
} else if (!strcasecmp(var, "ring_off_ms")) {
|
||||
num = atoi(val);
|
||||
if (num < 500 || num > 5000) {
|
||||
zap_log(ZAP_LOG_WARNING, "invalid ring_off_ms at line %d (valid range 500 to 5000)\n", lineno);
|
||||
} else {
|
||||
wp_globals.ring_off_ms = num;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user