Skip to content

Commit

Permalink
proto_smpp: add unbind handler
Browse files Browse the repository at this point in the history
Thanks go to Slava Bendersky for reporting this in ticket #1728
  • Loading branch information
razvancrainea committed Jul 5, 2019
1 parent ca81c50 commit ab063d3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/proto_smpp/smpp.c
Expand Up @@ -910,6 +910,12 @@ static void handle_unbind_resp_cmd(smpp_header_t *header, char *buffer,
LM_DBG("Received unbind_resp command\n");
}

static void handle_unbind_cmd(smpp_header_t *header, char *buffer,
smpp_session_t *session)
{
LM_DBG("Received unbind command\n");
}

static void handle_bind_transceiver_cmd(smpp_header_t *header, char *buffer,
smpp_session_t *session)
{
Expand Down Expand Up @@ -1003,6 +1009,9 @@ void handle_smpp_msg(char *buffer, smpp_session_t *session, struct receive_info
case DELIVER_SM_RESP_CID:
handle_deliver_sm_resp_cmd(&header, buffer, session, rcv);
break;
case UNBIND_CID:
handle_unbind_cmd(&header, buffer, session);
break;
case UNBIND_RESP_CID:
handle_unbind_resp_cmd(&header, buffer, session);
break;
Expand Down

0 comments on commit ab063d3

Please sign in to comment.