Browse code

core: mod fixup helpers for params sequence str, str, int

(cherry picked from commit 5e4576a54e7783b1ee8fde6af7919232a5e207c4)

Daniel-Constantin Mierla authored on 20/05/2022 11:15:43
Showing 2 changed files
... ...
@@ -801,6 +801,38 @@ int fixup_get_vstr_buf(sip_msg_t *msg, pv_elem_t *p, char *buf, int blen)
801 801
 	return -1;
802 802
 }
803 803
 
804
+/**
805
+ *
806
+ */
807
+int fixup_ssi(void** param, int param_no)
808
+{
809
+	switch(param_no) {
810
+		case 1:
811
+		case 2:
812
+			return fixup_spve_null(param, 1);
813
+		case 3:
814
+			return fixup_igp_null(param, 1);
815
+		default:
816
+			return E_UNSPEC;
817
+	}
818
+}
819
+
820
+/**
821
+ *
822
+ */
823
+int fixup_free_ssi(void** param, int param_no)
824
+{
825
+	switch(param_no) {
826
+		case 1:
827
+		case 2:
828
+			return fixup_free_spve_null(param, 1);
829
+		case 3:
830
+			return fixup_free_igp_null(param, 1);
831
+		default:
832
+			return E_UNSPEC;
833
+	}
834
+}
835
+
804 836
 /**
805 837
  *
806 838
  */
... ...
@@ -163,6 +163,9 @@ int fixup_get_vstr_buf(sip_msg_t *msg, pv_elem_t *p, char *buf, int blen);
163 163
 int fixup_igp_regexp(void** param, int param_no);
164 164
 int fixup_free_igp_regexp(void** param, int param_no);
165 165
 
166
+int fixup_ssi(void** param, int param_no);
167
+int fixup_free_ssi(void** param, int param_no);
168
+
166 169
 int fixup_sssi(void** param, int param_no);
167 170
 int fixup_free_sssi(void** param, int param_no);
168 171