Thanks to visit codestin.com
Credit goes to github.com

Skip to content

res_pjsip_header_funcs: Make prefix argument optional.#250

Merged
asterisk-org-access-app[bot] merged 1 commit into
asterisk:masterfrom
InterLinked1:master-issue-230
Aug 14, 2023
Merged

res_pjsip_header_funcs: Make prefix argument optional.#250
asterisk-org-access-app[bot] merged 1 commit into
asterisk:masterfrom
InterLinked1:master-issue-230

Conversation

@InterLinked1

Copy link
Copy Markdown
Contributor

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.

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: asterisk#230

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

Copy link
Copy Markdown
Contributor Author

cherry-pick-to: 18
cherry-pick-to: 20
cherry-pick-to: 21

@gtjoseph gtjoseph added the cherry-pick-test Trigger dry run of cherry-picks label Aug 11, 2023
@github-actions github-actions Bot added cherry-pick-testing-in-progress Cherry-Pick tests in progress cherry-pick-checks-passed Cherry-Pick checks passed cherry-pick-gates-failed Cherry-Pick gates failed and removed cherry-pick-test Trigger dry run of cherry-picks cherry-pick-testing-in-progress Cherry-Pick tests in progress labels Aug 11, 2023
@asterisk-org-access-app asterisk-org-access-app Bot merged commit 00070bc into asterisk:master Aug 14, 2023
@github-actions

Copy link
Copy Markdown

Successfully merged to branch master and cherry-picked to ["18","20","21"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: PJSIP_RESPONSE_HEADERS function documentation is misleading

3 participants