set message type to MT_RELEASE_COMPLETE in message for CC_RELEASE_COMPLETE_REQ. MT_DISCONNECT was sent instead of MT_RELEASE_COMPLETE as required

This commit is contained in:
Günther Kelleter 2006-09-14 15:43:09 +00:00
parent d87bf83950
commit e42aada6cf
1 changed files with 5 additions and 3 deletions

View File

@ -577,12 +577,14 @@ plci_connect_resp(struct FsmInst *fi, int event, void *arg)
// plciDetachAppPlci(plci, aplci);
if (plci->nAppl == 1) {
int prim;
if (test_bit(PLCI_STATE_ALERTING, &plci->state))
if (test_bit(PLCI_STATE_ALERTING, &plci->state)) {
prim = CC_DISCONNECT | REQUEST;
else
skb = mISDN_alloc_l3msg(10, MT_DISCONNECT);
} else {
// if we already answered, we can't just ignore but must clear actively
prim = CC_RELEASE_COMPLETE | REQUEST;
skb = mISDN_alloc_l3msg(10, MT_DISCONNECT);
skb = mISDN_alloc_l3msg(10, MT_RELEASE_COMPLETE);
}
if (!skb) {
plciL4L3(plci, prim, NULL);
} else {