提交 4ff821ef authored 作者: Anthony Minessale's avatar Anthony Minessale

wanpipe work

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@645 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 009e9607
......@@ -990,16 +990,20 @@ static int config_wanpipe(int reload)
for(current_span = 1; current_span < MAX_SPANS; current_span++) {
if (SPANS[current_span]) {
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Launch span %d\n", current_span);
if (!SPANS[current_span]->l1) {
SPANS[current_span]->l1 = PRI_LAYER_1_ULAW;
}
sangoma_init_pri(&SPANS[current_span]->spri,
current_span,
SPANS[current_span]->dchan,
SPANS[current_span]->pswitch,
SPANS[current_span]->node,
globals.debug);
if (sangoma_init_pri(&SPANS[current_span]->spri,
current_span,
SPANS[current_span]->dchan,
SPANS[current_span]->pswitch,
SPANS[current_span]->node,
globals.debug)) {
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Cannot launch span %d\n", current_span);
continue;
}
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Launch span %d\n", current_span);
pri_thread_launch(&SPANS[current_span]->spri);
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论