Browse code

ims_charging: fix charging reply route with kemi

Riccardo Villa authored on 27/08/2021 08:33:11 • Daniel-Constantin Mierla committed on 14/09/2021 08:10:49
Showing 1 changed files
... ...
@@ -21,7 +21,7 @@ struct interim_ccr {
21 21
 void credit_control_session_callback(int event, void* session);
22 22
 void remove_aaa_session(str *session_id);
23 23
 int Ro_Send_CCR(struct sip_msg *msg, struct dlg_cell *dlg, int dir, int reservation_units, 
24
-	    str *incoming_trunk_id, str *outgoing_trunk_id, str *enb_cell_id, cfg_action_t* action, unsigned int tindex, unsigned int tlabel);
24
+	    str *incoming_trunk_id, str *outgoing_trunk_id, str *enb_cell_id, void* action, unsigned int tindex, unsigned int tlabel);
25 25
 long get_current_time_micro();
26 26
 void send_ccr_interim(struct ro_session* ro_session, unsigned int used, unsigned int reserve);
27 27
 void send_ccr_stop_with_param(struct ro_session *ro_session, unsigned int code, str* reason);
Browse code

ims_charging: add support for Application-Provided-Called-Party-Address AVP

Henning Westerholt authored on 16/06/2020 19:49:17
Showing 1 changed files
... ...
@@ -28,5 +28,6 @@ void send_ccr_stop_with_param(struct ro_session *ro_session, unsigned int code,
28 28
 int get_direction_as_int(str* direction);
29 29
 
30 30
 void init_custom_user(pv_spec_t *custom_user_avp);
31
+void init_app_provided_party(pv_spec_t *app_provided_party_avp_p);
31 32
 
32 33
 #endif /* CLIENT_RF_IMS_RO_H */
Browse code

ims_charging: Add a custom_user_avp parameter, to allow a custom from user in Diameter rather than PAI/From

Carsten Bock authored on 09/03/2017 08:40:53
Showing 1 changed files
... ...
@@ -27,4 +27,6 @@ void send_ccr_interim(struct ro_session* ro_session, unsigned int used, unsigned
27 27
 void send_ccr_stop_with_param(struct ro_session *ro_session, unsigned int code, str* reason);
28 28
 int get_direction_as_int(str* direction);
29 29
 
30
+void init_custom_user(pv_spec_t *custom_user_avp);
31
+
30 32
 #endif /* CLIENT_RF_IMS_RO_H */
Browse code

core, lib, modules: updated include paths for header files

Daniel-Constantin Mierla authored on 07/12/2016 11:07:22
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 #ifndef CLIENT_RF_IMS_RO_H
2 2
 #define CLIENT_RF_IMS_RO_H
3 3
 
4
-#include "../../mod_fix.h"
4
+#include "../../core/mod_fix.h"
5 5
 #include "../cdp/diameter_api.h"
6 6
 #include "../ims_dialog/dlg_hash.h"
7 7
 #include "ro_session_hash.h"
Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,30 @@
1
+#ifndef CLIENT_RF_IMS_RO_H
2
+#define CLIENT_RF_IMS_RO_H
3
+
4
+#include "../../mod_fix.h"
5
+#include "../cdp/diameter_api.h"
6
+#include "../ims_dialog/dlg_hash.h"
7
+#include "ro_session_hash.h"
8
+
9
+typedef enum {
10
+    VS_TERMCODE = 3,
11
+    VS_TERMREASON = 2
12
+} vs_term_avp;
13
+
14
+struct interim_ccr {
15
+	struct ro_session* ro_session;
16
+	int new_credit;
17
+	int credit_valid_for;
18
+	unsigned int is_final_allocation;
19
+};
20
+
21
+void credit_control_session_callback(int event, void* session);
22
+void remove_aaa_session(str *session_id);
23
+int Ro_Send_CCR(struct sip_msg *msg, struct dlg_cell *dlg, int dir, int reservation_units, 
24
+	    str *incoming_trunk_id, str *outgoing_trunk_id, str *enb_cell_id, cfg_action_t* action, unsigned int tindex, unsigned int tlabel);
25
+long get_current_time_micro();
26
+void send_ccr_interim(struct ro_session* ro_session, unsigned int used, unsigned int reserve);
27
+void send_ccr_stop_with_param(struct ro_session *ro_session, unsigned int code, str* reason);
28
+int get_direction_as_int(str* direction);
29
+
30
+#endif /* CLIENT_RF_IMS_RO_H */