Skip to content

Add an inbound connection's filters before subscribing to events - #21

Closed
henrikbjorn wants to merge 1 commit into
decode-connect-datafrom
filter-before-subscribe
Closed

henrikbjorn wants to merge 1 commit into
decode-connect-datafrom
filter-before-subscribe

Conversation

@henrikbjorn

Copy link
Copy Markdown
Member

FreeSWITCH sends every subscribed event while a connection has no filters (mod_event_socket.c:318–360: the filter check only runs once l->filters has headers). Inbound#run_session subscribed first (event plain …) and added the filters after. So until the last filter reply came back, the connection received the subscribed events of every channel on the node.

Now it sends auth, then the filters, then event plain.

The filter test checks the order: auth, filters, events.

Stacked on #20.

FreeSWITCH sends every subscribed event while a connection has no
filters. run_session subscribed first and added the filters after, so
until the last filter reply came back, the connection received the
subscribed events of every channel on the node. Filters now go first,
then the subscription.
@henrikbjorn

Copy link
Copy Markdown
Member Author

Folded into #25, which collects these changes in one PR.

@henrikbjorn henrikbjorn closed this Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant