310.6. Spring Boot Auto-Configuration
组件支持 38 选项,它们如下所列。
| 名称 | 描述 | 默认 | 类型 |
|---|---|---|---|
| camel.component.smpp.configuration.address-range | 您可以在 SMPP 3.4 规范的 5.2.7 节中定义的 SmppConsumer 指定地址范围。SmppConsumer 将仅接收来自 SMSC 的消息,该地址以这个范围内的地址(MSISDN 或 IP 地址)为目标。 | 字符串 | |
| camel.component.smpp.configuration.alphabet | 根据 SMPP 3.4 规范定义数据编码,第 5.2.19. 0: SMSC 默认 Alphabet 4: 8 位 Alphabet 8: UCS2 Alphabet | Byte | |
| camel.component.smpp.configuration.data-coding | 根据 SMPP 3.4 规范定义数据编码,第 5.2.19 节。数据编码示例有:0: SMSC 默认 Alphabet 3:拉号 1 (ISO-8859-1) 4: 10et unspecified (8-bit binary) 8: UCS2 (ISO/IEC-10646) 13: Extended Kanji JIS (X 0212-1990) | Byte | |
| camel.component.smpp.configuration.dest-addr | 定义目标 SME 地址。对于移动终止的消息,这是接收者 MS 的目录号。仅适用于 SubmitSm、SubmitMulti、CancelSm 和 DataSm。 | 1717 | 字符串 |
| camel.component.smpp.configuration.dest-addr-npi | 定义 SME 目标地址参数中使用的数字(TON)类型。仅适用于 SubmitSm、SubmitMulti、CancelSm 和 DataSm。以下 NPI 值被定义:0: Unknown 1: ISDN (E163/E164) 2: Data (X.121) 3: Telex (F.69) 6: Land Mobile (E.212) 8: National 9: Private 10: ERMES 13: Internet (IP) 18: WAP Client Id (至 WAP Forum 定义) | Byte | |
| camel.component.smpp.configuration.dest-addr-ton | 定义 SME 目标地址参数中使用的数字(TON)类型。仅适用于 SubmitSm、SubmitMulti、CancelSm 和 DataSm。以下 TON 值被定义:0: Unknown 1: International 2: National 3: Network Specific 4: Subscriber Number 5: Alphanumeric 6: Abbreviated | Byte | |
| camel.component.smpp.configuration.encoding | 定义简短消息用户数据的编码方案。只适用于 SubmitSm、replaceSm 和 SubmitMulti。 | ISO-8859-1 | 字符串 |
| camel.component.smpp.configuration.enquire-link-timer | 定义信心检查之间以毫秒为单位的时间间隔。信心检查用于测试 ESME 和 SMSC 之间的通信路径。 | 5000 | 整数 |
| camel.component.smpp.configuration.host | 要使用的 SMSC 服务器的主机名。 | localhost | 字符串 |
| camel.component.smpp.configuration.http-proxy-host | 如果您需要通过 HTTP 代理传输 SMPP,请将此属性设置为 HTTP 代理的主机名或 ip 地址。 | 字符串 | |
| camel.component.smpp.configuration.http-proxy-password | 如果您的 HTTP 代理需要基本身份验证,请将此属性设置为 HTTP 代理所需的密码。 | 字符串 | |
| camel.component.smpp.configuration.http-proxy-port | 如果您需要通过 HTTP 代理隧道 SMPP,请将此属性设置为 HTTP 代理的端口。 | 3128 | 整数 |
| camel.component.smpp.configuration.http-proxy-username | 如果您的 HTTP 代理需要基本身份验证,请将此属性设置为 HTTP 代理所需的用户名。 | 字符串 | |
| camel.component.smpp.configuration.initial-reconnect-delay | 在连接丢失后,定义消费者/生产者尝试重新连接 SMSC 后的初始延迟(毫秒)。 | 5000 | Long |
| camel.component.smpp.configuration.lazy-session-creation | 当启动 Camel 制作者时,如果 SMSC 不可用,则会话可以被创建以避免异常。Camel 将检查第一个交换的消息标题 'CamelSmppSystemId' 和 'CamelSmppPassword'。如果存在,Camel 将使用这些数据连接到 SMSC。 | false | 布尔值 |
| camel.component.smpp.configuration.max-reconnect | 如果 SMSC 返回负绑定响应,定义重新连接到 SMSC 的最大尝试次数 | 2147483647 | 整数 |
| camel.component.smpp.configuration.numbering-plan-indicator | 定义 SME 中使用的数字计划指示符(NPI)。以下 NPI 值被定义:0: Unknown 1: ISDN (E163/E164) 2: Data (X.121) 3: Telex (F.69) 6: Land Mobile (E.212) 8: National 9: Private 10: ERMES 13: Internet (IP) 18: WAP Client Id (至 WAP Forum 定义) | Byte | |
| camel.component.smpp.configuration.password | 用于连接 SMSC 服务器的密码。 | 字符串 | |
| camel.component.smpp.configuration.port | 要使用的 SMSC 服务器的端口号。 | 2775 | 整数 |
| camel.component.smpp.configuration.priority-flag | 允许原始 SME 为短消息分配优先级级别。仅适用于 SubmitSm 和 SubmitMulti.支持四个级别:0 级别 0 (最低)优先级 1:级别 1 优先级 2:级别 2 优先级 3:级别 3 (最高)优先级 | Byte | |
| camel.component.smpp.configuration.protocol-id | 协议 ID | Byte | |
| camel.component.smpp.configuration.proxy-headers | 这些标头将在建立连接时传递给代理服务器。 | map | |
| camel.component.smpp.configuration.reconnect-delay | 如果与 SMSC 的连接丢失,且之前没有成功,则定义了重新连接尝试间隔(毫秒)。 | 5000 | Long |
| camel.component.smpp.configuration.registered-delivery | 用于请求 SMSC 收据和/或 SME 发起的确认信息。定义了以下值:0: No SMSC 交付接收请求。1:SMSC 交付收据请求,最终交付结果是成功或失败。2:发送结果请求的交付结果是交付失败的位置。 | Byte | |
| camel.component.smpp.configuration.replace-if-present-flag | 用于请求 SMSC 来替换之前提交的消息,该消息仍在进行等待发送。SMSC 将替换提供的源地址、目标地址和服务类型的现有消息,与新消息中的相同字段匹配。以下替换 if present 标记值如下: 0: Don't replace 1: replace | Byte | |
| camel.component.smpp.configuration.service-type | 服务类型参数可用于指示与消息关联的 SMS Application 服务。以下通用 service_types 被定义:CMT: Cellular Messaging CPT: Cellular Paging VMN: Voice Mail Notification VMA: Voice Mail Alerting WAP: Wireless Application Protocol USSD: Unstructured Supplementary Services Data | CMT | 字符串 |
| camel.component.smpp.configuration.session-state-listener | 您可以参考 registry 中的 org.jsmpp.session.SessionStateListener,以在会话状态发生变化时接收回调。 | SessionStateListener | |
| camel.component.smpp.configuration.source-addr | 定义源自此消息的 SME (Short Message Entity)地址。 | 1616 | 字符串 |
| camel.component.smpp.configuration.source-addr-npi | 定义 SME originator 地址参数中使用的数字计划指示符(NPI)。以下 NPI 值被定义:0: Unknown 1: ISDN (E163/E164) 2: Data (X.121) 3: Telex (F.69) 6: Land Mobile (E.212) 8: National 9: Private 10: ERMES 13: Internet (IP) 18: WAP Client Id (至 WAP Forum 定义) | Byte | |
| camel.component.smpp.configuration.source-addr-ton | 定义在 SME originator 地址参数中使用的数字类型(TON)。以下 TON 值被定义:0: Unknown 1: International 2: National 3: Network Specific 4: Subscriber Number 5: Alphanumeric 6: Abbreviated | Byte | |
| camel.component.smpp.configuration.splitting-policy | 您可以为处理长消息指定一个策略:ALLOW - 默认,每个消息 TRUNCATE - 较长的消息会分割为 140 字节,并且只有第一个片段才会发送到 SMSC。某些载体会丢弃后续的片段,从而减少了对 SMPP 连接发送部分永不发送的消息的负载。REJECT - 如果需要分割消息,则通过 SMPP NegativeResponseException 被拒绝,以及代码表示消息的原因太长。 | SmppSplittingPolicy | |
| camel.component.smpp.configuration.system-id | 用于连接到 SMSC 服务器的系统 ID (用户名)。 | smppclient | 字符串 |
| camel.component.smpp.configuration.system-type | 这个参数用于对绑定到 SMSC (max. 13 个字符)的 ESME (外部消息实体)的类型进行分类。 | cp | 字符串 |
| camel.component.smpp.configuration.transaction-timer | 定义事务后允许的最长期限,之后 SMPP 实体可能假定会话不再活跃。这个计时器可能会在通信 SMPP 实体(如 SMSC 或 ESME)上处于活跃状态。 | 10000 | 整数 |
| camel.component.smpp.configuration.type-of-number | 定义要在 SME 中使用的数字类型(TON)。以下 TON 值被定义:0: Unknown 1: International 2: National 3: Network Specific 4: Subscriber Number 5: Alphanumeric 6: Abbreviated | Byte | |
| camel.component.smpp.configuration.using-s-s-l | 是否使用带有 smpps 协议的 SSL | false | 布尔值 |
| camel.component.smpp.enabled | 启用 smpp 组件 | true | 布尔值 |
| camel.component.smpp.resolve-property-placeholders | 启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。 | true | 布尔值 |
您可以像这样一样多地使用这些选项。
smpp://smppclient@localhost:2775?password=password&enquireLinkTimer=3000&transactionTimer=5000&systemType=consumer
smpp://smppclient@localhost:2775?password=password&enquireLinkTimer=3000&transactionTimer=5000&systemType=consumer