diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-02-08 15:20:48 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-02-20 11:35:56 +0100 |
commit | ca114432be6c9e108f0f3182c564d264b78669e0 (patch) | |
tree | 72b76cab760993bd27025885883854264a1147e4 /openbsc/include/openbsc/gsm_04_11.h | |
parent | 6ab5d4f861c05ef57cde423cf2ddf0699940b4fc (diff) |
sms: Increment the RP Message Reference for each transaction
Each RP-DATA should have a unique msg reference. Currently 42 is
used for all of these. Remember the last reference we used and
increment it on the next SMS. Do not track if the reference is
still in use a clash is a lot less likely now. First unless SMPP
is used only one SMS is delivered at a time, second the transaction
space is a lot smaller than the one for the reference.
Diffstat (limited to 'openbsc/include/openbsc/gsm_04_11.h')
-rw-r--r-- | openbsc/include/openbsc/gsm_04_11.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_04_11.h b/openbsc/include/openbsc/gsm_04_11.h index 72b694825..00c3a19fa 100644 --- a/openbsc/include/openbsc/gsm_04_11.h +++ b/openbsc/include/openbsc/gsm_04_11.h @@ -37,4 +37,6 @@ int gsm411_send_sms_subscr(struct gsm_subscriber *subscr, int gsm411_send_sms(struct gsm_subscriber_connection *conn, struct gsm_sms *sms); void gsm411_sapi_n_reject(struct gsm_subscriber_connection *conn); + +uint8_t sms_next_rp_msg_ref(struct gsm_subscriber_connection *conn); #endif |