aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-14 01:36:15 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-14 01:36:15 +0000
commitfa8ea94c177025426ad5429a3737e0b8aae6363f (patch)
treed4b59476a3096555262c97b7b28dc1fb6737c2eb /include
parent06e6b25ca44f1612b599b7f89d33367be9bd72b5 (diff)
extensive ENUM support update, including ENUMLOOKUP() dialplan function (issue #5201 with mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6579 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/enum.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/include/asterisk/enum.h b/include/asterisk/enum.h
index e52d1db20..732a42a85 100755
--- a/include/asterisk/enum.h
+++ b/include/asterisk/enum.h
@@ -29,20 +29,25 @@
#include "asterisk/channel.h"
-/*! \brief Lookup entry in ENUM Returns 1 if found, 0 if not found, -1 on hangup
+/*! \brief Lookup entry in ENUM Returns 1 if found, 0 if not found, -1 on hangup
\param chan Channel
- \param number Number in E164 format without the + (for e164.arpa) or format
- requested by enum service used (enum.conf)
+ \param number E164 number with or without the leading +
\param location Number returned (or SIP uri)
\param maxloc Max length
\param tech Technology (from url scheme in response)
\param maxtech Max length
-*/
-extern int ast_get_enum(struct ast_channel *chan, const char *number, char *location, int maxloc, char *technology, int maxtech);
+ \param tech Technology (from url scheme in response)
+ You can set it to get particular answer RR, if there are many techs in DNS response, example: "sip"
+ If you need any record, then set it to empty string
+ \param maxtech Max length
+ \param suffix Zone suffix (if is NULL then use enum.conf 'search' variable)
+ \param options Options ('c' to count number of NAPTR RR, or number - the position of required RR in the answer list
+*/
+extern int ast_get_enum(struct ast_channel *chan, const char *number, char *location, int maxloc, char *technology, int maxtech, char* suffix, char* options);
/*! \brief Lookup DNS TXT record (used by app TXTCIDnum
\param chan Channel
- \param number E164 number without the +
+ \param number E164 number with or without the leading +
\param locatio Number returned (or SIP uri)
\param maxloc Max length of number
\param tech Technology (not used in TXT records)