Skip to content

Commit

Permalink
b2b_logic: do not discard BYEs of active entities
Browse files Browse the repository at this point in the history
Completes/fixes ce19c70.

Many thanks go to Norm Brandinger for reporting and testing it!

(cherry picked from commit 8631e98)
  • Loading branch information
razvancrainea committed Dec 4, 2024
1 parent c4b9c53 commit 1259a5c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/b2b_logic/bridging.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,14 +386,16 @@ int process_bridge_bye(struct sip_msg* msg, b2bl_tuple_t* tuple,
entity && tuple->bridge_initiator == entity)
{
entity_no = 3; // Bridge initiator
} else if (entity && entity->disconnected) {
entity_no = -1; // Probably a cross-bye - reply and don't do anything
} else {
entity_no = bridge_get_entityno(tuple, entity);
if(entity_no < 0)
{
LM_ERR("No match found\n");
return -1;
if (!entity) {
LM_ERR("No match found\n");
return -1;
}
/* we've got a known entity, but no longer part of the
* bridge - we gracefully reply and drop */
}
}

Expand Down

0 comments on commit 1259a5c

Please sign in to comment.