summaryrefslogtreecommitdiffstats
path: root/src/gsm
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2019-02-04 16:42:28 +0100
committerHarald Welte <laforge@gnumonks.org>2019-02-05 15:11:36 +0000
commit74c4c4e91a4270f19cdb20164101fc1bd99eda37 (patch)
tree1d99cb76ea814114ef9383d5815bad2ab2405d4f /src/gsm
parentb0708d3e769851093ef633844d894b683a3c0341 (diff)
gsm0808: Add CSFB indication IE to BSSMAP CLEAR COMMAND
When a call that was established in a CSFB context ends the CLEAR COMMAND that is send from the BSC to the MSC should contain a CSFB indication IE, which consists of just the IE byte itsslef. This additional IE tells the BSC to include other CSFB related IEs into the RR Release message. Change-Id: Id8a75e1da2d5f520064666e4ee413d1c91da6ae3 Related: OS#3778
Diffstat (limited to 'src/gsm')
-rw-r--r--src/gsm/gsm0808.c16
-rw-r--r--src/gsm/libosmogsm.map1
2 files changed, 17 insertions, 0 deletions
diff --git a/src/gsm/gsm0808.c b/src/gsm/gsm0808.c
index fce8e0a8..29072551 100644
--- a/src/gsm/gsm0808.c
+++ b/src/gsm/gsm0808.c
@@ -195,6 +195,22 @@ struct msgb *gsm0808_create_clear_command(uint8_t cause)
return msg;
}
+/*! Create BSSMAP Clear Command message.
+ * \param[in] cause TS 08.08 cause value.
+ * \param[in] csfb_ind indicate that the call was established in an CSFB context.
+ * \returns callee-allocated msgb with BSSMAP Clear Command message. */
+struct msgb *gsm0808_create_clear_command2(uint8_t cause, bool csfb_ind)
+{
+ struct msgb *msg = gsm0808_create_clear_command(cause);
+ if (!msg)
+ return NULL;
+
+ if (csfb_ind)
+ msgb_v_put(msg, GSM0808_IE_CSFB_INDICATION);
+
+ return msg;
+}
+
/*! Create BSSMAP Cipher Mode Command message
* \param[in] ei Mandatory Encryption Information
* \param[in] cipher_response_mode optional 1-byte Cipher Response Mode
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map
index 3cfe6a7c..602c7a63 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -164,6 +164,7 @@ gsm0808_get_cipher_reject_cause;
gsm0808_create_classmark_request;
gsm0808_create_classmark_update;
gsm0808_create_clear_command;
+gsm0808_create_clear_command2;
gsm0808_create_clear_complete;
gsm0808_create_clear_rqst;
gsm0808_create_paging;