{"id":18735055,"url":"https://github.com/irontec/node-asterisk-amqp","last_synced_at":"2025-07-01T12:35:49.235Z","repository":{"id":57185282,"uuid":"46417791","full_name":"irontec/node-asterisk-amqp","owner":"irontec","description":"Node.js wrapper around asterisk amqp connection layer","archived":false,"fork":false,"pushed_at":"2020-02-11T14:03:47.000Z","size":19,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-12T19:11:59.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/irontec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-18T12:37:45.000Z","updated_at":"2020-02-11T14:03:04.000Z","dependencies_parsed_at":"2022-09-17T07:51:13.081Z","dependency_job_id":null,"html_url":"https://github.com/irontec/node-asterisk-amqp","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/irontec%2Fnode-asterisk-amqp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irontec%2Fnode-asterisk-amqp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irontec%2Fnode-asterisk-amqp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irontec%2Fnode-asterisk-amqp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irontec","download_url":"https://codeload.github.com/irontec/node-asterisk-amqp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618281,"owners_count":21134201,"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-07T15:15:38.567Z","updated_at":"2025-04-12T19:12:39.151Z","avatar_url":"https://github.com/irontec.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asterisk-amqp\n\nNode.js wrapper around asterisk amqp connection layer\n\n## Installation\n\nDownload node at [nodejs.org](http://nodejs.org) and install it, if you haven't already.\n\n```sh\nnpm i --save asterisk-amqp\n```\n\n## Usage\n\n```js\n// create an instance from the factory\nvar asteriskAMQP = require('asterisk-amqp')({\n    host: nconf.get('ASTERISK_AMQP_HOST'),\n    port: nconf.get('ASTERISK_AMQP_PORT'),\n    login: nconf.get('ASTERISK_AMQP_LOGIN'),\n    password: nconf.get('ASTERISK_AMQP_PASSWORD')\n});\n\n// Listen to events\nasteriskAMQP.on('asterisk.agents', function(agents) {\n});\nasteriskAMQP.on('asterisk.queues', function(queues) {\n});\n```\n\n[Here](https://github.com/irontec/node-asterisk-amqp/blob/master/doc/DOCUMENTATION.md) you can read the full documentation\n\n## Debugging\n\nasterisk-amqp uses [debug](https://www.npmjs.com/package/debug) module for logs\n\nIn order to get logs from asterisk-amqp you have to add the values to the DEBUG env variable like in the example\n\n| Key                   | Prints            |\n| ---                   | ------            |\n| 'asterisk-amqp:info'  | Connector info    |\n\n```sh\nDEBUG=\"asterisk-amqp:info\" node myapp.js\n```\n\n\n## Tests\n\n```sh\nnpm install\nnpm test\n```\n\n## Dependencies\n\n-   [amqp](https://github.com/postwait/node-amqp): AMQP driver for node [![NPM version](https://badge.fury.io/js/amqp.svg)](http://badge.fury.io/js/amqp)\n-   [lodash.assign](https://www.npmjs.com/package/lodash.assign): The modern build of lodash’s assign as a module. [![NPM version](https://badge.fury.io/js/lodash.assign.svg)](http://badge.fury.io/js/lodash.assign)\n-   [lodash.foreach](https://www.npmjs.com/package/lodash.foreach): The modern build of lodash’s forEach as a module. [![NPM version](https://badge.fury.io/js/lodash.foreach.svg)](http://badge.fury.io/js/lodash.foreach)\n-   [string](https://github.com/jprichardson/string.js): string contains methods that aren't included in the vanilla JavaScript string such as escaping html, decoding html entities, stripping tags, etc. [![Build Status](https://travis-ci.org/jprichardson/string.js.svg?branch=master)](https://travis-ci.org/jprichardson/string.js) [![NPM version](https://badge.fury.io/js/string.svg)](http://badge.fury.io/js/string)\n\n## Dev Dependencies\n\n-   [eslint](https://github.com/eslint/eslint): An AST-based pattern checker for JavaScript. [![Build Status](https://travis-ci.org/eslint/eslint.svg?branch=master)](https://travis-ci.org/eslint/eslint) [![NPM version](https://badge.fury.io/js/eslint.svg)](http://badge.fury.io/js/eslint)\n\n## License\n\n[EUPL v1.1](https://raw.githubusercontent.com/irontec/node-asterisk-amqp/master/LICENSE.txt)\n\n```\nCopyright 2015 Irontec SL\n\nLicensed under the EUPL, Version 1.1 or - as soon they will be approved by the European\nCommission - subsequent versions of the EUPL (the \"Licence\"); You may not use this work\nexcept in compliance with the Licence.\n\nYou may obtain a copy of the Licence at:\nhttp://ec.europa.eu/idabc/eupl.html\n\nUnless required by applicable law or agreed to in writing, software distributed under \nthe Licence is distributed on an \"AS IS\" basis, WITHOUT WARRANTIES OR CONDITIONS OF \nANY KIND, either express or implied. See the Licence for the specific language \ngoverning permissions and limitations under the Licence.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firontec%2Fnode-asterisk-amqp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firontec%2Fnode-asterisk-amqp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firontec%2Fnode-asterisk-amqp/lists"}