From 1dc82643c549a27fb8851ba64e9a0f621f5aea00 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Mon, 27 May 2019 00:53:54 +0700 Subject: gsm48_encode_bcd_number(): clarify optional LHV header initialization Change-Id: Iafd911dd55691b3715391e3899cd6971245c8d7f --- src/gsm/gsm48_ie.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gsm') 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) { -- cgit v1.2.3