Skip to content

Commit

Permalink
Add outbind info, ton and npi in session structures
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-ciurel authored and razvancrainea committed Jan 23, 2019
1 parent 1e71682 commit 644512a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion modules/proto_smpp/proto_smpp.h
Expand Up @@ -119,6 +119,11 @@ typedef smpp_bind_receiver_resp_t smpp_bind_transmitter_resp_t;
typedef smpp_bind_receiver_t smpp_bind_transceiver_t;
typedef smpp_bind_receiver_resp_t smpp_bind_transceiver_resp_t;

typedef struct {
char system_id[16];
char password[9];
} smpp_outbind_t;

typedef struct {
char service_type[6];
uint8_t source_addr_ton;
Expand Down Expand Up @@ -189,10 +194,15 @@ typedef struct smpp_session {
smpp_bind_receiver_t receiver;
smpp_bind_transmitter_t trasmitter;
smpp_bind_transceiver_t transceiver;
smpp_outbind_t outbind;
} bind;

struct smpp_session *next;
uint8_t source_addr_ton;
uint8_t source_addr_npi;
uint8_t dest_addr_ton;
uint8_t dest_addr_npi;

struct smpp_session *next;
} smpp_session_t;

#endif

0 comments on commit 644512a

Please sign in to comment.