23 #ifndef _ASTERISK_SRV_H 24 #define _ASTERISK_SRV_H 105 unsigned short *port,
unsigned short *
priority,
unsigned short *
weight);
Main Channel structure associated with a channel.
void ast_srv_cleanup(struct srv_context **context)
Cleanup resources associated with ast_srv_lookup.
enum ast_cc_service_type service
int ast_srv_get_nth_record(struct srv_context *context, int record_num, const char **host, unsigned short *port, unsigned short *priority, unsigned short *weight)
Retrieve details from a specific SRV record.
int ast_get_srv(struct ast_channel *chan, char *host, int hostlen, int *port, const char *service)
Lookup entry in SRV records Returns 1 if found, 0 if not found, -1 on hangup.
unsigned int ast_srv_get_record_count(struct srv_context *context)
Get the number of records for a given SRV context.
int ast_srv_lookup(struct srv_context **context, const char *service, const char **host, unsigned short *port)
Retrieve set of SRV lookups, in order.
static char context[AST_MAX_CONTEXT]