aboutsummaryrefslogtreecommitdiffstats
path: root/src/gsm
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-05-27 00:53:54 +0700
committerHarald Welte <laforge@gnumonks.org>2019-05-29 08:48:46 +0000
commit1dc82643c549a27fb8851ba64e9a0f621f5aea00 (patch)
tree3a55ba100c646815e47d29b47e635e39278eb43a /src/gsm
parentbdf70347fb779e3da5dcaccde0c1096547d4908d (diff)
gsm48_encode_bcd_number(): clarify optional LHV header initialization
Diffstat (limited to 'src/gsm')
-rw-r--r--src/gsm/gsm48_ie.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gsm/gsm48_ie.c b/src/gsm/gsm48_ie.c
index 688698db..59f931b2 100644
--- a/src/gsm/gsm48_ie.c
+++ b/src/gsm/gsm48_ie.c
@@ -132,7 +132,13 @@ static int asc_to_bcd(const char asc)
* \param[in] max_len Maximum Length of \a bcd_lv
* \param[in] h_len Length of an optional heder between L and V portion
* \param[in] input phone number as 0-terminated ASCII
- * \returns number of bytes used in \a bcd_lv */
+ * \returns number of bytes used in \a bcd_lv
+ *
+ * Depending on a context (e.g. called or calling party BCD number), the
+ * optional header between L and V parts can contain TON (Type Of Number),
+ * NPI (Numbering Plan Indication), presentation or screening indicator.
+ * NOTE: it is up to the caller to initialize this header!
+ */
int gsm48_encode_bcd_number(uint8_t *bcd_lv, uint8_t max_len,
int h_len, const char *input)
{