Crates.io | fs_esl_codec |
lib.rs | fs_esl_codec |
version | 0.0.1 |
created_at | 2025-09-14 10:50:06.651929+00 |
updated_at | 2025-09-14 10:50:06.651929+00 |
description | Freeswitch esl socket decoder for tokio Framed socket reading |
homepage | |
repository | https://git.protogen.engineering/semubico/freeswitch-esl/ |
max_upload_size | |
id | 1838591 |
size | 44,268 |
This is a freeswitch esl codec for parsing event stream from freeswitch in inbound mode. This crate only provides a codec. The authentication and the initial request for events in the appropriate format is to be done separately (see examples/untyped.rs for the most basic one). The framing mechanism returns a packet consisting of ESL headers (not to be confused with the actual event headers) such as content-type, and a String buffer, that you can deserialize however you want using the parser appropriate for the type of events requested (events plain/events json/events xml). This way you can put this codec on a reader of a .split(), or onto an another socket entirely.