Skip to content

How to Unbind the connection when we received the smpp session state as closed #54

Description

@rahultokase

Hi

Let me try to explain the problem we are facing right now.
Our SMSC is allowing only one bind when we we try to have more than one bind they are throwing negative response with code 05.

Now the problem is

We already established the connection with SMSC i.e. BOUND_TRX
now somehow we have got the momentary VPN issue and our state change listener received the closed state.
In our code whenever we receive the close state we try to re-connect and bind but as SMSC has not timeout the connection because there timeout is 2 minute. so our connection is in already bind state from there side and because of this they immediately throws negative response to our connect and bind state with code 05 i.e. only one bind is allowed.

Now to avoid this problem we should call the unbind and close method but the question is when should we call this. unbindAndClose method do not send unbind request when the session state is closed. So what should we do on receive of close state ?

Please help us as this is major issue we are struggling with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions