private String sendBind ( BindType bindType , String systemId , String password , String systemType , InterfaceVersion interfaceVersion , TypeOfNumber addrTon , NumberingPlanIndicator addrNpi , String addressRange , long timeout ) throws PDUException , ResponseTimeoutException , InvalidResponseException , NegativeResponseException , IOException { BindCommandTask task = new BindCommandTask ( pduSender ( ) , bindType , systemId , password , systemType , interfaceVersion , addrTon , addrNpi , addressRange ) ; BindResp resp = ( BindResp ) executeSendCommand ( task , timeout ) ; OptionalParameter . Sc_interface_version scVersion = resp . getOptionalParameter ( Sc_interface_version . class ) ; if ( scVersion != null ) { logger . debug ( "Other side reports SMPP interface version {}" , scVersion ) ; } logger . info ( "Bind response systemId '{}'" , resp . getSystemId ( ) ) ; return resp . getSystemId ( ) ; }
Sending bind .