~aleteoryx/muditaos

249e584a843e061f3ecbf2290f2562ab9c735c18 — Lefucjusz 2 years ago 3056cd6 pure_1.10.1
[MOS-1040] Add HNI codes for Egypt

Added HNI codes of operators from Egypt
to VoLTE allowed list.
A module-services/service-cellular/src/volte/ImsiParser_Egypt.hpp => module-services/service-cellular/src/volte/ImsiParser_Egypt.hpp +25 -0
@@ 0,0 1,25 @@
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include "ImsiParser.hpp"

namespace cellular::service
{
    struct ImsiParserEG : ImsiParser
    {
        explicit ImsiParserEG()
            : ImsiParser(
                  std::vector<std::string>{/* Orange */
                                           "60201",
                                           /* Vodafone */
                                           "60202",
                                           /* Etisalat */
                                           "60203",
                                           /* WE */
                                           "60204"},
                  SupportStatus::Beta)
        {}
    };
} // namespace cellular::service

M module-services/service-cellular/src/volte/VolteAllowedList.cpp => module-services/service-cellular/src/volte/VolteAllowedList.cpp +16 -1
@@ 4,7 4,13 @@
#include "VolteAllowedList.hpp"
#include "ImsiParser_Poland.hpp"
#include "ImsiParser_UnitedStates.hpp"
#include "ImsiParser_Netherlands.hpp"
#include "ImsiParser_Germany.hpp"
#include "ImsiParser_Denmark.hpp"
#include "ImsiParser_GreatBritain.hpp"
#include "ImsiParser_Canada.hpp"
#include "ImsiParser_Austria.hpp"
#include "ImsiParser_Egypt.hpp"

#include <log/log.hpp>
#include <magic_enum.hpp>


@@ 49,6 55,15 @@ namespace cellular::service

    void VolteAllowedList::buildList()
    {
        pushBack(allowedList, ImsiParserPL(), ImsiParserUS(), ImsiParserDE());
        pushBack(allowedList,
                 ImsiParserPL(),
                 ImsiParserUS(),
                 ImsiParserDK(),
                 ImsiParserDE(),
                 ImsiParserNL(),
                 ImsiParserGB(),
                 ImsiParserCA(),
                 ImsiParserAT(),
                 ImsiParserEG());
    }
} // namespace cellular::service