[Freeswitch-users] Add new line ending after mod_event_socket JSON event
Mahmood Alkhalil
mahmood.alkhalil at outlook.com
Thu Jan 20 08:49:53 UTC 2022
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20220120/4cc832aa/attachment.html>
More information about the FreeSWITCH-users
mailing list