From: Simon H. <sh...@us...> - 2005-08-31 04:08:02
|
Update of /cvsroot/openh323/pwlib/src/ptclib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5055/src/ptclib Modified Files: enum.cxx Log Message: added ability to set ENUM Servers at runtime Index: enum.cxx =================================================================== RCS file: /cvsroot/openh323/pwlib/src/ptclib/enum.cxx,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** enum.cxx 4 Aug 2004 10:26:39 -0000 1.6 --- enum.cxx 31 Aug 2005 04:07:53 -0000 1.7 *************** *** 23,26 **** --- 23,29 ---- * * $Log$ + * Revision 1.7 2005/08/31 04:07:53 shorne + * added ability to set ENUM Servers at runtime + * * Revision 1.6 2004/08/04 10:26:39 csoutheren * Changed service to be case insignificant *************** *** 279,287 **** PStringArray domains; char * env = ::getenv(PWLIB_ENUM_PATH); ! if (env == NULL) ! domains += PStringArray(sizeof(domains)/sizeof(defaultDomains[0]), defaultDomains); else ! domains += PString(env).Tokenise(PATH_SEP); ! return PDNS::ENUMLookup(e164, service, domains, dn); } --- 282,292 ---- PStringArray domains; char * env = ::getenv(PWLIB_ENUM_PATH); ! if (ENUMServers.GetSize() > 0) ! domains = ENUMServers; ! else if (env != NULL) ! domains += PString(env).Tokenise(PATH_SEP); else ! domains += PStringArray(sizeof(domains)/sizeof(defaultDomains[0]), defaultDomains); ! return PDNS::ENUMLookup(e164, service, domains, dn); } |