23#ifndef _ASTERISK_SRV_H
24#define _ASTERISK_SRV_H
106 unsigned short *port,
unsigned short *
priority,
unsigned short *
weight);
enum ast_cc_service_type service
unsigned int ast_srv_get_record_count(struct srv_context *context)
Get the number of records for a given SRV context.
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.
void ast_srv_cleanup(struct srv_context **context)
Cleanup resources associated with ast_srv_lookup.
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.
int ast_srv_lookup(struct srv_context **context, const char *service, const char **host, unsigned short *port)
Retrieve set of SRV lookups, in order.
Main Channel structure associated with a channel.