dect
/
libdect
Archived
13
0
Fork 0

cc: use MNCC_RELEASE-cfm when link is shut down in RELEASE_PENDING state

Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2010-09-15 04:54:42 +02:00
parent 8f51a775ed
commit 4129b0cdea
1 changed files with 7 additions and 2 deletions

View File

@ -1651,8 +1651,13 @@ static void dect_cc_shutdown(struct dect_handle *dh,
cc_debug(call, "shutdown");
cc_debug(call, "MNCC_REJECT-ind");
dh->ops->cc_ops->mncc_reject_ind(dh, call, &param);
if (call->state == DECT_CC_RELEASE_PENDING) {
cc_debug(call, "MNCC_RELEASE-cfm");
dh->ops->cc_ops->mncc_release_cfm(dh, call, &param);
} else {
cc_debug(call, "MNCC_REJECT-ind");
dh->ops->cc_ops->mncc_reject_ind(dh, call, &param);
}
dect_call_shutdown(dh, call);
}