- don't wait for DISCONNECT_B3_CONF in activehangup.
This commit is contained in:
parent
81939e875d
commit
220db2555e
11
chan_capi.c
11
chan_capi.c
|
@ -1143,15 +1143,14 @@ static void cc_disconnect_b3(struct capi_pvt *i, int wait)
|
|||
if (!(i->isdnstate & (CAPI_ISDN_STATE_B3_UP | CAPI_ISDN_STATE_B3_PEND)))
|
||||
return;
|
||||
|
||||
if (wait) {
|
||||
cc_mutex_lock(&i->lock);
|
||||
}
|
||||
|
||||
DISCONNECT_B3_REQ_HEADER(&CMSG, capi_ApplID, get_capi_MessageNumber(), 0);
|
||||
DISCONNECT_B3_REQ_NCCI(&CMSG) = i->NCCI;
|
||||
_capi_put_cmsg_wait_conf(i, &CMSG);
|
||||
|
||||
if (!wait) {
|
||||
if (wait) {
|
||||
cc_mutex_lock(&i->lock);
|
||||
_capi_put_cmsg_wait_conf(i, &CMSG);
|
||||
} else {
|
||||
_capi_put_cmsg(&CMSG);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue