Fix a longstanding issue with MFC-R2 configuration that prevented users
authorMoises Silva <moises.silva@gmail.com>
Fri, 12 Jul 2013 22:35:50 +0000 (22:35 +0000)
committerMoises Silva <moises.silva@gmail.com>
Fri, 12 Jul 2013 22:35:50 +0000 (22:35 +0000)
commitd92b2f375435748f82ad6d4788f3cbcf0ed7cd47
treeffad163ffb46245007bb3c49627250f1e240af09
parent238a54fa15c445897a2f4b73ec777ea2f51cd1f9
Fix a longstanding issue with MFC-R2 configuration that prevented users
from mixing different variants or general MFC-R2 settings within the same E1 line.

Most users do not have a problem with this since MFC-R2 lines are usually fractional E1s, or
the whole E1 has the same country variant and R2 settings.

In Venezuela however is common to have inbound MFC-R2 and outbound DTMF-R2 within the same E1.

This fix now properly parses the chan_dahdi.conf file to generate a new openr2 context every
time a new channel => section is found and the configuration was changed.

(closes issue ASTERISK-21117)
Reported by: Rafael Angulo
Related Elastix issue: http://bugs.elastix.org/view.php?id=1612
........

Merged revisions 394106 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c