aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_enumlookup.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-01 15:36:52 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-01 15:36:52 +0000
commitd2f07e93ab8233c91d5e4a9b3b216126694aaaa2 (patch)
tree58fe9923998973f2e9a488bb7446ebd4366facab /apps/app_enumlookup.c
parent41eca3162accfa1e685bb81afee5fe03026d7b27 (diff)
Add H.323, SIP, IAX/IAX2 to ENUM Lookup (bug #202)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1452 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_enumlookup.c')
-rwxr-xr-xapps/app_enumlookup.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/app_enumlookup.c b/apps/app_enumlookup.c
index 4f132a518..fb0956721 100755
--- a/apps/app_enumlookup.c
+++ b/apps/app_enumlookup.c
@@ -73,6 +73,24 @@ static int enumlookup_exec(struct ast_channel *chan, void *data)
c += 4;
snprintf(tmp, sizeof(tmp), "SIP/%s", c);
pbx_builtin_setvar_helper(chan, "ENUM", tmp);
+ } else if (!strcasecmp(tech, "H323")) {
+ c = dest;
+ if (!strncmp(c, "h323:", 5))
+ c += 5;
+ snprintf(tmp, sizeof(tmp), "H323/%s", c);
+ pbx_builtin_setvar_helper(chan, "ENUM", tmp);
+ } else if (!strcasecmp(tech, "IAX")) {
+ c = dest;
+ if (!strncmp(c, "iax:", 4))
+ c += 4;
+ snprintf(tmp, sizeof(tmp), "IAX/%s", c);
+ pbx_builtin_setvar_helper(chan, "ENUM", tmp);
+ } else if (!strcasecmp(tech, "IAX2")) {
+ c = dest;
+ if (!strncmp(c, "iax2:", 5))
+ c += 5;
+ snprintf(tmp, sizeof(tmp), "IAX2/%s", c);
+ pbx_builtin_setvar_helper(chan, "ENUM", tmp);
} else if (!strcasecmp(tech, "tel")) {
c = dest;
if (!strncmp(c, "tel:", 4))