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:
Anthony Minessale committed 2008-09-10 15:25:02 +00:00
1 parent 395f54b32f
commit 3c4453955d
10 files changed
+192 -167

No files matched your search

+4 -2
View File
@@ -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);
}