]> 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-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Mon, 14 Aug 2023 17:18:14 +0000 (17:18 +0000)
commit00070bc6bcdcf7f45887bed67fe8c4b043c60a93
tree378bee627207fb827ac02c185d3554a0041032ab
parent83680dab995f61a5c88e335dad8440d63ee1f76d
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.
res/res_pjsip_header_funcs.c