signalwire / freeswitch

FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
https://freeswitch.com/#getting-started
Other
3.54k stars 1.41k forks source link

freeswitch calls back the same event multiple times #2420

Open Suoweiwuu opened 6 months ago

Suoweiwuu commented 6 months ago

Describe the bug When esl listens for freeswitch events, it is found that freeswitch calls back the same event multiple times, which increases the pressure on esl applications

To Reproduce Use esl outbound mode to listen for freeswitch CHANNEL_HANGUP events

Expected behavior There is only one CHANNEL_HANGUP callback event for a call

Package version or git hash FreeSWITCH Version 1.6.20~64bit ( 64bit)

andywolk commented 6 months ago

1.6 is a pretty old version of FreeSWITCH. Please confirm this is an issue in the latest as well.

Suoweiwuu commented 6 months ago

I tried version 1.10.6 again and still had the same problem

Suoweiwuu commented 6 months ago

My business scenario is that I send a bridge command to freeswitch through esl. When the bridge fails, I want to be able to listen to this through some event. I tried CHANNEL_EXECUTE_COMPLETE, but it called back too many times. So much so that my esl server can't handle it

suiyuemanbu commented 5 months ago

You test it with fs_cli first, if it's ok, it could be that you have multiple events subscribed in your esl

Suoweiwuu commented 4 months ago

I tried to subscribe to events in fs_cli, but a call still triggers the same event multiple times