Sat Mar 24 23:51:46 2007

Asterisk developer's documentation


dns.h

Go to the documentation of this file.
00001 /*
00002  * Asterisk -- An open source telephony toolkit.
00003  *
00004  * Written by Thorsten Lockert <tholo@trollphone.org>
00005  *
00006  * Funding provided by Troll Phone Networks AS
00007  *
00008  * See http://www.asterisk.org for more information about
00009  * the Asterisk project. Please do not directly contact
00010  * any of the maintainers of this project for assistance;
00011  * the project provides a web site, mailing lists and IRC
00012  * channels for your use.
00013  *
00014  * This program is free software, distributed under the terms of
00015  * the GNU General Public License Version 2. See the LICENSE file
00016  * at the top of the source tree.
00017  */
00018 
00019 /*! \file
00020  * \brief DNS support for Asterisk
00021  * \author Thorsten Lockert <tholo@trollphone.org>
00022  */
00023 
00024 #ifndef _ASTERISK_DNS_H
00025 #define _ASTERISK_DNS_H
00026 
00027 struct ast_channel;
00028 
00029 /*!   \brief   Perform DNS lookup (used by enum and SRV lookups) 
00030    \param   context
00031    \param   dname Domain name to lookup (host, SRV domain, TXT record name)
00032    \param   class Record Class (see "man res_search")
00033    \param   type  Record type (see "man res_search")
00034    \param   callback Callback function for handling DNS result
00035 */
00036 extern int ast_search_dns(void *context, const char *dname, int class, int type,
00037     int (*callback)(void *context, char *answer, int len, char *fullanswer));
00038 
00039 #endif /* _ASTERISK_DNS_H */

Generated on Sat Mar 24 23:51:46 2007 for Asterisk - the Open Source PBX by  doxygen 1.5.1