Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while connecting to server PDU_STATUS 15 #239

Open
touhamiyacine opened this issue Sep 6, 2023 · 3 comments
Open

Error while connecting to server PDU_STATUS 15 #239

touhamiyacine opened this issue Sep 6, 2023 · 3 comments

Comments

@touhamiyacine
Copy link

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

@dovhanrg
Copy link

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

@touhamiyacine
Copy link
Author

yes , problem solved thank you (y)

@elhananjair
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants