mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-27 02:53:21 +01:00
Change SMS/Voice code delivery priorities.
1) Honor a twilio.international configuration boolean that specifies whether to use twilio for international destinations. 2) If a nexmo configuration is specified, and Twilio fails to deliver, fall back and attempt delivery again with nexmo.
This commit is contained in:
@@ -37,6 +37,9 @@ public class TwilioConfiguration {
|
||||
@JsonProperty
|
||||
private String localDomain;
|
||||
|
||||
@JsonProperty
|
||||
private boolean international;
|
||||
|
||||
public String getAccountId() {
|
||||
return accountId;
|
||||
}
|
||||
@@ -52,4 +55,8 @@ public class TwilioConfiguration {
|
||||
public String getLocalDomain() {
|
||||
return localDomain;
|
||||
}
|
||||
|
||||
public boolean isInternational() {
|
||||
return international;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user