wanpipe work

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@645 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-02-21 19:36:51 +00:00
parent 009e9607e7
commit 4ff821ef76
1 changed files with 11 additions and 7 deletions

View File

@ -990,16 +990,20 @@ static int config_wanpipe(int reload)
for(current_span = 1; current_span < MAX_SPANS; current_span++) { for(current_span = 1; current_span < MAX_SPANS; current_span++) {
if (SPANS[current_span]) { if (SPANS[current_span]) {
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Launch span %d\n", current_span);
if (!SPANS[current_span]->l1) { if (!SPANS[current_span]->l1) {
SPANS[current_span]->l1 = PRI_LAYER_1_ULAW; SPANS[current_span]->l1 = PRI_LAYER_1_ULAW;
} }
sangoma_init_pri(&SPANS[current_span]->spri, if (sangoma_init_pri(&SPANS[current_span]->spri,
current_span, current_span,
SPANS[current_span]->dchan, SPANS[current_span]->dchan,
SPANS[current_span]->pswitch, SPANS[current_span]->pswitch,
SPANS[current_span]->node, SPANS[current_span]->node,
globals.debug); 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); pri_thread_launch(&SPANS[current_span]->spri);
} }
} }