From 345bbbe24a769a01122f4c28f82d2d68c802ef09 Mon Sep 17 00:00:00 2001 From: Mikko Lehto Date: Mon, 7 Nov 2016 01:43:45 +0200 Subject: [PATCH] modules/siputils: document P-Charging-Vector related pseudo variables --- modules/siputils/chargingvector.h | 13 ++++++---- modules/siputils/doc/siputils_admin.xml | 32 ++++++++++++++++++++++++- 2 files changed, 39 insertions(+), 6 deletions(-) diff --git a/modules/siputils/chargingvector.h b/modules/siputils/chargingvector.h index c171672327b..cb7ef8136fd 100644 --- a/modules/siputils/chargingvector.h +++ b/modules/siputils/chargingvector.h @@ -19,19 +19,22 @@ */ /* - * Support for rfc3455 P-Charging-Vector + * Support for RFC3455 / RFC7315 P-Charging-Vector * - parse charging vector from SIP message * - generate new unique charging vector * - can remove charging vector * - * pseudo variables are exported and enable R ondly access to charging vector fields + * pseudo variables are exported and enable read only access to charging vector fields * $pcv(all) = whole field * $pcv(value) = icid-value field (see RFC3455 section 5.6) * $pcv(genaddr) = icid-generated-at field (see RFC3455 section 5.6) + * $pcv(orig) = orig-ioi field (see RFC3455 section 5.6) + * $pcv(term) = term-ioi field (see RFC3455 section 5.6) * - * to be supported - * $pcv(orig) - * $pcv(term) + * missing: + * $pcv(transit-ioi) RFC7315 5.6 + * $pcv(related-icid) RFC7315 5.6 + * $pcv(related-icid-gen-addr) RFC7315 5.6 */ #ifndef _CHARGINGVECTOR_H_ diff --git a/modules/siputils/doc/siputils_admin.xml b/modules/siputils/doc/siputils_admin.xml index 208ee3a7174..ccca9581f14 100644 --- a/modules/siputils/doc/siputils_admin.xml +++ b/modules/siputils/doc/siputils_admin.xml @@ -1066,7 +1066,7 @@ if(is_first_hop()) { ... } sip_p_charging_vector(flags) - Manage the P-Charging-Vector header (RFC3455). The flags can be: + Manage the P-Charging-Vector header (RFC7315). The flags can be: 'r' - remove; 'g' - generate; 'f' - force (remove + generate). @@ -1083,4 +1083,34 @@ sip_p_charging_vector("g"); +
+ Exported pseudo-variables +
+ <varname>$pcv(all) + + full P-Charging-Vector header + +
+ <varname>$pcv(value) + + icid-value field (see RFC7315 section 5.6) + +
+ <varname>$pcv(genaddr) + + icid-generated-at field (see RFC7315 section 5.6) + +
+ <varname>$pcv(orig) + + orig-ioi field (see RFC7315 section 5.6) + +
+ <varname>$pcv(term) + + term-ioi field (see RFC7315 section 5.6) + +
+
+