{"id":18963774,"url":"https://github.com/opensoft/asterbunny","last_synced_at":"2025-06-11T00:33:50.972Z","repository":{"id":3263013,"uuid":"4301850","full_name":"opensoft/AsterBunny","owner":"opensoft","description":"Send json encoded Asterisk AMI events to RabbitMQ exchanges","archived":false,"fork":false,"pushed_at":"2012-10-24T20:29:57.000Z","size":134,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T16:41:31.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opensoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-11T21:20:05.000Z","updated_at":"2021-07-08T21:05:22.000Z","dependencies_parsed_at":"2022-08-03T02:15:51.385Z","dependency_job_id":null,"html_url":"https://github.com/opensoft/AsterBunny","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensoft%2FAsterBunny","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensoft%2FAsterBunny/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensoft%2FAsterBunny/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensoft%2FAsterBunny/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opensoft","download_url":"https://codeload.github.com/opensoft/AsterBunny/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensoft%2FAsterBunny/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259175946,"owners_count":22817089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T14:21:38.800Z","updated_at":"2025-06-11T00:33:50.951Z","avatar_url":"https://github.com/opensoft.png","language":"PHP","readme":"AsterBunny\n==========\n\nSimple PHP based CLI tool to publish Asterisk AMI events to a Rabbit Message Queue\n\nPHP Versions\n------------\n\nNote: PAMI Requires PHP 5.3+. PHP versions 5.3.9 and 5.3.10 WILL NOT WORK due\nto a bug introduced in stream_get_line() in 5.3.9. Please use 5.3.11+ or up\nto 5.3.8 (see [README.PHP-5.3.9-and-5.3.10](https://github.com/marcelog/PAMI/blob/1.70.0/README.PHP-5.3.9-and-5.3.10)).\n\n\nInstall\n=======\n\nClone the repo:\n\n```bash\ngit clone https://github.com/opensoft/AsterBunny.git\n```\n\nNow install dependencies with composer\n\n```bash\ncurl http://getcomposer.org/installer | php\nphp composer.phar install\n```\n\nUsage\n=====\n\nThe CLI tool is located at `bin/asterbunny` and has a lot of configuration options relating to specifying hostnames, ports,\nusernames, and passwords for Asterisk connections and RabbitMQ servers.\n\nIt's recommended to run the following to learn the configuration set, and defaults\n\n```bash\n./bin/asterbunny listen --help\n```\n\nMessage Sending\n===============\n\nAll asterisk events emitted by the Asterisk AMI interface are encoded as JSON and then sent to a configured RabbitMQ server.\n\nSpecifically, http://www.voip-info.org/wiki/view/asterisk+manager+events are:\n\n  1. Keys are converted to lowercase\n  2. The message is converted to JSON\n\nAnd then submitted to the configured exchange with the `fanout` exchange type\n\n#### Example\n\n```json\n{\n    \"event\": \"Agentlogoff\",\n    \"agent\": \"\u003cagent\u003e\",\n    \"logintime\": \"\u003clogintime\u003e\",\n    \"uniqueid\": \"\u003cuniqueid\u003e\"\n}\n```\n\nMessage headers are as follows:\n\n * `timestamp` =\u003e The unix timestamp of when the event occured as seen by AsterBunny\n * `content_type` =\u003e `application\\json`\n * `delivery_mode` =\u003e `2` - Indicates that the message should be persisted by RabbitMQ\n\nLogging\n=======\n\nA default log4php configuration file is included with this tool.\n\n    $ cp log4php.dist.xml log4php.xml\n\nConfigure logging by editing the file according to instructions found [here](http://logging.apache.org/log4php/docs/configuration.html)\n\nRequirements\n============\n\n * PHP 5.3\n * RabbitMQ\n * Asterisk AMI\n\nLicense\n=======\n\nAsterBunny is licensed under the MIT License - see the LICENSE file for details\n\nAcknowledgments\n===============\n\n * http://github.com/symfony/console\n * http://github.com/videlalvaro/php-amqplib\n * http://github.com/marcelog/pami\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensoft%2Fasterbunny","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopensoft%2Fasterbunny","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensoft%2Fasterbunny/lists"}