* @param session which should be bound to the SMSC as a transmitter
* @throws MessageException if there was a problem binding to the SMSC
*/
protected void bind(Session session) throws MessageException {
BindRequest request = new BindTransmitter();
BindResponse response;
LOGGER.info("logica-smpp-version-is",
new Byte(request.getInterfaceVersion()));
// Send the request.
if(LOGGER.isDebugEnabled()) {
LOGGER.debug("Bind request " + request.debugString());
}
try {
request.setSystemId(SMSCUser);
request.setPassword(SMSCPassword);
request.setSystemType(null);
request.setInterfaceVersion((byte) 0x34);
if("async".equals(SMSCBindType)){
response = session.bind(request, new SMSCResponseListener());
} else {
response = session.bind(request);