[asterisk-dev] [Code Review] fix default udptl port range which differs in source / udptl.conf.sample

Tilghman Lesher reviewboard at asterisk.org
Mon Nov 7 09:09:43 CST 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1565/#review4710
-----------------------------------------------------------

Ship it!


I agree that the defaults in any config file should match the defaults in the code, unless explicitly documented otherwise.

- Tilghman


On Nov. 4, 2011, 4:53 a.m., wdoekes wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1565/
> -----------------------------------------------------------
> 
> (Updated Nov. 4, 2011, 4:53 a.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> Since Pauls r1455 is stalled -- thread safety issues -- I'd like to address this old bug.
> 
> In udptl.conf.sample the UDPTL port range is 4000-4999.
> In udptl.c it is 4500-4599 if you don't have a config file.
> If you do have a config file, it's 4500-4999.
> 
> I'd like to change them all to 4000-4999. The reason: I suspect that most people using this will have the config file from the samples and thus will already have 4000-4999.
> The drawback would be that those that have a smaller range port mapped / firewall-allowed would now get failed UDPTL connections. But, this is what the UPGRADE.txt is for.
> 
> I suggest adding it to branch 10 because it is a difference in behaviour, but not large enough that it will spoil the release.
> 
> (The changeset also fixes a typo, and the oddity that supplying 4002-4002 would become 4500-4999, while 4002-4003 would become 4002-4002 if you had use_even_ports=yes.)
> 
> 
> This addresses bug ASTERISK-16250.
>     https://issues.asterisk.org/jira/browse/ASTERISK-16250
> 
> 
> Diffs
> -----
> 
>   /branches/10/UPGRADE.txt 343442 
>   /branches/10/main/udptl.c 343442 
> 
> Diff: https://reviewboard.asterisk.org/r/1565/diff
> 
> 
> Testing
> -------
> 
> It compiles.
> 
> 
> Thanks,
> 
> wdoekes
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20111107/48bfd1c5/attachment.htm>


More information about the asterisk-dev mailing list