[Freeswitch-users] Re- Hex values inside ESL "plain" event messages?

Andrew Keil andrew.keil at visytel.com
Mon Oct 26 01:24:38 MSK 2015


To FreeSWITCH users,

I just wanted to check if there is a reason why hex values are included inside the ESL "plain" event messages, since when I use JSON event messages they are correctly converted to the correct ASCII character.  I would prefer to use the plain messages since it is quicker for my back-end in "C" to work with, however obviously I need to switch the hex characters back to ASCII (which is easy I know), however I wondered if this is just a historic thing kept in or whether it should be changed to output the ASCII values?

Any feedback will be of interest.

For example (HEARTBEAT) from a simple TELNET session to FreeSWITCH:

event plain HEARTBEAT

Content-Type: command/reply
Reply-Text: +OK event listener enabled plain

Content-Length: 901
Content-Type: text/event-plain

Event-Name: HEARTBEAT
Core-UUID: 92575721-6081-4b86-baed-c44e3bf0f3c8
FreeSWITCH-Hostname: visytel-laptop
FreeSWITCH-Switchname: visytel-laptop
FreeSWITCH-IPv4: 192.168.15.13
FreeSWITCH-IPv6: 2001%3A0%3A5ef5%3A79fd%3A2cd4%3A4228%3A876a%3Aad51
Event-Date-Local: 2015-10-26%2009%3A09%3A44
Event-Date-GMT: Sun,%2025%20Oct%202015%2022%3A09%3A44%20GMT
Event-Date-Timestamp: 1445810984231200
Event-Calling-File: switch_core.c
Event-Calling-Function: send_heartbeat
Event-Calling-Line-Number: 70
Event-Sequence: 512
Event-Info: System%20Ready
Up-Time: 0%20years,%200%20days,%200%20hours,%201%20minute,%200%20seconds,%2019%20milliseconds,%20180%20microseconds
FreeSWITCH-Version: 1.5.15b~64bit
Uptime-msec: 60019
Session-Count: 0
Max-Sessions: 1000
Session-Per-Sec: 30
Session-Per-Sec-Max: 0
Session-Per-Sec-FiveMin: 0
Session-Since-Startup: 0
Session-Peak-Max: 0
Session-Peak-FiveMin: 0
Idle-CPU: 99.583980

Regards,

Andrew Keil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20151025/ebc8b9f3/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list