diff options
Diffstat (limited to 'src/osmo-bsc/gsm_04_08_utils.c')
-rw-r--r-- | src/osmo-bsc/gsm_04_08_utils.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/osmo-bsc/gsm_04_08_utils.c b/src/osmo-bsc/gsm_04_08_utils.c index 5bfdf97ff..e9aeb550f 100644 --- a/src/osmo-bsc/gsm_04_08_utils.c +++ b/src/osmo-bsc/gsm_04_08_utils.c @@ -703,3 +703,13 @@ int gsm48_paging_extract_mi(struct gsm48_pag_resp *resp, int length, return gsm48_extract_mi(classmark2_lv, length - classmark_offset, mi_string, mi_type); } + +/* As per TS 03.03 Section 2.2, the IMSI has 'not more than 15 digits' */ +uint64_t str_to_imsi(const char *imsi_str) +{ + uint64_t ret; + + ret = strtoull(imsi_str, NULL, 10); + + return ret; +} |