mahmood.alkhalil at ou... Guest
|
Posted: Thu Jan 20, 2022 4:07 am Post subject: [Freeswitch-users] Add new line ending after mod_event_socke |
|
|
Hi FS Community,
I'm trying to add a '\n' new line after the JSON event sent from FS on the mod_event_socket when the event type is JSON, I need to do so as I'm writing a JAVA event parser and it would make the code much simpler if I can add this new line after the event.
I'm not able to know where to edit exactly in the mod_event_scoket file (I have no experience in C lang at all) but I think it is somewhere around line 1274.
If someone could help with this, I would really appreciate it.
(the java socket lib am writing uses Netty DelimiterBasedFrameDecoder on '\n' nut it breaks as after the JSON event there is no new line and Content-Length: is directly written after the JSON event)
Mahmood Alkhalil. |
|