ANNA Suite
2020b
Multipurpose development suite for Telco applications
|
#include <defines.hpp>
Public Member Functions | |
bool | isOdd () |
bool | isEven () |
bool | NatureOfAddress_SubscriberNumber () |
bool | NatureOfAddress_Unknown () |
bool | NatureOfAddress_NationalNumber () |
bool | NatureOfAddress_InternationalNumber () |
bool | InternalNetworkNumber_RoutingToInternalNetworkNumberAllowed () |
bool | InternalNetworkNumber_RoutingToInternalNetworkNumberNotAllowed () |
bool | NumberIncomplete_Complete () |
bool | NumberIncomplete_Incomplete () |
bool | NumberingPlan_ISDN () |
bool | NumberingPlan_Data () |
bool | NumberingPlan_Telex () |
bool | AddressPresentationRestricted_PresentationAllowed () |
bool | AddressPresentationRestricted_PresentationRestricted () |
bool | AddressPresentationRestricted_AddressNotAvailable () |
bool | AddressPresentationRestricted_ReservedForRestrictionByTheNetwork () |
bool | Screening_UserProvidedVerifiedAndPassed () |
bool | Screening_NetworkProvided () |
void | reset () |
std::string | asString (bool calledOrCalling) |
Public Attributes | |
short | OddEven |
short | NatureOfAddress |
short | InternalNetworkNumber |
short | NumberIncomplete |
short | NumberingPlan |
short | AddressPresentationRestricted |
short | Screening |
std::string | Digits |
Struct for called and calling party number from Q763 Signalling System No. 7 – ISDN user part formats and codes
Called Party Number 8 7 6 5 4 3 2 1 |------—|------—|------—|------—|------—|------—|------—|------—| 1 | O/E | Nature of address indicator | |------—|------—|------—|------—|------—|------—|------—|------—| 2 | INN | Numbering plan indicator | spare | |------—|------—|------—|------—|------—|------—|------—|------—| 3 | 2nd address signal | 1st address signal | |------—|------—|------—|------—|------—|------—|------—|------—| ... ... ... ... ... ... ... ... ... |------—|------—|------—|------—|------—|------—|------—|------—| m | Filler (if necessary) | nth address signal | |------—|------—|------—|------—|------—|------—|------—|------—|
Calling Party Number 8 7 6 5 4 3 2 1 |------—|------—|------—|------—|------—|------—|------—|------—| 1 | O/E | Nature of address indicator | |------—|------—|------—|------—|------—|------—|------—|------—| 2 | NI | Numbering plan indicator |Add.Pres.Restr.Ind | Screening Ind | |------—|------—|------—|------—|------—|------—|------—|------—| 3 | 2nd address signal | 1st address signal | |------—|------—|------—|------—|------—|------—|------—|------—| ... ... ... ... ... ... ... ... ... |------—|------—|------—|------—|------—|------—|------—|------—| m | Filler (if necessary) | nth address signal | |------—|------—|------—|------—|------—|------—|------—|------—|
|
inline |
Return true when Address Presentation Restricted is 'address not available (Note 1) (national use)'
|
inline |
Return true when Address Presentation Restricted is 'presentation allowed'
|
inline |
Return true when Address Presentation Restricted is 'presentation restricted'
|
inline |
Return true when Address Presentation Restricted is 'reserved for restriction by the network'
|
inline |
Class string representation
calledOrCalling | Boolean about being called party number or calling one |
|
inline |
Return true when Internal Network Number Indicator is 'routing to internal network number allowed'
|
inline |
Return true when Internal Network Number Indicator is 'routing to internal network number not allowed'
|
inline |
Return true when have even number of digits
|
inline |
Return true when have odd number of digits
|
inline |
Return true when Nature Of Address is 'international number'
|
inline |
Return true when Nature Of Address is 'national (significant) number (national use)'
|
inline |
Return true when Nature Of Address is 'subscriber number (national use)'
|
inline |
Return true when Nature Of Address is 'unknown (national use)'
|
inline |
Return true when Number Incomplete Indicator is 'complete'
|
inline |
Return true when Number Incomplete Indicator is 'incomplete'
|
inline |
Return true when Numbering Plan is 'Data numbering plan (ITU-T Recommendation X.121) (national use)'
|
inline |
Return true when Numbering Plan is 'ISDN (Telephony) numbering plan (ITU-T Recommendation E.164)'
|
inline |
Return true when Numbering Plan is 'Telex numbering plan (ITU-T Recommendation F.69) (national use)'
|
inline |
|
inline |
Return true when Screening is 'network provided'
|
inline |
Return true when Screening is 'user provided, verified and passed'
short anna::isup_number_t::AddressPresentationRestricted |
Address presentation restricted indicator (only for calling party number) 0 0 presentation allowed 0 1 presentation restricted 1 0 address not available (Note 1) (national use) 1 1 reserved for restriction by the network NOTE 1 – If the parameter is included and the address presentation restricted indicator indicates address not available, octets 3 to n are omitted, the subfields in items 'OddEven', 'NatureOfAddress', 'NumberIncomplete' and 'NumberingPlan' are coded with 0's, and the subfield 'Screening' is coded with 11.
std::string anna::isup_number_t::Digits |
BCD digit Address signal 0 0 0 0 digit 0 0 0 0 1 digit 1 0 0 1 0 digit 2 0 0 1 1 digit 3 0 1 0 0 digit 4 0 1 0 1 digit 5 0 1 1 0 digit 6 0 1 1 1 digit 7 1 0 0 0 digit 8 1 0 0 1 digit 9 1 0 1 0 spare 1 0 1 1 code 11 1 1 0 0 code 12 1 1 0 1 spare 1 1 1 0 spare 1 1 1 1 ST (for called party number, spare in calling party number) The most significant address signal is sent first. Subsequent address signals are sent in successive 4-bit fields.
Filler: In case of an odd number of address signals, the filler code 0000 is inserted after the last address signal.
short anna::isup_number_t::InternalNetworkNumber |
Internal Network Number indicator (INN) (only for called party number) 0 routing to internal network number allowed 1 routing to internal network number not allowed
short anna::isup_number_t::NatureOfAddress |
Nature of address indicator 0 0 0 0 0 0 0 spare 0 0 0 0 0 0 1 subscriber number (national use) 0 0 0 0 0 1 0 unknown (national use) 0 0 0 0 0 1 1 national (significant) number (national use) 0 0 0 0 1 0 0 international number
Called: 0 0 0 0 1 0 1 network-specific number (national use) ITU-T Q.763 (12/1999) 23 0 0 0 0 1 1 0 network routing number in national (significant) number format (national use) 0 0 0 0 1 1 1 network routing number in network-specific number format (national use) 0 0 0 1 0 0 0 network routing number concatenated with Called Directory Number (national use) 1 1 0 1 1 1 1 to 0 0 0 1 0 0 1 spare 1 1 1 1 1 1 0 to 1 1 1 0 0 0 0 reserved for national use 1 1 1 1 1 1 1 spare
Calling: 0 0 0 0 1 1 0 to 1 1 0 1 1 1 1 spare 1 1 1 0 0 0 0 to 1 1 1 1 1 1 0 reserved for national use 1 1 1 1 1 1 1 spare
short anna::isup_number_t::NumberIncomplete |
Number Incomplete indicator (NI) (only for calling party number) 0 complete 1 incomplete
short anna::isup_number_t::NumberingPlan |
Numbering plan indicator 0 0 0 spare 0 0 1 ISDN (Telephony) numbering plan (ITU-T Recommendation E.164) 0 1 0 spare 0 1 1 Data numbering plan (ITU-T Recommendation X.121) (national use) 1 0 0 Telex numbering plan (ITU-T Recommendation F.69) (national use) 1 0 1 reserved for national use 1 1 0 reserved for national use 1 1 1 spare
short anna::isup_number_t::OddEven |
odd/even (1/0) indicator
short anna::isup_number_t::Screening |
Screening indicator (only for calling party number) 0 0 reserved (Note 2) 0 1 user provided, verified and passed 1 0 reserved (Note 2) 1 1 network provided NOTE 2 – Code 00 and 10 are reserved for "user provided, not verified" and "user provided, verified and failed" respectively. Codes 00 and 10 are for national use.