[asterisk-dev] [Code Review] 2888: AMI/CDR/CEL: only subscribe when enabled
Mark Michelson
reviewboard at asterisk.org
Thu Sep 26 16:59:12 CDT 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2888/#review9811
-----------------------------------------------------------
/branches/12/main/cdr.c
<https://reviewboard.asterisk.org/r/2888/#comment19019>
If you change cdr_toggle_runtime_options() to return -1 and 0 instead of 1 and 0, then you can just change this to
return cdr_toggle_runtime_options();
/branches/12/main/cdr.c
<https://reviewboard.asterisk.org/r/2888/#comment19020>
idem
- Mark Michelson
On Sept. 26, 2013, 8:18 p.m., Matt Jordan wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2888/
> -----------------------------------------------------------
>
> (Updated Sept. 26, 2013, 8:18 p.m.)
>
>
> Review request for Asterisk Developers, David Lee, Joshua Colp, and Mark Michelson.
>
>
> Repository: Asterisk
>
>
> Description
> -------
>
> Subscribing to Stasis isn't free.
>
> As such, this patch makes AMI, CDR, and CEL - the "big 3" - only subscribe when enabled. Toggling their availability via a .conf file will unsubscribe/subscribe as appropriate.
>
> Not subscribing when not available buys a measurable amount of performance when running under load.
>
>
> Diffs
> -----
>
> /branches/12/main/cel.c 399908
> /branches/12/main/cdr.c 399908
> /branches/12/main/manager.c 399908
>
> Diff: https://reviewboard.asterisk.org/r/2888/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Matt Jordan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130926/b43f516a/attachment-0002.html>
More information about the asterisk-dev
mailing list