Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improvement]: Deprecate ast_gethostbyname() #78

Closed
seanbright opened this issue May 10, 2023 · 0 comments · Fixed by #79
Closed

[improvement]: Deprecate ast_gethostbyname() #78

seanbright opened this issue May 10, 2023 · 0 comments · Fixed by #79
Assignees
Labels
improvement support-level-core Functionality with core support level

Comments

@seanbright
Copy link
Contributor

seanbright commented May 10, 2023

Improvement Description

https://wiki.asterisk.org/wiki/display/AST/C+API+Deprecation

ast_gethostbyname() is now deprecated in favor of the ast_sockaddr_resolve() and ast_sockaddr_resolve_first_af() functions in include/asterisk/netsock2.h.

@seanbright seanbright self-assigned this May 10, 2023
@jcolp jcolp added support-level-core Functionality with core support level and removed triage labels May 10, 2023
gtjoseph pushed a commit that referenced this issue May 11, 2023
Deprecate `ast_gethostbyname()` in favor of `ast_sockaddr_resolve()` and
`ast_sockaddr_resolve_first_af()`. `ast_gethostbyname()` has not been
used by any in-tree code since 2021.

This function will be removed entirely in Asterisk 23.

Resolves: #78

UpgradeNote: ast_gethostbyname() has been deprecated and will be removed
in Asterisk 23. New code should use `ast_sockaddr_resolve()` and
`ast_sockaddr_resolve_first_af()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement support-level-core Functionality with core support level
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants