Index: main/udptl.c =================================================================== --- main/udptl.c (revision 270834) +++ main/udptl.c (working copy) @@ -80,7 +80,7 @@ #define LOG_TAG(u) S_OR(u->tag, "no tag") static int udptlstart = 4500; -static int udptlend = 4599; +static int udptlend = 4999; static int udptldebug; /*!< Are we debugging? */ static struct sockaddr_in udptldebugaddr; /*!< Debug packets to/from this host */ #ifdef SO_NO_CHECK @@ -1423,11 +1423,6 @@ } ast_config_destroy(cfg); } - if (udptlstart >= udptlend) { - ast_log(LOG_WARNING, "Unreasonable values for UDPTL start/end ports; defaulting to 4500-4999.\n"); - udptlstart = 4500; - udptlend = 4999; - } if (use_even_ports && (udptlstart & 1)) { ++udptlstart; ast_log(LOG_NOTICE, "Odd numbered udptlstart specified but use_even_ports enabled. udptlstart is now %d\n", udptlstart); @@ -1436,6 +1431,11 @@ --udptlend; ast_log(LOG_NOTICE, "Odd numbered udptlend specified but use_event_ports enabled. udptlend is now %d\n", udptlend); } + if (udptlstart >= udptlend) { + ast_log(LOG_WARNING, "Unreasonable values for UDPTL start/end ports; defaulting to 4500-4999.\n"); + udptlstart = 4500; + udptlend = 4999; + } ast_verb(2, "UDPTL allocating from port range %d -> %d\n", udptlstart, udptlend); }