BRI on FreeTDM with ftmod_libpri
Just a short dump of the configuration files involved in getting a BRI PTMP (Point-to-Multipoint) TE setup running (with a HFC-S card and (v)zaphfc):
1. Install latest libpri (1.4.12_beta2 or higher)
2. Configure and install FreeSWITCH / FreeTDM with configure option “–with-libpri”
FreeTDM configure should output this:
<<>> Digium libpri checking whether libpri is usable... yes checking whether libpri has BRI support... yes checking whether libpri has AOC event support... yes
/etc/dahdi/system.conf:
loadzone=nl defaultzone=nl span=1,1,0,ccs,ami bchan=1,2 hardhdlc=3
freetdm.conf:
[span zt BRI_1] number => 1 trunk_type => BRI_PTMP b-channel => 1,2 d-channel => 3
freetdm.conf.xml:
...
<libpri_spans>
<span name="BRI_1">
<param name="dialplan" value="XML"/>
<param name="context" value="isdn"/> <!-- custom context for incoming ISDN calls -->
<param name="node" value="cpe"/>
<param name="switch" value="euroisdn"/>
<!-- <param name="debug" value="q931_all"/> -->
<!-- Some BRI lines may not like the REDIRECTING NUMBER IE,
use this option to disable it
<param name="opts" value="omit_redirecting_number"/>
-->
</span>
<!-- other libpri spans -->
</libpri_spans>
...
