hossam-abdelmajeed/asterisk-qloader ? reverse-engineered prompt

Reverse engineered prompt

Build me a small PHP tool that reads an Asterisk queue_log file and loads the useful events into a MySQL database.

I want it to be easy to configure from a single config file, where I can set the path to the queue log, my database connection details, the list of events I care about, and a place to store errors and progress so it can keep reading from where it left off. It should handle the common queue events from Asterisk and insert them into a queue_log table with the usual fields like timestamp, uniqueid, queue, agent, event, and the extra args.

Please make it simple to run on a server and let me start it like a background service if possible. If you need to, look up the current best way to run a small PHP script as a service, but keep the project itself lightweight and straightforward.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab