diff options
Diffstat (limited to 'usr.sbin/i4b')
-rw-r--r-- | usr.sbin/i4b/isdnd/controller.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/usr.sbin/i4b/isdnd/controller.c b/usr.sbin/i4b/isdnd/controller.c index f9290bfd46e2..bdaa3c4bde8c 100644 --- a/usr.sbin/i4b/isdnd/controller.c +++ b/usr.sbin/i4b/isdnd/controller.c @@ -95,6 +95,10 @@ name_of_controller(int ctrl_type, int card_type) "AVM B1 ISA", }; + static char *capimgr_card[] = { + "CAPI manager driven board" + }; + if(ctrl_type == CTRL_PASSIVE) { int index = card_type - CARD_TYPEP_8; @@ -117,6 +121,10 @@ name_of_controller(int ctrl_type, int card_type) if (index >= 0 && index < (sizeof capi_card / sizeof capi_card[0] )) return capi_card[index]; } + else if(ctrl_type == CTRL_CAPIMGR) + { + return capimgr_card[0]; + } return "unknown card type"; } @@ -215,6 +223,12 @@ init_controller_state(int controller, int ctrl_type, int card_type, int tei, isdn_ctrl_tab[controller].state = CTRL_UP; break; + case CTRL_CAPIMGR: + isdn_ctrl_tab[controller].ctrl_type = ctrl_type; + isdn_ctrl_tab[controller].card_type = card_type; + isdn_ctrl_tab[controller].state = CTRL_UP; + break; + default: llog(LL_ERR, "init_controller_state: unknown controller type %d", ctrl_type); return(ERROR); |