Hopefully fixed better counting of active b-channels.
This commit is contained in:
parent
d2b4bdd349
commit
08bea712d4
1
CHANGES
1
CHANGES
|
@ -6,6 +6,7 @@ HEAD
|
||||||
- added config setting 'faxdetecttime' to limit the fax detection for a given amount of seconds.
|
- added config setting 'faxdetecttime' to limit the fax detection for a given amount of seconds.
|
||||||
- added config option for subscriber prefix. Some lines may show local calls without area code
|
- added config option for subscriber prefix. Some lines may show local calls without area code
|
||||||
signaled as subscriber-number. Here the complete prefix including area code must be added.
|
signaled as subscriber-number. Here the complete prefix including area code must be added.
|
||||||
|
- better counting of active b-channels.
|
||||||
|
|
||||||
|
|
||||||
chan_capi-1.1.1
|
chan_capi-1.1.1
|
||||||
|
|
11
chan_capi.c
11
chan_capi.c
|
@ -3406,10 +3406,6 @@ static void capidev_handle_connect_b3_active_indication(_cmsg *CMSG, unsigned in
|
||||||
|
|
||||||
return_on_no_interface("CONNECT_ACTIVE_B3_IND");
|
return_on_no_interface("CONNECT_ACTIVE_B3_IND");
|
||||||
|
|
||||||
if (i->channeltype != CAPI_CHANNELTYPE_NULL) {
|
|
||||||
capi_controllers[i->controller]->nfreebchannels--;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i->state == CAPI_STATE_DISCONNECTING) {
|
if (i->state == CAPI_STATE_DISCONNECTING) {
|
||||||
cc_verbose(3, 1, VERBOSE_PREFIX_3 "%s: CONNECT_B3_ACTIVE_IND during disconnect for NCCI %#x\n",
|
cc_verbose(3, 1, VERBOSE_PREFIX_3 "%s: CONNECT_B3_ACTIVE_IND during disconnect for NCCI %#x\n",
|
||||||
i->vname, NCCI);
|
i->vname, NCCI);
|
||||||
|
@ -3528,6 +3524,10 @@ static void capidev_handle_connect_b3_indication(_cmsg *CMSG, unsigned int PLCI,
|
||||||
i->NCCI = NCCI;
|
i->NCCI = NCCI;
|
||||||
i->B3count = 0;
|
i->B3count = 0;
|
||||||
|
|
||||||
|
if (i->channeltype != CAPI_CHANNELTYPE_NULL) {
|
||||||
|
capi_controllers[i->controller]->nfreebchannels--;
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4049,6 +4049,9 @@ static void capidev_handle_msg(_cmsg *CMSG)
|
||||||
if(i == NULL) break;
|
if(i == NULL) break;
|
||||||
if (wInfo == 0) {
|
if (wInfo == 0) {
|
||||||
i->NCCI = NCCI;
|
i->NCCI = NCCI;
|
||||||
|
if (i->channeltype != CAPI_CHANNELTYPE_NULL) {
|
||||||
|
capi_controllers[i->controller]->nfreebchannels--;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
i->isdnstate &= ~(CAPI_ISDN_STATE_B3_UP | CAPI_ISDN_STATE_B3_PEND);
|
i->isdnstate &= ~(CAPI_ISDN_STATE_B3_UP | CAPI_ISDN_STATE_B3_PEND);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue