mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 12:37:05 +00:00
change core of openzap to use dynamic allocation of spans and channels to reduce memory usage
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@552 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
1 parent
395f54b32f
commit
3c4453955d
10 files changed
+192
-167
No files matched your search
@@ -98,16 +98,18 @@ int main(int argc, char *argv[])
|
||||
|
||||
|
||||
if (zap_configure_span("analog", span, on_signal,
|
||||
"tonemap", "te",
|
||||
"tonemap", "us",
|
||||
"digit_timeout", &digit_timeout,
|
||||
"max_dialstr", &max_dialstr,
|
||||
TAG_END
|
||||
) == ZAP_SUCCESS) {
|
||||
) != ZAP_SUCCESS) {
|
||||
zap_log(ZAP_LOG_ERROR, "Error configuring OpenZAP span\n");
|
||||
goto done;
|
||||
}
|
||||
zap_span_start(span);
|
||||
|
||||
R = 1;
|
||||
|
||||
while(zap_running() && R) {
|
||||
zap_sleep(1 * 1000);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user