1 /*
2  * Copyright (C) 2012 Smile Communications, jason.penton@smilecoms.com
3  * Copyright (C) 2012 Smile Communications, richard.good@smilecoms.com
4  *
5  * The initial version of this code was written by Dragos Vingarzan
6  * (dragos(dot)vingarzan(at)fokus(dot)fraunhofer(dot)de and the
7  * Fruanhofer Institute. It was and still is maintained in a separate
8  * branch of the original SER. We are therefore migrating it to
9  * Kamailio/SR and look forward to maintaining it from here on out.
10  * 2011/2012 Smile Communications, Pty. Ltd.
11  * ported/maintained/improved by
12  * Jason Penton (jason(dot)penton(at)smilecoms.com and
13  * Richard Good (richard(dot)good(at)smilecoms.com) as part of an
14  * effort to add full IMS support to Kamailio/SR using a new and
15  * improved architecture
16  *
17  * NB: Alot of this code was originally part of OpenIMSCore,
18  * FhG Fokus.
19  * Copyright (C) 2004-2006 FhG Fokus
20  * Thanks for great work! This is an effort to
21  * break apart the various CSCF functions into logically separate
22  * components. We hope this will drive wider use. We also feel
23  * that in this way the architecture is more complete and thereby easier
24  * to manage in the Kamailio/SR environment
25  *
26  * This file is part of Kamailio, a free SIP server.
27  *
28  * Kamailio is free software; you can redistribute it and/or modify
29  * it under the terms of the GNU General Public License as published by
30  * the Free Software Foundation; either version 2 of the License, or
31  * (at your option) any later version
32  *
33  * Kamailio is distributed in the hope that it will be useful,
34  * but WITHOUT ANY WARRANTY; without even the implied warranty of
35  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
36  * GNU General Public License for more details.
37  *
38  * You should have received a copy of the GNU General Public License
39  * along with this program; if not, write to the Free Software
40  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
41  *
42  */
43 
44 #ifndef __DIAMETER_IMS_CODE_AVP_H
45 #define __DIAMETER_IMS_CODE_AVP_H
46 
47 
48 /** 3GPP AVP Codes */
49 enum {
50 	/**   1 to 255 reserved for backward compatibility with IMS Radius TS29.061	*/
51 	AVP_IMS_Digest_Realm								= 104,
52 	AVP_IMS_Digest_QoP									= 110,
53 	AVP_IMS_Digest_Algorithm							= 111,
54 	AVP_IMS_Digest_Auth_Param							= 117,
55 	AVP_IMS_Digest_Domain								= 119,
56 	AVP_IMS_Digest_HA1									= 121,
57 	/** 256 to 299 reserved for future use										*/
58 	AVP_IMS_Vendor_Id									= 266,
59 	AVP_IMS_Experimental_Result_Code					= 298,
60 	AVP_IMS_Experimental_Result							= 297,
61 	/** 300 to 399 reserved for TS29.234											*/
62 
63 	/** 400 to 499 reserved for TS29.109											*/
64 	AVP_IMS_CCR_Number									= 415,
65 	AVP_IMS_CCR_Type									= 416,
66 	AVP_IMS_Service_Identifier							= 439,
67 	/**  or   RFC 4006 															*/
68 	AVP_IMS_Subscription_Id								= 443,
69 	AVP_IMS_Subscription_Id_Data						= 444,
70 	AVP_IMS_Subscription_Id_Type						= 450,
71 	/* This require ETSI vendor id and are from ETSI TS 183 017*/
72 	AVP_ETSI_Binding_Information						= 450,
73 	AVP_ETSI_Binding_Input_List							= 451,
74 	AVP_ETSI_Binding_Output_List						= 452,
75 	AVP_ETSI_V6_transport_address						= 453,
76 	AVP_ETSI_V4_transport_address						= 454,
77 	AVP_ETSI_Port_Number								= 455,
78 	AVP_ETSI_Reservation_Class							= 456,
79 	AVP_ETSI_Latching_Indication						= 457,
80 	AVP_ETSI_Reservation_Priority						= 458,
81 	AVP_ETSI_Service_Class								= 459,
82 	AVP_ETSI_Overbooking_Indication						= 460,
83 	AVP_ETSI_Authorization_Package_Id  					= 461,
84 	AVP_ETSI_Media_Authorization_Context_Id 			= 462,
85 
86 	/** 500 to 599 reserved for TS29.209											*/
87 	AVP_IMS_Abort_Cause									= 500,
88 	AVP_IMS_Access_Network_Charging_Address				= 501,
89 	AVP_IMS_Access_Network_Charging_Identifier			= 502,
90 	AVP_IMS_Access_Network_Charging_Identifier_Value	= 503,
91 	AVP_IMS_AF_Application_Identifier					= 504,
92 	AVP_IMS_AF_Charging_Identifier						= 505,
93 	AVP_IMS_Authorization_Token							= 506,
94 	AVP_IMS_Flow_Description							= 507,
95 	AVP_IMS_Flow_Grouping								= 508,
96 	AVP_IMS_Flow_Number									= 509,
97 	AVP_IMS_Flows										= 510,
98 	AVP_IMS_Flow_Status									= 511,
99 	AVP_IMS_Flow_Usage									= 512,
100 	AVP_IMS_Specific_Action								= 513,
101 	AVP_IMS_Max_Requested_Bandwidth_DL					= 515,
102 	AVP_IMS_Max_Requested_Bandwidth_UL					= 516,
103 	AVP_IMS_Media_Component_Description					= 517,
104 	AVP_IMS_Media_Component_Number						= 518,
105 	AVP_IMS_Media_Sub_Component							= 519,
106 	AVP_IMS_Media_Type									= 520,
107 	AVP_IMS_RR_Bandwidth								= 521,
108 	AVP_IMS_RS_Bandwidth								= 522,
109 	AVP_IMS_SIP_Forking_Indication						= 523,
110 	/** Codec-Data is from TS 29.214*/
111 	AVP_IMS_Codec_Data									= 524,
112 	AVP_IMS_Service_URN									= 525,
113 	AVP_IMS_Acceptable_Service_Info						= 526,
114 	AVP_IMS_Service_Info_Status							= 527,
115 	/** 600 to 699 reserved for TS29.229											*/
116 	AVP_IMS_Visited_Network_Identifier					= 600,
117 	AVP_IMS_Public_Identity								= 601,
118 	AVP_IMS_Server_Name									= 602,
119 	AVP_IMS_Server_Capabilities							= 603,
120 	AVP_IMS_Mandatory_Capability						= 604,
121 	AVP_IMS_Optional_Capability							= 605,
122 	AVP_IMS_User_Data_Cx								= 606,
123 	AVP_IMS_SIP_Number_Auth_Items						= 607,
124 	AVP_IMS_SIP_Authentication_Scheme					= 608,
125 	AVP_IMS_SIP_Authenticate							= 609,
126 	AVP_IMS_SIP_Authorization							= 610,
127 	AVP_IMS_SIP_Authentication_Context					= 611,
128 	AVP_IMS_SIP_Auth_Data_Item							= 612,
129 	AVP_IMS_SIP_Item_Number								= 613,
130 	AVP_IMS_Server_Assignment_Type						= 614,
131 	AVP_IMS_Deregistration_Reason						= 615,
132 	AVP_IMS_Reason_Code									= 616,
133 	AVP_IMS_Reason_Info									= 617,
134 	AVP_IMS_Charging_Information						= 618,
135 	AVP_IMS_Primary_Event_Charging_Function_Name		= 619,
136 	AVP_IMS_Secondary_Event_Charging_Function_Name		= 620,
137 	AVP_IMS_Primary_Charging_Collection_Function_Name	= 621,
138 	AVP_IMS_Secondary_Charging_Collection_Function_Name	= 622,
139 	AVP_IMS_User_Authorization_Type						= 623,
140 	AVP_IMS_User_Data_Already_Available					= 624,
141 	AVP_IMS_Confidentiality_Key							= 625,
142 	AVP_IMS_Integrity_Key								= 626,
143 	AVP_IMS_User_Data_Request_Type						= 627,
144 	AVP_IMS_Supported_Features							= 628,
145 	AVP_IMS_Feature_List_ID								= 629,
146 	AVP_IMS_Feature_List								= 630,
147 	AVP_IMS_Supported_Applications						= 631,
148 	AVP_IMS_Associated_Identities						= 632,
149 	AVP_IMS_Originating_Request							= 633,
150 	AVP_IMS_Wildcarded_PSI								= 634,
151 	AVP_IMS_SIP_Digest_Authenticate 					= 635,
152 	AVP_IMS_Wildcarded_IMPU								= 636,
153 	AVP_IMS_UAR_Flags									= 637,
154 	AVP_IMS_Loose_Route_Indication						= 638,
155 	AVP_IMS_SCSCF_Restoration_Info						= 639,
156 	AVP_IMS_Path										= 640,
157 	AVP_IMS_Contact										= 641,
158 	AVP_IMS_Subscription_Info							= 642,
159 	AVP_IMS_Call_ID_SIP_Header							= 643,
160 	AVP_IMS_From_SIP_Header								= 644,
161 	AVP_IMS_To_SIP_Header								= 645,
162 	AVP_IMS_Record_Route								= 646,
163 	AVP_IMS_Associated_Registered_Identities			= 647,
164 	AVP_IMS_Multiple_Registration_Indication			= 648,
165 	AVP_IMS_Restoration_Info							= 649,
166 
167 	/** 700 to 799 reserved for TS29.329											*/
168 	AVP_IMS_User_Identity								= 700,
169 	AVP_IMS_MSISDN										= 701,
170 	AVP_IMS_User_Data_Sh								= 702,
171 	AVP_IMS_Data_Reference								= 703,
172 	AVP_IMS_Service_Indication							= 704,
173 	AVP_IMS_Subs_Req_Type								= 705,
174 	AVP_IMS_Requested_Domain							= 706,
175 	AVP_IMS_Current_Location							= 707,
176 	AVP_IMS_Identity_Set								= 708,
177 	AVP_IMS_Expiry_Time									= 709,
178 	AVP_IMS_Send_Data_Indication						= 710,
179 	AVP_IMS_DSAI_Tag									= 711,
180 
181 	/** 800 to 899 reserved for TS29.299											*/
182 	AVP_IMS_Event_Type 									= 823,
183 	AVP_IMS_SIP_Method									= 824,
184 	AVP_IMS_Event										= 825,
185 	AVP_IMS_Content_Type								= 826,
186 	AVP_IMS_Content_Length								= 827,
187 	AVP_IMS_Content_Disposition							= 828,
188 	AVP_IMS_Role_Of_Node 								= 829,
189 	AVP_IMS_User_Session_Id								= 830,
190 	AVP_IMS_Calling_Party_Address						= 831,
191 	AVP_IMS_Called_Party_Address						= 832,
192 	AVP_IMS_Time_Stamps									= 833,
193 	AVP_IMS_SIP_Request_Timestamp						= 834,
194 	AVP_IMS_SIP_Response_Timestamp						= 835,
195 	AVP_IMS_Application_Server							= 836,
196 	AVP_IMS_Application_Provided_Called_Party_Address	= 837,
197 	AVP_IMS_Inter_Operator_Identifier					= 838,
198 	AVP_IMS_Originating_IOI								= 839,
199 	AVP_IMS_Terminating_IOI								= 840,
200 	AVP_IMS_IMS_Charging_identifier						= 841,
201 	AVP_IMS_SDP_Session_Description						= 842,
202 	AVP_IMS_SDP_Media_Component							= 843,
203 	AVP_IMS_SDP_Media_Name								= 844,
204 	AVP_IMS_SDP_Media_Description						= 845,
205 	AVP_IMS_CG_Address									= 846,
206 	AVP_IMS_GGSN_Address								= 847,
207 	AVP_IMS_Served_Party_IP_Address						= 848,
208 	AVP_IMS_Authorized_QoS								= 849,
209 	AVP_IMS_Application_Service_Information				= 850,
210 	AVP_IMS_Trunk_Group_Id								= 851,
211 	AVP_IMS_Incoming_Trunk_Group_Id						= 852,
212 	AVP_IMS_Outgoing_Trunk_Group_Id						= 853,
213 	AVP_IMS_Bear_Service								= 854,
214 	AVP_IMS_Service_Id									= 855,
215 	AVP_IMS_Associated_URI								= 856,
216 	AVP_IMS_Charged_Party								= 857,
217 	AVP_IMS_PoC_Controlling_Address						= 858,
218 	AVP_IMS_PoC_Group_Name								= 859,
219 	AVP_IMS_Cause										= 860,
220 	AVP_IMS_Cause_Code									= 861,
221 
222 	/* TODO finish the list... */
223 	AVP_IMS_Node_Functionality							= 862,
224 	AVP_IMS_Service_Information							= 873,
225 	AVP_IMS_IMS_Information								= 876,
226 	AVP_IMS_Expires										= 888,
227 	AVP_IMS_Message_Body								= 889,
228 	/** 1000   from TS29.212 */
229 	AVP_IMS_Charging_Rule_Install						= 1001,
230 	AVP_IMS_Charging_Rule_Remove						= 1002,
231 	AVP_IMS_Charging_Rule_Definition					= 1003,
232 	AVP_IMS_Charging_Rule_Base_Name						= 1004,
233 	AVP_IMS_Charging_Rule_Name							= 1005,
234 	AVP_IMS_Event_Trigger								= 1006,
235 	AVP_IMS_QoS_Information								= 1016,
236 	AVP_IMS_Charging_Rule_Report						= 1018,
237 	AVP_IMS_Pcc_Rule_Status								= 1019,
238 	AVP_IMS_Bearer_Identifier							= 1020,
239 	AVP_IMS_QoS_Class_Identifier						= 1028,
240 
241 	AVP_IMS_Service_Specific_Info						= 1249,
242 	AVP_IMS_Requested_Party_Address						= 1251,
243 	AVP_IMS_Access_Network_Information					= 1263,
244 
245 };
246 
247 /** ETSI AVP Codes */
248 enum {
249 
250 	/*added from ETSI 283 034 */
251 	AVP_ETSI_Globally_Unique_Address					=300,
252 	AVP_ETSI_Address_Realm								=301,
253 	AVP_ETSI_Logical_Access_Id							=302,
254 	AVP_ETSI_Initial_Gate_Setting						=303,
255 	AVP_ETSI_QoS_Profile								=304,
256 	AVP_ETSI_IP_Connectivity_Status						=305,
257 	AVP_ETSI_Access_Network_Type						=306,
258 	AVP_ETSI_Aggregation_Network_Type					=307,
259 	AVP_ETSI_Maximum_Allowed_Bandwidth_UL				=308,
260 	AVP_ETSI_Maximum_Allowed_Bandwidth_DL				=309,
261 	AVP_ETSI_Transport_Class							=311,
262 	AVP_ETSI_Application_Class_ID						=312,
263 	AVP_ETSI_Physical_Access_ID							=313,
264 	AVP_ETSI_Location_Information						=350,
265 	AVP_ETSI_RACS_Contact_Point							=351,
266 	AVP_ETSI_Terminal_Type								=352,
267 	AVP_ETSI_Requested_Information						=353,
268 	AVP_ETSI_Event_Type									=354,
269 
270 	AVP_ETSI_Line_Identifier							= 500,
271 	AVP_ETSI_SIP_Authenticate 							= 501,
272 	AVP_ETSI_SIP_Authorization 							= 502,
273 	AVP_ETSI_SIP_Authentication_Info 					= 503,
274 	AVP_ETSI_Digest_Realm 								= 504,
275 	AVP_ETSI_Digest_Nonce 								= 505,
276 	AVP_ETSI_Digest_Domain								= 506,
277 	AVP_ETSI_Digest_Opaque 								= 507,
278 	AVP_ETSI_Digest_Stale 								= 508,
279 	AVP_ETSI_Digest_Algorithm 							= 509,
280 	AVP_ETSI_Digest_QoP 								= 510,
281 	AVP_ETSI_Digest_HA1 								= 511,
282 	AVP_ETSI_Digest_Auth_Param 							= 512,
283 	AVP_ETSI_Digest_Username 							= 513,
284 	AVP_ETSI_Digest_URI 								= 514,
285 	AVP_ETSI_Digest_Response 							= 515,
286 	AVP_ETSI_Digest_CNonce 								= 516,
287 	AVP_ETSI_Digest_Nonce_Count 						= 517,
288 	AVP_ETSI_Digest_Method 								= 518,
289 	AVP_ETSI_Digest_Entity_Body_Hash 					= 519,
290 	AVP_ETSI_Digest_Nextnonce 							= 520,
291 	AVP_ETSI_Digest_Response_Auth						= 521
292 };
293 
294 /** CableLabs AVP Codes */
295 enum {
296 	AVP_CableLabs_SIP_Digest_Authenticate 				= 228,
297 	AVP_CableLabs_Digest_Realm 							= 209,
298 	AVP_CableLabs_Digest_Domain 						= 206,
299 	AVP_CableLabs_Digest_Algorithm 						= 204,
300 	AVP_CableLabs_Digest_QoP 							= 208,
301 	AVP_CableLabs_Digest_HA1 							= 207,
302 	AVP_CableLabs_Digest_Auth_Param 					= 205
303 };
304 
305 /** Server-Assignment-Type Enumerated AVP */
306 enum {
307 	AVP_IMS_SAR_ERROR									= -1,
308 	AVP_IMS_SAR_NO_ASSIGNMENT							= 0,
309 	AVP_IMS_SAR_REGISTRATION							= 1,
310 	AVP_IMS_SAR_RE_REGISTRATION							= 2,
311 	AVP_IMS_SAR_UNREGISTERED_USER						= 3,
312 	AVP_IMS_SAR_TIMEOUT_DEREGISTRATION					= 4,
313 	AVP_IMS_SAR_USER_DEREGISTRATION						= 5,
314 	AVP_IMS_SAR_TIMEOUT_DEREGISTRATION_STORE_SERVER_NAME= 6,
315 	AVP_IMS_SAR_USER_DEREGISTRATION_STORE_SERVER_NAME	= 7,
316 	AVP_IMS_SAR_ADMINISTRATIVE_DEREGISTRATION			= 8,
317 	AVP_IMS_SAR_AUTHENTICATION_FAILURE					= 9,
318 	AVP_IMS_SAR_AUTHENTICATION_TIMEOUT					= 10,
319 	AVP_IMS_SAR_DEREGISTRATION_TOO_MUCH_DATA			= 11,
320 	AVP_IMS_SAR_AAA_USER_DATA_REQUEST					= 12,
321 	AVP_IMS_SAR_PGW_UPDATE								= 13,
322 };
323 
324 /** User-Data-Already-Available Enumerated AVP */
325 enum {
326 	AVP_IMS_SAR_USER_DATA_NOT_AVAILABLE					= 0,
327 	AVP_IMS_SAR_USER_DATA_ALREADY_AVAILABLE				= 1
328 };
329 
330 /** User-Authorization-Type Enumerated AVP */
331 enum {
332 	AVP_IMS_UAR_REGISTRATION							= 0,
333 	AVP_IMS_UAR_DE_REGISTRATION							= 1,
334 	AVP_IMS_UAR_REGISTRATION_AND_CAPABILITIES			= 2
335 };
336 
337 /** Originating-Request Enumerated AVP */
338 enum {
339 	AVP_IMS_LIR_ORIGINATING_REQUEST						= 0
340 };
341 
342 /** Data-Reference AVP */
343 enum {
344 	AVP_IMS_Data_Reference_Repository_Data				= 0,
345 	AVP_IMS_Data_Reference_IMS_Public_Identity			= 10,
346 	AVP_IMS_Data_Reference_IMS_User_State				= 11,
347 	AVP_IMS_Data_Reference_SCSCF_Name					= 12,
348 	AVP_IMS_Data_Reference_Initial_Filter_Criteria		= 13,
349 	AVP_IMS_Data_Reference_Location_Information			= 14,
350 	AVP_IMS_Data_Reference_User_State					= 15,
351 	AVP_IMS_Data_Reference_Charging_Information			= 16,
352 	AVP_IMS_Data_Reference_MSISDN						= 17,
353 	AVP_IMS_Data_Reference_PSI_Activation				= 18,
354 	AVP_IMS_Data_Reference_DSAI							= 19,
355 	AVP_IMS_Data_Reference_Aliases_Repository_Data		= 20,
356 	AVP_IMS_Data_Reference_Service_Level_Trace_Info		= 21,
357 	AVP_IMS_Data_Reference_IP_Address_Secure_Binding_Information = 22,
358 };
359 
360 /** Subs-Req-Type AVP */
361 enum {
362 	AVP_IMS_Subs_Req_Type_Subscribe						= 0,
363 	AVP_IMS_Subs_Req_Type_Unsubscribe					= 1
364 };
365 
366 /** Requested-Domain AVP */
367 enum {
368 	AVP_IMS_Requested_Domain_CS							= 0,
369 	AVP_IMS_Requested_Domain_PS							= 1
370 };
371 
372 /** UAR-Flags AVP	*/
373 enum{
374 	AVP_IMS_UAR_Flags_None								= 0,
375 	AVP_IMS_UAR_Flags_Emergency_Registration			= 1 /*(1<<0)*/
376 };
377 
378 /** Loose-Route-Indication AVP */
379 enum{
380 	AVP_IMS_Loose_Route_Not_Required					= 0,
381 	AVP_IMS_Loose_Route_Required						= 1
382 };
383 
384 /** Feature-List-ID AVP for Cx */
385 enum{
386 	AVP_IMS_Feature_List_ID_Shared_iFC_Sets				= 1<<0,
387 	AVP_IMS_Feature_List_ID_Alias_Indication			= 1<<1,
388 	AVP_IMS_Feature_List_ID_IMS_Restoration_Indication  = 1<<2,
389 };
390 
391 /** Feature-List-ID AVP for Sh */
392 enum{
393 	AVP_IMS_Feature_List_ID_Notif_Eff					= 1<<0,
394 };
395 
396 /** Multiple-Registration-Indication */
397 enum{
398 	AVP_IMS_Not_Multiple_Registration					= 0,
399 	AVP_IMS_Multiple_Registration						= 1,
400 };
401 
402 /** Current-Location AVP */
403 enum {
404 	AVP_IMS_Current_Location_Do_Not_Need_Initiate_Active_Location_Retrieval	=0,
405 	AVP_IMS_Current_Location_Initiate_Active_Location_Retrieval				=1
406 };
407 
408 /** Identity-Set AVP */
409 enum {
410 	AVP_IMS_Identity_Set_All_Identities					= 0,
411 	AVP_IMS_Identity_Set_Registered_Identities			= 1,
412 	AVP_IMS_Identity_Set_Implicit_Identities			= 2,
413 	AVP_IMS_Identity_Set_Alias_Identities				= 3
414 };
415 
416 /** Deregistration-Reason AVP */
417 enum {
418 	AVP_IMS_Deregistration_Reason_Permanent_Termination	= 0,
419 	AVP_IMS_Deregistration_Reason_New_Server_Assigned	= 1,
420 	AVP_IMS_Deregistration_Reason_Server_Change			= 2,
421 	AVP_IMS_Deregistration_Reason_Remove_S_CSCF			= 3
422 };
423 
424 
425 /** Abort-Cause AVP */
426 enum {
427 	AVP_IMS_Abort_Cause_Bearer_Released					= 0,
428 	AVP_IMS_Abort_Cause_Insufficient_Server_Resources	= 1,
429 	AVP_IMS_Abort_Cause_Insufficient_Bearer_Resources	= 2
430 };
431 /** Flow-Status AVP */
432 enum {
433 	AVP_IMS_Flow_Status_Enabled_Uplink					= 0,
434 	AVP_IMS_Flow_Status_Enabled_Downlink				= 1,
435 	AVP_IMS_Flow_Status_Enabled							= 2,
436 	AVP_IMS_Flow_Status_Disabled						= 3,
437 	AVP_IMS_Flow_Status_Removed							= 4
438 };
439 
440 /** Specific-Action AVP */
441 enum {
442 	AVP_IMS_Specific_Action_Service_Information_Request						= 0,
443 	AVP_IMS_Specific_Action_Charging_Correlation_Exchange					= 1,
444 	AVP_IMS_Specific_Action_Indication_Of_Loss_Of_Bearer					= 2,
445 	AVP_IMS_Specific_Action_Indication_Of_Recovery_Of_Bearer				= 3,
446 	AVP_IMS_Specific_Action_Indication_Of_Release_Of_Bearer					= 4,
447 	AVP_IMS_Specific_Action_Indication_Of_Establishment_Of_Bearer			= 5
448 };
449 
450 /** Media-Type AVP */
451 enum {
452 	AVP_IMS_Media_Type_Audio					= 0,
453 	AVP_IMS_Media_Type_Video					= 1,
454 	AVP_IMS_Media_Type_Data						= 2,
455 	AVP_IMS_Media_Type_Application				= 3,
456 	AVP_IMS_Media_Type_Control					= 4,
457 	AVP_IMS_Media_Type_Text						= 5,
458 	AVP_IMS_Media_Type_Message					= 6,
459 	AVP_IMS_Media_Type_Other					= 0xFFFFFFFF
460 };
461 
462 /** Latching Indication AVP **/
463 enum {
464 	AVP_ETSI_Latching_Indication_Latch 			= 0,
465 	AVP_ETSI_Latching_Indication_Relatch		= 1
466 };
467 
468 /** Send-Data-Indication AVP **/
469 enum {
470 	AVP_IMS_Send_Data_Indication_User_Data_Not_Requested 	= 0,
471 	AVP_IMS_Send_Data_Indication_User_Data_Requested		= 1
472 };
473 
474 enum {
475 	AVP_Re_Auth_Request_Type_Authorize_Only			=0,
476 	AVP_Re_Auth_Request_Type_Authorize_Authenticate	=1,
477 };
478 
479 
480 
481 /*
482 	access-info for each access type
483 	"ADSL" / "ADSL2" / "ADSL2+" / "RADSL" / "SDSL" / "HDSL" / "HDSL2" / "G.SHDSL" / "VDSL" / "IDSL"  -> dsl-location
484 	"3GPP-GERAN" -> cgi-3gpp
485 	"3GPP-UTRAN-FDD" / "3GPP-UTRAN-TDD" -> utran-cell-id-3gpp
486 	"3GPP2-1X" / "3GPP2-1X-HRPD" -> ci-3gpp2
487 	"IEEE-802.11" / "IEEE-802.11a" / "IEEE-802.11b" / "IEEE-802.11g" -> i-wlan-node-id = MAC
488 	"DOCSIS" -> NULL
489 */
490 
491 #endif /* __DIAMETER_IMS_CODE_AVP_H */
492