]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_header_funcs: Make prefix argument optional.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 9 Aug 2023 23:17:26 +0000 (23:17 +0000)
committerAsterisk Development Team <asteriskteam@digium.com>
Wed, 6 Sep 2023 16:46:46 +0000 (16:46 +0000)
commit3442c05b651080558d1f64213ab6ea723e8585a3
tree7052b433bc1c31c7c38912ff7d2631054fe39d4d
parentf5ad4f89892eff39b4abc0cbd30434829501e3c9
res_pjsip_header_funcs: Make prefix argument optional.

The documentation for PJSIP_HEADERS claims that
prefix is optional, but in the code it is actually not.
However, there is no inherent reason for this, as users
may want to retrieve all header names, not just those
beginning with a certain prefix.

This makes the prefix optional for this function,
simply fetching all header names if not specified.
As a result, the documentation is now correct.

Resolves: #230

UserNote: The prefix argument to PJSIP_HEADERS is now
optional. If not specified, all header names will be
returned.

(cherry picked from commit 08e7d77fcede7b649930fba3580d938316d12a22)
res/res_pjsip_header_funcs.c