Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWITCH_EVENT_CUSTOM Subscribe to multiple errors #16

Open
Egbert8527 opened this issue Dec 19, 2024 · 1 comment
Open

SWITCH_EVENT_CUSTOM Subscribe to multiple errors #16

Egbert8527 opened this issue Dec 19, 2024 · 1 comment

Comments

@Egbert8527
Copy link

my event_kafka conf is this

<configuration name="event_kafka.conf" description="Kafka Event Configuration">
	<settings>
		<param name="bootstrap-servers" value="192.168.13.1:9092"/>
		<param name="topic-prefix" value=""/>
		<param name="topic" value="esl_event" />  <!-- set either topic-prefix or topic, incase both are defined topic value would be used. -->
		<param name="username" value="" /> <!-- set it only if you have sasl enabled on your kafka cluster -->
		<param name="password" value="" />
		<param name="buffer-size" value="16" /> 
		<param name="compression" value="snappy"/>
		<param name="event-filter" value="SWITCH_EVENT_CUSTOM::sofia::register,SWITCH_EVENT_CUSTOM::sofia::unregister,SWITCH_EVENT_CUSTOM::sofia::expire,SWITCH_EVENT_CHANNEL_CREATE,SWITCH_EVENT_CHANNEL_ANSWER,SWITCH_EVENT_CHANNEL_HANGUP,SWITCH_EVENT_CHANNEL_HANGUP_COMPLETE,SWITCH_EVENT_CHANNEL_PROGRESS,SWITCH_EVENT_CHANNEL_PARK"/> <!-- set it to a valid list of events if you want to filter. Default empty doesn't filter any event -->
	</settings>
 </configuration>

but Subscribed is not corrected

PixPin_2024-12-19_20-32-33
and message is repeated
PixPin_2024-12-19_20-34-01

@kingster
Copy link
Member

kingster commented Jan 2, 2025

I think the freeswitch filters doesn't support subclass of SWITCH_EVENT_CUSTOM. You will have to manually filter the subclass/event that you are interested in from your kafka-consumer application.

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

No branches or pull requests

2 participants