hatee
hatee
@crienzo I'll be happy to help.
When the recording media_bug is initing, if hang up the call now, the problem will be reproduced. **To Reproduce** 1. patch `switch_ivr_async.c` Make sure we have enough time to hang...
Hi, @andywolk https://github.com/signalwire/freeswitch/blob/b74245d48a1f65a05e853f24e973f9b9ff35f8f5/src/switch_core_session.c#L1717-L1747 After hanging up the call, `session_thread` removed all media bugs (line 1728). https://github.com/signalwire/freeswitch/blob/b74245d48a1f65a05e853f24e973f9b9ff35f8f5/src/switch_core_media_bug.c#L955-L1000 Media bug will be appended to `session->bugs` after the initialization finished (`SWITCH_ABC_TYPE_INIT`). In this...
https://github.com/signalwire/freeswitch/blob/b74245d48a1f65a05e853f24e973f9b9ff35f8f5/src/switch_core_media_bug.c#L1237-L1244 Because it will also lock when removing media bugs. If a media bug is initing, it will block until the bug_rwlock unlocked.
> > https://github.com/signalwire/freeswitch/blob/b74245d48a1f65a05e853f24e973f9b9ff35f8f5/src/switch_core_media_bug.c#L1237-L1244 > > > > Because it will also lock when removing media bugs. If a media bug is initing, it will block until the bug_rwlock unlocked. >...
Found a related issue #1673
It works fine in our production environment for almost 3 months with the patch #2218.