otoru/genesis ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python library for talking to FreeSWITCH over the Event Socket Layer, with asyncio support so it works smoothly without blocking.

I want it to handle the three main ways people connect, inbound, outbound, and consumer mode, and make it easy to send commands and listen for events. Please include a simple decorator style way to register event handlers, so I can do things like react to heartbeat or call events without a lot of boilerplate.

It should feel clean and easy to use from a small app, with examples that show connecting, answering a call, playing audio, hanging up, and sending a command like uptime. If you can, add basic tracing support too, since that sounds useful for debugging real integrations.

Use current docs online if you need to, and make sure it is set up in a way that is pleasant to test and extend later.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab