ASCI: Notify talker in the VTY that he cannot leave the call while talking

Related: OS#5364
Change-Id: I497efc5bddc122cd5744de531917aad415ac1654
This commit is contained in:
Andreas Eversberg 2023-10-27 09:06:58 +02:00 committed by jolly
parent efe2c7b7bd
commit 3aa20b9959
1 changed files with 2 additions and 0 deletions

View File

@ -1855,6 +1855,8 @@ int gcc_leave(struct osmocom_ms *ms)
trans->gcc.fi->state == VGCS_GCC_ST_U2sl_GROUP_CALL_ACTIVE ||
trans->gcc.fi->state == VGCS_GCC_ST_U5_TERMINATION_REQUESTED) {
LOG_GCC(trans, LOGL_NOTICE, "Cannot leave (abort), in this state.\n");
if (trans->gcc.fi->state == VGCS_GCC_ST_U2sl_GROUP_CALL_ACTIVE)
vgcs_vty_notify(trans, "Cannot leave while talking\n");
return -EINVAL;
}