summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-11-26 19:15:56 +0000
committerMark Spencer <markster@digium.com>2003-11-26 19:15:56 +0000
commitd6d3585c03814f5246e68c3a1d169342b9962020 (patch)
tree59fc8c82d145484d8b2e5426246009d7fcad9385 /enum.c
parente45e601c357e29d5bf1079f05f368a45e71dfe1b (diff)
Minor enum improvements for iax/iax2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'enum.c')
-rwxr-xr-xenum.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/enum.c b/enum.c
index 5d9bab76e..cbd007fcf 100755
--- a/enum.c
+++ b/enum.c
@@ -125,12 +125,14 @@ static int parse_naptr(unsigned char *dst, int dstsize, char *tech, int techsize
} else if ((!strncasecmp(services, "e2u+h323", 8)) ||
(!strncasecmp(services, "h323+e2u", 8))) {
strncpy(tech, "h323", techsize -1);
- } else if ((!strncasecmp(services, "e2u+iax", 7)) ||
- (!strncasecmp(services, "iax+e2u", 7))) {
- strncpy(tech, "iax", techsize -1);
- } else if ((!strncasecmp(services, "e2u+iax2", 8)) ||
+ } else if ((!strncasecmp(services, "e2u+x-iax2", 10)) ||
+ (!strncasecmp(services, "e2u+iax2", 8)) ||
(!strncasecmp(services, "iax2+e2u", 8))) {
strncpy(tech, "iax2", techsize -1);
+ } else if ((!strncasecmp(services, "e2u+x-iax", 9)) ||
+ (!strncasecmp(services, "e2u+iax", 7)) ||
+ (!strncasecmp(services, "iax+e2u", 7))) {
+ strncpy(tech, "iax", techsize -1);
} else if ((!strncasecmp(services, "e2u+tel", 7)) ||
(!strncasecmp(services, "tel+e2u", 7))) {
strncpy(tech, "tel", techsize -1);