Java 请注明“;编号计划指示器“;在SMSLib JSMPPGateway中
使用SMSLib(JSMPPGateway)连接到SMPP服务器时,如何指定“编号计划指示器” 这是我当前的JSMPPGateway初始化:Java 请注明“;编号计划指示器“;在SMSLib JSMPPGateway中,java,smslib,jsmpp,Java,Smslib,Jsmpp,使用SMSLib(JSMPPGateway)连接到SMPP服务器时,如何指定“编号计划指示器” 这是我当前的JSMPPGateway初始化: gateway = new JSMPPGateway(systemId, ip, port, new BindAttributes(username, password, "smpp_1", BindType.TRANSCEIVER)); 问题是我无法连接到网关: IOException: java.io.IOException: Receive neg
gateway = new JSMPPGateway(systemId, ip, port, new BindAttributes(username, password, "smpp_1", BindType.TRANSCEIVER));
问题是我无法连接到网关:
IOException: java.io.IOException:
Receive negative bind response: Negative response 0000000f found
我的提供者(SMPP服务器的所有者)告诉我,我没有使用正确的编号计划指示器如何设置该参数?
Set the values of NPI,TON values specified by SMSC in Address params.
例:
网关=新的JSMPPGateway(系统ID、ip、端口、新的BindAttributes(用户名、密码、“smpp_1”、BindType.收发器、新地址(Address.TypeOfNumber.INTERNATIONAL、Address.NumberingPlanIndicator.NATIONAL)) 报价来自哪里?因为我的JSMPPConstructor不会接受第四个参数,BindAttributesHanks也不会接受!,结果是:gateway.setSourceAddress(新地址(TypeOfNumber.UNKNOWN,NumberingPlanIndicator.ISDN));