freeswitch icon indicating copy to clipboard operation
freeswitch copied to clipboard

freeswitch calls back the same event multiple times

Open Suoweiwuu opened this issue 1 year ago • 5 comments

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)

Suoweiwuu avatar Apr 05 '24 15:04 Suoweiwuu

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

andywolk avatar Apr 05 '24 15:04 andywolk

I tried version 1.10.6 again and still had the same problem

Suoweiwuu avatar Apr 08 '24 12:04 Suoweiwuu

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

Suoweiwuu avatar Apr 08 '24 12:04 Suoweiwuu

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

suiyuemanbu avatar Apr 24 '24 02:04 suiyuemanbu

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

Suoweiwuu avatar May 10 '24 13:05 Suoweiwuu