Pre-Submission Checklist

Type Of Change

Checklist:

Description

This PR adds support for $hfl(Diversion)[] and $hflc(Diversion).

This parse_diversion.c was inspired by parse_pai_ppi.c. I am not sure if it's breaking the existing implementation and usage. I believe it does not.

During some experimentation with the hfl(name)[-1], I encountered weird behavior with negative indexing for the already supported headers like Via, Route, and Contact. -1 yields null and -2 yields the last one and so on. Separate PR can be introduced if necessary.

Any feedback is welcome.


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/3650

Commit Summary

File Changes

(3 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3650@github.com>