]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx/pbx_loopback: Speed up switches by avoiding unneeded lookups
authorMatthew Jordan <mjordan@digium.com>
Tue, 2 Dec 2014 17:02:12 +0000 (17:02 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 2 Dec 2014 17:02:12 +0000 (17:02 +0000)
commit65750b7782f28f44a6d90e31c779816d27debf69
tree810d87bc68faf733a5013282e04fe4e53121a5a3
parentb86f59f8d18618daa6d18f8a7b4e7272b095356d
pbx/pbx_loopback: Speed up switches by avoiding unneeded lookups

This patch makes a small rearrangement to only do dialplan lookups during
loopback switches if the pattern matches. Prior to this patch, the dialplan
lookups were always performed, even when the result would be discarded.
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.

As collateral damage, 6 trailing spaces were killed.

Review: https://reviewboard.asterisk.org/r/4211

ASTERISK-24577 #close
Reported by: Birger Harzenetter
patches:
  ast-loopback.patch uploaded by Birger Harzenetter (License 5870)
........

Merged revisions 428787 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@428788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
pbx/pbx_loopback.c