]> 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)
committerNaveen Albert <asterisk@phreaknet.org>
Mon, 14 Aug 2023 17:18:10 +0000 (17:18 +0000)
commit2179082eafdb328277fcfeed0d6f471e60186d2c
tree4482b49fd575f485f0adee19cd962907ba05c477
parentd3ee0e65163f3dd3720f7f7333ad54e0253c1477
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