Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/314.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 请注明“;编号计划指示器“;在SMSLib JSMPPGateway中_Java_Smslib_Jsmpp - Fatal编程技术网

Java 请注明“;编号计划指示器“;在SMSLib 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

使用SMSLib(JSMPPGateway)连接到SMPP服务器时,如何指定“编号计划指示器”

这是我当前的JSMPPGateway初始化:

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));