Asterisk - The Open Source Telephony Project
18.5.0
|
DNS SRV Record Parsing API. More...
Go to the source code of this file.
Functions | |
const char * | ast_dns_srv_get_host (const struct ast_dns_record *record) |
Get the hostname from an SRV record. More... | |
unsigned short | ast_dns_srv_get_port (const struct ast_dns_record *record) |
Get the port from an SRV record. More... | |
unsigned short | ast_dns_srv_get_priority (const struct ast_dns_record *record) |
Get the priority from an SRV record. More... | |
unsigned short | ast_dns_srv_get_weight (const struct ast_dns_record *record) |
Get the weight from an SRV record. More... | |
DNS SRV Record Parsing API.
Definition in file dns_srv.h.
const char* ast_dns_srv_get_host | ( | const struct ast_dns_record * | record | ) |
Get the hostname from an SRV record.
record | The DNS record |
Definition at line 188 of file dns_srv.c.
References ast_assert, ast_dns_record_get_rr_type(), and ast_dns_srv_record::host.
Referenced by AST_TEST_DEFINE(), nominal_test(), and sip_resolve_callback().
unsigned short ast_dns_srv_get_port | ( | const struct ast_dns_record * | record | ) |
Get the port from an SRV record.
record | The DNS record |
Definition at line 212 of file dns_srv.c.
References ast_assert, ast_dns_record_get_rr_type(), and ast_dns_srv_record::port.
Referenced by AST_TEST_DEFINE(), nominal_test(), and sip_resolve_callback().
unsigned short ast_dns_srv_get_priority | ( | const struct ast_dns_record * | record | ) |
Get the priority from an SRV record.
record | The DNS record |
Definition at line 196 of file dns_srv.c.
References ast_assert, ast_dns_record_get_rr_type(), and ast_dns_srv_record::priority.
Referenced by AST_TEST_DEFINE(), and nominal_test().
unsigned short ast_dns_srv_get_weight | ( | const struct ast_dns_record * | record | ) |
Get the weight from an SRV record.
record | The DNS record |
Definition at line 204 of file dns_srv.c.
References ast_assert, ast_dns_record_get_rr_type(), and ast_dns_srv_record::weight.
Referenced by AST_TEST_DEFINE(), and nominal_test().