node-smpp icon indicating copy to clipboard operation
node-smpp copied to clipboard

Error while connecting to server PDU_STATUS 15

Open touhamiyacine opened this issue 1 year ago • 3 comments

hello i am trying to connect to smpp and i got this error

PDU { command_length: 16, command_id: 2147483657, command_status: 15, sequence_number: 1, command: 'bind_transceiver_resp' } the same parameters work on another app which is developed with java netbeans

i try to develop app with new tech nodejs and probleming is not solvinf may be i should ad system_type="SMPP" but still not work

const smpp = require('smpp'); const session = new smpp.Session({host: '********', port: ***}); let isConnected = false session.on('connect', () => { isConnected = true; console.log('is connected') session.bind_transceiver({ system_id: '', password: '',

}, (pdu) => { if (pdu.command_status == 0) { console.log('Successfully bound') } else { console.log(pdu) }

}) })

session.on('error', error => { console.log('smpp error', error)
isConnected = false; });

touhamiyacine avatar Sep 06 '23 14:09 touhamiyacine

Hi you failed to bind to smsc provider better to ask smsc provider for the reason when i had same error it was wrong smpp protocol version(interface_version) in my params, default v5.0, i set manually 3.4 and it solve my problem

dovhanrg avatar Sep 15 '23 07:09 dovhanrg

yes , problem solved thank you (y)

touhamiyacine avatar Sep 20 '23 11:09 touhamiyacine

@touhamiyacine this issue can be closed since you have got your answer.

elhananjair avatar Sep 23 '23 06:09 elhananjair