Skip to content
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

proposal: IVR API, or PhoneCall API #726

Closed
seeflood opened this issue Jul 20, 2022 · 2 comments · Fixed by #727
Closed

proposal: IVR API, or PhoneCall API #726

seeflood opened this issue Jul 20, 2022 · 2 comments · Fixed by #727
Labels

Comments

@seeflood
Copy link
Member

seeflood commented Jul 20, 2022

What would you like to be added

IVR API, or PhoneCall API

Developers can invoke this API to send voice messages to specific people.

Why is this needed

In the monitoring scenarios, monitor systems need to send alarm messages to people on-call.
The messages might be in different forms, including IM,SMS, Email and phone calls, depending on the level of urgency.

Product research

IVR product Docs
Aliyun VMS https://www.aliyun.com/product/vms
AWS Pinpoint https://aws.amazon.com/cn/pinpoint/

Detailed Design

We need to consider the following factors:

  • Portability
    For example, a monitor system might be deployed on alibaba cloud(using VMS to send voice message) or AWS (using AWS Pinpoint to send voice message). So portability is important here.
service IvrService {

  //Send voice using the specific template
  rpc SendVoiceWithTemplate(SendVoiceWithTemplateRequest) returns (SendVoiceWithTemplateResponse) {}

}

message SendVoiceWithTemplateRequest{
  // Required
  Template template = 1;
  // Required
  string to_mobile = 2;
  // This field is required by some cloud providers.
  string from_mobile = 3;
}

message Template{
  // Required
  string template_id = 1;
  // Required
  map<string, string>  template_params = 2;
}

message SendVoiceWithTemplateResponse{
  string message_id = 1;
}

@seeflood
Copy link
Member Author

seeflood commented Jul 21, 2022

I submitted a PR #727
@kevinten10 @wenxuwan FYI

@seeflood seeflood mentioned this issue Jul 26, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue or help wanted) or other activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant