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_H
45 #define __DIAMETER_IMS_H
46 
47 #include "diameter_ims_code_app.h"
48 #include "diameter_ims_code_avp.h"
49 #include "diameter_ims_code_cmd.h"
50 #include "diameter_ims_code_result.h"
51 
52 /* Vendor ID	*/
53 
54 #define IMS_vendor_id_3GPP 		10415		/**< Vendor Id for 3GPP */
55 #define IMS_vendor_id_3GPP_char "10415" 	/**< char value for 3GPP's Vendor Id */
56 #define IMS_vendor_id_3GPP_len	5			/**< len of char value for 3GPP's Vendor Id */
57 
58 #define IMS_vendor_id_ETSI 		13019		/**< Vendor Id for ETSI */
59 #define IMS_vendor_id_ETSI_char "13019" 	/**< char value for ETSI's Vendor Id */
60 #define IMS_vendor_id_ETSI_len	5			/**< len of char value for 3GPP's Vendor Id */
61 
62 #define IMS_vendor_id_CableLabs 	 4491	/**< Vendor Id for CableLabs */
63 #define IMS_vendor_id_CableLabs_char "4491"	/**< char value for ETSI's Vendor Id */
64 #define IMS_vendor_id_CableLabs_len	 4		/**< len of char value for 3GPP's Vendor Id */
65 
66 /*	Command Codes alocated for IMS	*/
67 /*		The Gq Interface 			*/
68 #define IMS_AAR		265		/**< Bearer-Authorization		Request	*/
69 #define IMS_AAA		265		/**< Bearer-Authorization		Answer	*/
70 #define IMS_RAR		258		/**< Re-Auth					Request */
71 #define IMS_RAA		258		/**< Re-Auth					Answer	*/
72 #define IMS_STR		275		/**< Session Termination 		Request */
73 #define IMS_STA		275		/**< Session Termination 		Answer	*/
74 #define IMS_ASR		274		/**< Abort-Session-Request		Request */
75 #define IMS_ASA		274		/**< Abort-Session-Request		Answer	*/
76 /* The Gx Interface */
77 #define IMS_CCR		272
78 #define IMS_CCA		272
79 /*		The Cx/Dx Interface 			*/
80 #define IMS_UAR		300		/**< User-Authorization			Request	*/
81 #define IMS_UAA		300		/**< User-Authorization			Answer	*/
82 #define IMS_SAR		301		/**< Server-Assignment			Request */
83 #define IMS_SAA		301		/**< Server-Assignment			Answer	*/
84 #define IMS_LIR		302		/**< Location-Info				Request */
85 #define IMS_LIA		302		/**< Location-Info				Answer	*/
86 #define IMS_MAR		303		/**< Multimedia-Auth			Request */
87 #define IMS_MAA		303		/**< Multimedia-Auth			Answer	*/
88 #define IMS_RTR		304		/**< Registration-Termination	Request */
89 #define IMS_RTA		304		/**< Registration-Termination	Answer	*/
90 #define IMS_PPR		305		/**< Push-Profile				Request */
91 #define IMS_PPA		305		/**< Push-Profile				Answer	*/
92 /**		The Sh/Ph Interface 			*/
93 #define IMS_UDR		306		/**< User-Data					Request */
94 #define IMS_UDA		306		/**< User-Data					Answer	*/
95 #define IMS_PUR		307		/**< Profile-Update				Request */
96 #define IMS_PUA		307		/**< Profile-Update				Answer	*/
97 #define IMS_SNR		308		/**< Subscriber-Notifications	Request */
98 #define IMS_SNA		308		/**< Subscriber-Notifications	Answer	*/
99 #define IMS_PNR		309		/**< Push-Notification			Request */
100 #define IMS_PNA		309		/**< Push-Notification			Answer	*/
101 /**	Allocated Command Codes, not used yet	*/
102 #define IMS_10R		310
103 #define IMS_10A		310
104 #define IMS_11R		311
105 #define IMS_11A		311
106 #define IMS_12R		312
107 #define IMS_12A		312
108 #define IMS_13R		313
109 #define IMS_13A		313
110 
111 
112 #endif /* __DIAMETER_IMS_H */
113