{"id":16884324,"url":"https://github.com/simolus3/chan_discord","last_synced_at":"2026-01-29T15:32:38.905Z","repository":{"id":248439914,"uuid":"828353997","full_name":"simolus3/chan_discord","owner":"simolus3","description":"Collections of modules for the Asterisk PBX.","archived":false,"fork":false,"pushed_at":"2024-07-14T21:24:19.000Z","size":95,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T01:38:39.458Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simolus3.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-13T22:03:53.000Z","updated_at":"2024-09-28T12:03:11.000Z","dependencies_parsed_at":"2024-07-14T23:44:13.681Z","dependency_job_id":null,"html_url":"https://github.com/simolus3/chan_discord","commit_stats":null,"previous_names":["simolus3/chan_discord"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simolus3/chan_discord","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simolus3%2Fchan_discord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simolus3%2Fchan_discord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simolus3%2Fchan_discord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simolus3%2Fchan_discord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simolus3","download_url":"https://codeload.github.com/simolus3/chan_discord/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simolus3%2Fchan_discord/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28880233,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-13T16:17:19.439Z","updated_at":"2026-01-29T15:32:38.887Z","avatar_url":"https://github.com/simolus3.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## chan\\_discord\n\nThis loadable Asterisk module adds support for joining [Discord](https://discord.com)\nvoice channels from Asterisk.\nAn active voice call to Discord is represented as an Asterisk channel, allowing them to\nbe bridged with other VoIP technologies supported by Asterisk.\n\n### Installation\n\nYou can grab a prebuilt version for your Asterisk install on the GitHub releases page.\nAlternatively, `chan_discord` can be built from source:\n\n```\nASTERISK_SRC=/path/to/your/asterisk/sources cargo build --release\n```\n\nThis will generate the compiled module in `target/release/libchan_discord.so`.\nAfter obtaining a `libchan_discord.so`, put it into the modules folder of your Asterisk\ninstall, typically `/usr/lib/asterisk/modules`.\n\n\u003e [!IMPORTANT]\n\u003e Discord uses Opus to encode voice data, a codec that is not supported by Asterisk\n\u003e out-of-the box. As no Opus module is openly available, this module uses its\n\u003e own encoder. __This depends on `libopus` being available on your system.__\n\n### Setup\n\nTo join voice channels, you need your own Discord bot that will be controlled by Asterisk.\nYou can create one at https://discord.com/developers.\nThis bot needs to be added to the servers for which you're interested in joining voice channels.\nTo add the bot to servers, select the \"bot\" option under the \"OAuth2\" section in the Discord\ndeveloper portal and enable the \"Connect\" and \"Speak\" options under \"Voice permissions\".\nThe generated URL can be used to add the bot to your server.\n\nUnder the \"Bot\" page of the developer portal, you can generate a token used to authenticate\nAsterisk when talking to Discord.\nIn your Asterisk configuration directory (usually `/etc/asterisk.conf`), create a file\nnamed `discord.conf` and add the following content:\n\n```\n[general]\ntoken=\u003cyour discord token\u003e\n```\n\n### Usage\n\nAfter installing the module and adding the necessary configuration options, you can restart\nAsterisk.\nThis will add the `Discord` channel technology. To issue calls to Discord, format them as\n`Discord/\u003cserver id\u003e/\u003cchannel id\u003e`. You can obtain the server (guild) and channel IDs by right-clicking\nthem in Discord.\n\nFor instance, you can forward incoming calls on an extension to Discord with:\n\n```\nsame = n,Dial(Discord/1234serverid5678/1234channel5678)\n```\n\nBe aware that a bot can only be active in a single channel per server at the same time.\nYou also can't open multiple Asterisk channels to the same Discord call. Instead, use\na bridge to connect multiple other channels with a Discord voice chat.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimolus3%2Fchan_discord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimolus3%2Fchan_discord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimolus3%2Fchan_discord/lists"}