[asterisk-dev] [Code Review] 4211: Speed up loopback switches by avoiding unneeded lookups

Birger Harzenetter reviewboard at asterisk.org
Tue Dec 2 09:57:24 CST 2014


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

(Updated Dec. 2, 2014, 9:57 a.m.)


Review request for Asterisk Developers.


Changes
-------

Added issue


Bugs: ASTERISK-24577
    https://issues.asterisk.org/jira/browse/ASTERISK-24577


Repository: Asterisk


Description
-------

Just a small rearrangement to only do dialplan lookups if the pattern matches instead of discarding the result.
Dialplan lookups can be very costly if remote switches - like dundi - are present.
In those cases extension matching is sped up considerably, making the issue of lost digits more manageable.

I've left the extra debug value, I added before hitting the obvious.

As collateral damage, 6 trailing spaces were killed.


Diffs
-----

  trunk/pbx/pbx_loopback.c 428600 

Diff: https://reviewboard.asterisk.org/r/4211/diff/


Testing
-------

Works for me (tm)


Thanks,

Birger Harzenetter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20141202/58c23d65/attachment.html>


More information about the asterisk-dev mailing list