Add missing srv.c and srv.h files

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-06-12 22:14:03 +00:00
parent fc8d3631b4
commit 615a463e23
2 changed files with 319 additions and 0 deletions

20
include/asterisk/srv.h Executable file
View File

@@ -0,0 +1,20 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
* ENUM support
*
* Copyright (C) 1999, Mark Spencer
*
* Mark Spencer <markster@linux-support.net>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#ifndef _ASTERISK_SRV_H
#define _ASTERISK_SRV_H
#include <asterisk/channel.h>
/* Lookup entry in SRV records Returns 1 if found, 0 if not found, -1 on hangup */
extern int ast_get_srv(struct ast_channel *chan, char *host, int hostlen, int *port, const char *service);
#endif