-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Asterisk phone provider #1282
Conversation
Makefile
Outdated
@@ -54,7 +54,7 @@ ifeq ($(DB),$(SQLITE_PROFILE)) | |||
endif | |||
|
|||
define run_docker_compose_command | |||
$(DOCKER_COMPOSE_ENV_VARS) docker compose -f $(DOCKER_COMPOSE_FILE) $(1) | |||
$(DOCKER_COMPOSE_ENV_VARS) docker-compose -f $(DOCKER_COMPOSE_FILE) $(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing that out! I've reverted that change.
Refactor phone_manager for asterisk support
Hello! can you show an example of a working configuration for testing? When I send alerts, oncall requires twilio to confirm numbers, but I'm trying to integrate with asterisk. |
Also have the same problem. Need twilio to confirm telephone number. |
In Env Variables -> PHONE_PROVIDER, need set to Asterisk |
Already set. When you try verify phone number it sends request to asterisk, but without verification code. |
Hi guys, For example, I have a dial plan set up like below. I use https://github.com/zaf/asterisk-googletts for TTS.
|
Hi all! Please tell me how to solve the problem with verify phone number? |
Hi, @vucong2409. First of all - sorry for the late reply. Second - thanks for the PR. |
# What this PR does This PR moves phone notification logic into separate object PhoneBackend and introduces PhoneProvider interface to hide actual implementation of external phone services provider. It should allow add new phone providers just by implementing one class (See SimplePhoneProvider for example). # Why [Asterisk PR](#1282) showed that our phone notification system is not flexible. However this is one of the most frequent community questions - how to add "X" phone provider. Also, this refactoring move us one step closer to unifying all notification backends, since with PhoneBackend all phone notification logic is collected in one place and independent from concrete realisation. # Highligts 1. PhoneBackend object - contains all phone notifications business logic. 2. PhoneProvider - interface to external phone services provider. 3. TwilioPhoneProvider and SimplePhoneProvider - two examples of PhoneProvider implementation. 4. PhoneCallRecord and SMSRecord models. I introduced these models to keep phone notification limits logic decoupled from external providers. Existing TwilioPhoneCall and TwilioSMS objects will be migrated to the new table to not to reset limits counter. To be able to receive status callbacks and gather from Twilio TwilioPhoneCall and TwilioSMS still exists, but they are linked to PhoneCallRecord and SMSRecord via fk, to not to leat twilio logic into core code. --------- Co-authored-by: Yulia Shanyrova <yulia.shanyrova@grafana.com>
Hi everyone. I merged #1713 with refactoring of phone provider system, which should make implementing asterisk much simpler. Waiting for contributions :) |
We are still waiting for volunteers to finish this PR or make a new one with Asterisk integration, feel free to contact me to sync up on that! |
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
This pull request has been automatically closed because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
closing this PR as it needs to be refactored to use the new phone provider interface. It's not currently on the core team's roadmap to add this provider, but if anyone would like to open a new PR, implemented using the new interface, feel free and we will definitely review 🙂 |
What this PR does
This PR adds support for Asterisk call center beside Twilio.
Which issue(s) this PR fixes
Checklist
CHANGELOG.md
updated