{"id":21336782,"url":"https://github.com/cygnusnetworks/slack_asterisk","last_synced_at":"2025-06-29T17:38:37.635Z","repository":{"id":67438684,"uuid":"127888796","full_name":"CygnusNetworks/slack_asterisk","owner":"CygnusNetworks","description":"Asterisk Slack Call Notifixation","archived":false,"fork":false,"pushed_at":"2024-12-17T08:19:55.000Z","size":153,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T02:18:38.505Z","etag":null,"topics":["asterisk","slack"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CygnusNetworks.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":"2018-04-03T10:04:51.000Z","updated_at":"2024-12-17T08:19:57.000Z","dependencies_parsed_at":"2023-04-25T13:01:07.934Z","dependency_job_id":null,"html_url":"https://github.com/CygnusNetworks/slack_asterisk","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/CygnusNetworks%2Fslack_asterisk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CygnusNetworks%2Fslack_asterisk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CygnusNetworks%2Fslack_asterisk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CygnusNetworks%2Fslack_asterisk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CygnusNetworks","download_url":"https://codeload.github.com/CygnusNetworks/slack_asterisk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991560,"owners_count":21194894,"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":["asterisk","slack"],"created_at":"2024-11-21T23:54:58.352Z","updated_at":"2025-04-15T02:18:45.701Z","avatar_url":"https://github.com/CygnusNetworks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slack_asterisk\n\nThis is a Asterisk Slack Integration, which provides logging of incoming and outgoing phone calls including call progress. \nIt will post a initial message on the first call and updates this on call progress.\nIt is implemented as a Asterisk FastAGI server (listening on local socket port 4574).\n\n![Slack Asterisk example](slack_asterisk_example.png?raw=true \"Example Output\")\n\n## Requirements\n\n * Python 3.x\n * configobj\n * slackclient\n * falcon\n\nFor a Python 2.7 version see release tag 0.10.\n \n## Installation\n\nUse:\n\n`python3 setup.py install`\n\nor build a rpm using the provided RPM spec file (tested using CentOS 7). \nAlso a SystemD Unit file is provided, which allows starting and stopping of the FastAGI service.\n\n## Configuration\n\nYou will need a Slack API Token to be able to post messages to Slack. Create a Slack API Token with the proper \npermissions and put the token into a environment variable, before starting the daemon. In addition you can use\na config file in /etc/slack-asterisk.conf to override the default values.\n\nStart using Slack Token from environment:\n\n```\nexport SLACK_TOKEN=xoxb....\n/usr/bin/slack-asterisk\n```\n\nThe provided SystemD Unit file will read the Slack Token from /etc/slack-asterisk.token.\n\n### Asterisk extensions\n\nOnce the service is running, you need to have the FastAGI included in your extensions. Be sure to included \nall incoming and outgoing dials and all call states. \n\n```\n; incoming call extension\nsame =\u003e n,AGI(agi://127.0.0.1:4574/)\nsame =\u003e n,Dial(SIP/FIXME,120,trM(slack-answered^${UNIQUEID})) ; Macro see below\n\n...\n; congestion, hangup, ... call states\nexten =\u003e congestion,1,Noop(Congestion called)\nsame =\u003e next,AGI(agi://127.0.0.1:4574/)\nsame =\u003e next,Goto(noanswer,1)\n\nexten =\u003e chanunavail,1,Noop(Channel unavailable called)\nsame =\u003e next,AGI(agi://127.0.0.1:4574/)\nsame =\u003e next,Goto(noanswer,1)\n\nexten =\u003e h,1,Noop(Channel hangup called)\nsame =\u003e next,AGI(agi://127.0.0.1:4574/)\n\nexten =\u003e noanswer,1,Set(GREETING=u)\nsame =\u003e next,Goto(leave-voicemail,${EXTEN},1)\n\nexten =\u003e busy,1,Set(GREETING=b)\nsame =\u003e next,AGI(agi://127.0.0.1:4574/)\nsame =\u003e next,Goto(leave-voicemail,${EXTEN},1)\n```\n\nIn additon define the Macro given below, to catch answered calls.\n\n```\n[macro-slack-answered]\nexten =\u003e s,1,Noop(macro slack-answered called)\nsame =\u003e next,AGI(agi://127.0.0.1:4574/)\n```\n\n### Config file\n\nConfig file options are the following (defaults are given):\n\n```\n[general]\nip = 127.0.0.1\nport = 4574\n\n[slack]\nclient_id = \"\"\nclient_secret = \"\"\nchannel = \"telefon\"\n\nusername = \"User\"\nemoji  = \":telephone_receiver:\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcygnusnetworks%2Fslack_asterisk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcygnusnetworks%2Fslack_asterisk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcygnusnetworks%2Fslack_asterisk/lists"}