[asterisk-dev] [Code Review] Correct the number of available call numbers in IAX2
Sean Bright
reviewboard at asterisk.org
Sat Jan 26 12:23:48 CST 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2293/
-----------------------------------------------------------
(Updated Jan. 26, 2013, 12:23 p.m.)
Review request for Asterisk Developers.
Changes
-------
Update the diff to address Richard's comments.
Interestingly, while testing this I observed that when chan_iax2 randomly chooses 32768, it effectively stalls for ~4 sec on my development machine.
Summary
-------
While populating the list of available call numbers in IAX2 when LOW_MEMORY is not defined, we use every number between 2 and 32768 (inclusive). 32768 is a 16 bit number (a 1 followed by 15 0s). According to the IAX2 RFC, call numbers are 15 bit values, making 32768 invalid.
This patch reduces the number of allocated call numbers by 1 so that the are all 15 bits.
I have another patch to replace the ao2_container usage for call number selection almost ready for RB as well.
Diffs (updated)
-----
/trunk/channels/chan_iax2.c 380158
Diff: https://reviewboard.asterisk.org/r/2293/diff
Testing
-------
None.
Thanks,
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130126/d208e800/attachment.htm>
More information about the asterisk-dev
mailing list