Remove dynamic exceptions
[anna.git] / include / anna / diameter / helpers / ericsson / defines.hpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #ifndef anna_diameter_helpers_ericsson_defines_hpp
10 #define anna_diameter_helpers_ericsson_defines_hpp
11
12
13 // Local
14 #include <anna/diameter/helpers/defines.hpp>
15
16 // STL
17 #include <string>
18
19
20 /** Contextualized definitions (avp id) */
21 #define anna_diameter_helpers_define_avp(avpname,code)  anna_diameter_helpers_define_avp_in_context(avpname,code,ericsson)
22
23 /** Contextualized definitions (avp id and values) */
24 #define anna_diameter_helpers_define_avp_with_values(avpname,code)  anna_diameter_helpers_define_avp_with_values_in_context(avpname,code,ericsson)
25
26
27 namespace anna {
28
29 namespace diameter {
30
31 namespace helpers {
32
33 namespace ericsson {
34
35
36 /**
37 * Avps
38 */
39 anna_diameter_helpers_define_avp(SCAP_Currency_Code, 544);
40 anna_diameter_helpers_define_avp(SCAP_Subscription_Id, 553);
41 anna_diameter_helpers_define_avp(SCAP_Subscription_Id_Data, 554);
42 anna_diameter_helpers_define_avp_with_values(SCAP_Subscription_Id_Type, 555) {
43   enum v_ {
44     END_USER_MSISDN = 0,
45     END_USER_IMSI = 1,
46     END_USER_SIP_URL = 2,
47     END_USER_NAI = 3,
48     END_USER_PRIVATE = 4
49   };
50 };
51
52 anna_diameter_helpers_define_avp(SCAP_Original_Subscription_Id, 559);
53 anna_diameter_helpers_define_avp_with_values(SCAP_Abnormal_Termination_Reason, 600) {
54   enum v_ {
55     SERVING_ELEMENT_TERMINATION = 0,
56     CONNECTION_TO_USER_BROKEN = 1
57   };
58 };
59
60 anna_diameter_helpers_define_avp(SCAP_Granted_Service_Unit, 602);
61 anna_diameter_helpers_define_avp(SCAP_Cost, 603);
62 anna_diameter_helpers_define_avp(SCAP_Cost_Information, 604);
63 anna_diameter_helpers_define_avp(SCAP_Accounting_Correlation_Id, 605);
64 anna_diameter_helpers_define_avp(SCAP_Requested_Service_Unit, 606);
65 anna_diameter_helpers_define_avp(SCAP_Service_Parameter_Info, 607);
66 anna_diameter_helpers_define_avp_with_values(SCAP_Service_Parameter_Type, 608) {
67   enum v_ {
68     SERVICE_PROVIDER_ID = 0,
69     EXTENSION_NUMBER_1 = 1,
70     EXTENSION_NUMBER_2 = 2,
71     EXTENSION_NUMBER_3 = 3,
72     EXTENSION_NUMBER_4 = 4,
73     EXTENSION_TEXT = 5,
74     GPRS_QUALITY_OF_SERVICE = 6,
75     REDIRECTING_PARTY_NUMBER = 7,
76     ORIGINATING_LOCATION_INFORMATION = 8,
77     TERMINATING_LOCATION_INFORMATION = 9,
78     REGION_CHARGING_ORIGIN = 10,
79     SUBSCRIPTION_TYPE = 11,
80     SMS_DELIVERY_STATUS = 12,
81     DAYSOFWEEK_SPECIALDATES_TIMEOFDAY = 13,
82     TRAFFIC_CASE = 14,
83     DEDICATED_SUB_ACCOUNT = 15,
84     NUMBERLIST_CALLINGPARTYNUMBER = 16,
85     NUMBERLIST_CALLEDPARTYNUMBER = 17,
86     TELESERVICE_CODE = 18,
87     N_A = 19
88   };
89 };
90
91 anna_diameter_helpers_define_avp(SCAP_Service_Parameter_Value, 609);
92 anna_diameter_helpers_define_avp(SCAP_Event_Timestamp, 610);
93 anna_diameter_helpers_define_avp_with_values(SCAP_Unit_Type, 611) {
94   enum v_ {
95     SERVICE_CREDIT_TIME = 0,
96     SERVICE_CREDIT_VOLUME = 1,
97     SERVICE_CREDIT_EVENT = 2,
98     SERVICE_CREDIT_MONEY = 3
99   };
100 };
101
102 anna_diameter_helpers_define_avp(SCAP_Unit_Value, 612);
103 anna_diameter_helpers_define_avp(SCAP_Used_Service_Unit, 613);
104 anna_diameter_helpers_define_avp_with_values(SCAP_Requested_Action, 615) {
105   enum v_ {
106     DIRECT_DEBITING = 0,
107     REFUND_ACCOUNT = 1
108   };
109 };
110
111 anna_diameter_helpers_define_avp(SCAP_Exponent, 616);
112 anna_diameter_helpers_define_avp(SCAP_Value_Digits, 617);
113
114
115 /**
116 * Commands
117 */
118
119
120 }
121 }
122 }
123 }
124
125
126 #undef anna_diameter_helpers_define_avp
127 #undef anna_diameter_helpers_define_avp_with_values
128
129 #endif
130