First commit
[anna.git] / include / anna / diameter / helpers / nokia / defines.hpp
1 // ANNA - Anna is Not 'N' Anymore
2 //
3 // (c) Copyright 2005-2014 Eduardo Ramos Testillano & Francisco Ruiz Rayo
4 //
5 // https://bitbucket.org/testillano/anna
6 //
7 // Redistribution and use in source and binary forms, with or without
8 // modification, are permitted provided that the following conditions
9 // are met:
10 //
11 //     * Redistributions of source code must retain the above copyright
12 // notice, this list of conditions and the following disclaimer.
13 //     * Redistributions in binary form must reproduce the above
14 // copyright notice, this list of conditions and the following disclaimer
15 // in the documentation and/or other materials provided with the
16 // distribution.
17 //     * Neither the name of Google Inc. nor the names of its
18 // contributors may be used to endorse or promote products derived from
19 // this software without specific prior written permission.
20 //
21 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 //
33 // Authors: eduardo.ramos.testillano@gmail.com
34 //          cisco.tierra@gmail.com
35
36
37 #ifndef anna_diameter_helpers_nokia_defines_hpp
38 #define anna_diameter_helpers_nokia_defines_hpp
39
40
41 // Local
42 #include <anna/diameter/helpers/defines.hpp>
43
44 // STL
45 #include <string>
46
47
48 /** Contextualized definitions (avp id) */
49 #define anna_diameter_helpers_define_avp(avpname,code)  anna_diameter_helpers_define_avp_in_context(avpname,code,nokia)
50
51 /** Contextualized definitions (avp id and values) */
52 #define anna_diameter_helpers_define_avp_with_values(avpname,code)  anna_diameter_helpers_define_avp_with_values_in_context(avpname,code,nokia)
53
54
55 namespace anna {
56
57 namespace diameter {
58
59 namespace helpers {
60
61 namespace nokia {
62
63
64 /**
65 * Avps
66 */
67 anna_diameter_helpers_define_avp(Nokia_Access_Method, 5100);
68 anna_diameter_helpers_define_avp(Nokia_IMS_Media_Component_Id, 5101);
69 anna_diameter_helpers_define_avp_with_values(Nokia_Reporting_Reason, 5102) {
70   enum v_ {
71     QHT = 1,
72     TERMINATED = 2,
73     VALIDITY_TIME = 3,
74     CHANGED_QOS = 4,
75     CHANGED_SGSN = 5,
76     CHANGED_RAT = 6,
77     FORCED_REAUTHORIZATION = 7,
78     CREDIT_POOL_EXHAUSTED = 8,
79     EXHAUSTED_TIME = 9,
80     EXHAUSTED_TOTAL_OCTETS = 10,
81     EXHAUSTED_INPUT_OCTETS = 11,
82     EXHAUSTED_OUTPUT_OCTETS = 12,
83     EXHAUSTED_SERVICE_SPECIFIC_UNITS = 13
84   };
85 };
86
87 anna_diameter_helpers_define_avp(Time_Of_First_Usage, 5103);
88 anna_diameter_helpers_define_avp(Time_Of_Last_Usage, 5104);
89 anna_diameter_helpers_define_avp(Session_Start_Indicator, 5105);
90 anna_diameter_helpers_define_avp(Rule_Base_Id, 5106);
91 anna_diameter_helpers_define_avp(Trigger, 5107);
92 anna_diameter_helpers_define_avp_with_values(Trigger_Type, 5108) {
93   enum v_ {
94     CHANGE_IN_SGSN_IP_ADDRESS = 1,
95     CHANGE_IN_QOS_ANY = 2,
96     CHANGE_IN_RAT = 3
97   };
98 };
99
100 anna_diameter_helpers_define_avp(Quota_Holding_Time, 5110);
101 anna_diameter_helpers_define_avp(Default_Quota, 5111);
102
103
104 /**
105 * Commands
106 */
107
108
109 }
110 }
111 }
112 }
113
114
115 #undef anna_diameter_helpers_define_avp
116 #undef anna_diameter_helpers_define_avp_with_values
117
118 #endif
119