|
|
|
@ -1,3 +1,18 @@ |
|
|
|
/** |
|
|
|
* Copyright © 2016-2021 The Thingsboard Authors |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* You may obtain a copy of the License at |
|
|
|
* |
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
* |
|
|
|
* Unless required by applicable law or agreed to in writing, software |
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, |
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
* limitations under the License. |
|
|
|
*/ |
|
|
|
package org.thingsboard.server.common.data.sms.config; |
|
|
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
@ -5,34 +20,73 @@ import lombok.Data; |
|
|
|
|
|
|
|
@Data |
|
|
|
public class SmppSmsProviderConfiguration implements SmsProviderConfiguration { |
|
|
|
@ApiModelProperty(allowableValues = "3.3, 3.4") |
|
|
|
@ApiModelProperty(value = "SMPP version", allowableValues = "3.3, 3.4", required = true) |
|
|
|
private String protocolVersion; |
|
|
|
|
|
|
|
@ApiModelProperty(value = "SMPP host", required = true) |
|
|
|
private String host; |
|
|
|
@ApiModelProperty(value = "SMPP port", required = true) |
|
|
|
private Integer port; |
|
|
|
|
|
|
|
@ApiModelProperty(value = "System ID", required = true) |
|
|
|
private String systemId; |
|
|
|
@ApiModelProperty(value = "Password", required = true) |
|
|
|
private String password; |
|
|
|
|
|
|
|
@ApiModelProperty(required = false) |
|
|
|
@ApiModelProperty(value = "System type", required = false) |
|
|
|
private String systemType; |
|
|
|
@ApiModelProperty(value = "TX - Transmitter, RX - Receiver, TRX - Transciever. By default TX is used", required = false) |
|
|
|
private SmppBindType bindType; |
|
|
|
@ApiModelProperty(required = false) |
|
|
|
@ApiModelProperty(value = "Service type", required = false) |
|
|
|
private String serviceType; |
|
|
|
|
|
|
|
@ApiModelProperty(required = false) |
|
|
|
private Byte ton; |
|
|
|
@ApiModelProperty(required = false) |
|
|
|
private Byte npi; |
|
|
|
@ApiModelProperty(required = false) |
|
|
|
@ApiModelProperty(value = "Source address", required = false) |
|
|
|
private String sourceAddress; |
|
|
|
@ApiModelProperty(value = "Source TON (Type of Number). Needed is source address is set. 5 by default.\n" + |
|
|
|
"0 - Unknown\n" + |
|
|
|
"1 - International\n" + |
|
|
|
"2 - National\n" + |
|
|
|
"3 - Network Specific\n" + |
|
|
|
"4 - Subscriber Number\n" + |
|
|
|
"5 - Alphanumeric\n" + |
|
|
|
"6 - Abbreviated", required = false) |
|
|
|
private Byte sourceTon; |
|
|
|
@ApiModelProperty(value = "Source NPI (Numbering Plan Identification). Needed is source address is set. 0 by default.\n" + |
|
|
|
"0 - Unknown\n" + |
|
|
|
"1 - ISDN/telephone numbering plan (E163/E164)\n" + |
|
|
|
"3 - Data numbering plan (X.121)\n" + |
|
|
|
"4 - Telex numbering plan (F.69)\n" + |
|
|
|
"6 - Land Mobile (E.212) =6\n" + |
|
|
|
"8 - National numbering plan\n" + |
|
|
|
"9 - Private numbering plan\n" + |
|
|
|
"10 - ERMES numbering plan (ETSI DE/PS 3 01-3)\n" + |
|
|
|
"13 - Internet (IP)\n" + |
|
|
|
"18 - WAP Client Id (to be defined by WAP Forum)", required = false) |
|
|
|
private Byte sourceNpi; |
|
|
|
|
|
|
|
@ApiModelProperty(required = false) |
|
|
|
@ApiModelProperty(value = "Destination TON (Type of Number). 5 by default.\n" + |
|
|
|
"0 - Unknown\n" + |
|
|
|
"1 - International\n" + |
|
|
|
"2 - National\n" + |
|
|
|
"3 - Network Specific\n" + |
|
|
|
"4 - Subscriber Number\n" + |
|
|
|
"5 - Alphanumeric\n" + |
|
|
|
"6 - Abbreviated", required = false) |
|
|
|
private Byte destinationTon; |
|
|
|
@ApiModelProperty(required = false) |
|
|
|
@ApiModelProperty(value = "Destination NPI (Numbering Plan Identification). 0 by default.\n" + |
|
|
|
"0 - Unknown\n" + |
|
|
|
"1 - ISDN/telephone numbering plan (E163/E164)\n" + |
|
|
|
"3 - Data numbering plan (X.121)\n" + |
|
|
|
"4 - Telex numbering plan (F.69)\n" + |
|
|
|
"6 - Land Mobile (E.212) =6\n" + |
|
|
|
"8 - National numbering plan\n" + |
|
|
|
"9 - Private numbering plan\n" + |
|
|
|
"10 - ERMES numbering plan (ETSI DE/PS 3 01-3)\n" + |
|
|
|
"13 - Internet (IP)\n" + |
|
|
|
"18 - WAP Client Id (to be defined by WAP Forum)", required = false) |
|
|
|
private Byte destinationNpi; |
|
|
|
@ApiModelProperty(required = false) |
|
|
|
|
|
|
|
@ApiModelProperty(value = "Address range", required = false) |
|
|
|
private String addressRange; |
|
|
|
|
|
|
|
@ApiModelProperty(allowableValues = "0-10,13-14", |
|
|
|
|