@xkaraman commented on this pull request.
@@ -2335,6 +2335,110 @@ int pv_get_hfl(sip_msg_t *msg,
pv_param_t *param, pv_value_t *res)
return pv_get_null(msg, param, res);
}
+ if((tv.flags == 0) && (tv.ri == HDR_PPI_T)) {
+ if(msg->ppi == NULL) {
+ LM_WARN("no PPI header\n");
+ return pv_get_null(msg, param, res);
+ }
+
+ if(parse_ppi_header(msg) < 0) {
+ LM_WARN("failed to parse PPI headers\n");
+ return pv_get_null(msg, param, res);
+ }
+
+ p_id_body_t *ppi_b = (p_id_body_t *)msg->ppi->parsed;
+ int ppi_header_count = 0;
+
Done.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3652#discussion_r1402180846
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3652/review/1744596419(a)github.com>