[asterisk-dev] [Code Review] chan_iax2: load config before registering any functions

Russell Bryant russell at digium.com
Fri Sep 10 14:10:36 CDT 2010


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



branches/1.4/channels/chan_iax2.c
<https://reviewboard.asterisk.org/r/914/#comment5859>

    I would move all of this before set_config()


- Russell


On 2010-09-10 13:25:45, pabelanger wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/914/
> -----------------------------------------------------------
> 
> (Updated 2010-09-10 13:25:45)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> Check for iax.conf first, before registering any functions, applications or actions.  Otherwise, if you 'module load chan_iax2.so' without iax.conf, some functions, applications and actions will be registered however the module will fail to load.  Allowing you to run 'module load chan_iax2.so' again, causing asterisk to spike to 99% CPU.
> 
> Plus some additional formating.
> 
> 
> Diffs
> -----
> 
>   branches/1.4/channels/chan_iax2.c 281181 
> 
> Diff: https://reviewboard.asterisk.org/r/914/diff
> 
> 
> Testing
> -------
> 
> compile, install, module load / unload chan_iax2.so
> 
> 
> Thanks,
> 
> pabelanger
> 
>




More information about the asterisk-dev mailing list