[asterisk-dev] [Code Review] handle_request_subscribe is too slow cause of iterating through all sip dialogs

David Vossel dvossel at digium.com
Thu Sep 23 10:58:12 CDT 2010


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



branches/1.6.2/channels/chan_sip.c
<https://reviewboard.asterisk.org/r/901/#comment5981>

    If you are deleting the stateid, there is a dialog ref associated with that id that must be unrefed as well.
    
    Also, shouldn't this be handled in the other switchcase statement earlier in this function for the 481 as well?


- David


On 2010-09-03 18:18:27, schmidts wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/901/
> -----------------------------------------------------------
> 
> (Updated 2010-09-03 18:18:27)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> in chan_sip.c the handle_request_subscribe function is very slow cause of iterating through all sip dialogs on every subscribe, to find old subscribes from this peer to exten at context. This patch will disable this iteration cause its not necessary.
> 
> 
> Diffs
> -----
> 
>   branches/1.6.2/channels/chan_sip.c 284848 
> 
> Diff: https://reviewboard.asterisk.org/r/901/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> schmidts
> 
>




More information about the asterisk-dev mailing list