1.1 --- a/opensips/modules/enum/enum_mod.c Mon Jan 18 19:47:23 2010 +0100 1.2 +++ b/opensips/modules/enum/enum_mod.c Mon Jan 18 19:59:51 2010 +0100 1.3 @@ -55,6 +55,8 @@ 1.4 char* i_enum_suffix = "e164.arpa."; 1.5 char* bl_algorithm = "cc"; 1.6 1.7 +char* isn_suffix = "freenum.org."; 1.8 + 1.9 1.10 /* 1.11 * Internal module variables 1.12 @@ -67,6 +69,8 @@ 1.13 str i_branchlabel; 1.14 str i_bl_alg; 1.15 1.16 +str isnsuffix; 1.17 + 1.18 1.19 /* 1.20 * Exported functions 1.21 @@ -94,6 +98,11 @@ 1.22 REQUEST_ROUTE}, 1.23 {"i_enum_query", (cmd_function)i_enum_query_2, 2, fixup_str_str, 0, 1.24 REQUEST_ROUTE}, 1.25 + {"isn_query", (cmd_function)isn_query_0, 0, 0, 0, REQUEST_ROUTE}, 1.26 + {"isn_query", (cmd_function)isn_query_1, 1, fixup_str_null, 1.27 + fixup_free_str_null, REQUEST_ROUTE}, 1.28 + {"isn_query", (cmd_function)isn_query_2, 2, fixup_str_str, 1.29 + fixup_free_str_str, REQUEST_ROUTE}, 1.30 {0, 0, 0, 0, 0, 0} 1.31 }; 1.32 1.33 @@ -107,6 +116,7 @@ 1.34 {"branchlabel", STR_PARAM, &branchlabel}, 1.35 {"i_enum_suffix", STR_PARAM, &i_enum_suffix}, 1.36 {"bl_algorithm", STR_PARAM, &bl_algorithm}, 1.37 + {"isn_suffix", STR_PARAM, &isn_suffix}, 1.38 {0, 0, 0} 1.39 }; 1.40 1.41 @@ -152,6 +162,9 @@ 1.42 i_bl_alg.s = bl_algorithm; 1.43 i_bl_alg.len = strlen(bl_algorithm); 1.44 1.45 + isnsuffix.s = isn_suffix; 1.46 + isnsuffix.len = strlen(isnsuffix.s); 1.47 + 1.48 return 0; 1.49 } 1.50