Handling of unknown facility indications from terminals

This commit is contained in:
Dennis Grunert 2024-01-10 17:57:50 +01:00 committed by Andreas Eversberg
parent 1e83fdfaad
commit 3779fd3034
1 changed files with 67 additions and 64 deletions

View File

@ -1323,13 +1323,16 @@ void facility_ind(call_t *call, uint32_t pid, struct l3_msg *l3m)
set_3pty = 0; set_3pty = 0;
break; break;
default: default:
; LOGP(DDSS1, LOGL_DEBUG, "Facility Operation=%x of Component=%x not implemented\n", fac.u.inv.operationValue, fac.comp);
break;
} }
break; break;
default: default:
; LOGP(DDSS1, LOGL_DEBUG, "Facility Operation=%x of Component=%x not implemented\n", fac.u.inv.operationValue, fac.comp);
break;
} }
if(set_3pty >= 0) {
/* find other terminal on hold */ /* find other terminal on hold */
other = call->isdn_ep->call_list; other = call->isdn_ep->call_list;
while (other) { while (other) {
@ -1345,7 +1348,7 @@ void facility_ind(call_t *call, uint32_t pid, struct l3_msg *l3m)
} }
other = other->next; other = other->next;
} }
if (set_3pty >= 0 && other) { if (other) {
other->conference_3pty = call->conference_3pty = set_3pty; other->conference_3pty = call->conference_3pty = set_3pty;
/* process local briding capability */ /* process local briding capability */
bridge_socket_client_update(call, 0); bridge_socket_client_update(call, 0);
@ -1377,7 +1380,6 @@ void facility_ind(call_t *call, uint32_t pid, struct l3_msg *l3m)
} }
encodeFac(fac_ie, &fac); encodeFac(fac_ie, &fac);
/* sending facility */ /* sending facility */
l3m = create_l3msg(); l3m = create_l3msg();
enc_ie_facility(l3m, fac_ie + 2, fac_ie[1]); enc_ie_facility(l3m, fac_ie + 2, fac_ie[1]);
@ -1399,6 +1401,7 @@ void facility_ind(call_t *call, uint32_t pid, struct l3_msg *l3m)
osmo_cc_ll_msg(&other->isdn_ep->cc_ep, call->cc_callref, msg); osmo_cc_ll_msg(&other->isdn_ep->cc_ep, call->cc_callref, msg);
} }
} }
}
/* CC-PROGRESS INDICATION */ /* CC-PROGRESS INDICATION */
void progress_ind(call_t *call, uint32_t pid, struct l3_msg *l3m) void progress_ind(call_t *call, uint32_t pid, struct l3_msg *l3m)