]> git.ipfire.org Git - thirdparty/asterisk.git/commit
openr2(1/6): bugfix in configuration saving
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Mon, 22 Apr 2019 15:02:23 +0000 (18:02 +0300)
committerOron Peled <oron.peled@xorcom.com>
Mon, 22 Jul 2019 18:11:12 +0000 (21:11 +0300)
commit2f0a8e12f9439d809051fcf2fa6be5836df42270
tree1b314a1199c7494653c6a51ae7cabd7013aea954
parent2ba7d3c2b977f5faaa923359e9318fb9027ec9ae
openr2(1/6): bugfix in configuration saving

Details:
  - The memcpy() call copied part of "dahdi_conf" and not "dahdi_conf.mfcr2"
  - As a result, the memcmp() in dahdi_r2_get_link() always fails
  - This cause dahdi_r2_get_link() to create new link for every channel
    (instead of a new link for every ~30 channels)
  - With the fix, far less links are generated -- so we use far less threads

Change-Id: I7259dd6272f5e46e8a6c7f5bf3e8c2ec01b8c132
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
channels/chan_dahdi.c