wanpipe-freeswitch-configTo configure your system, you will need the following 3 steps:
- Configure Wanpipe and mod_openzap
- Configure FreeSwitch / mod_openzap
- Configure FreeSwitch and Sangoma PRI Daemon
- Some Dialplan examples
- To start freeswitch
Configure Wanpipe and mod_openzap
The wancfg_fs utility will configure the card (wanpipe#.conf,smg_prid.conf/smg_brid.conf), openzap(openzap.conf) and FreeSwitch (openzap.conf.xml)
#> /usr/sbin/wancfg_fs
Configure FreeSwitch
To make use of OpenZap in FreeSwitch we need to enable it in modules.conf.xml located at <FreeSwitchome>/conf/autoload_configs/.
Soedit the file conf/autoload_configs/modules.conf.xml and change the line:
<!-- <load module="mod_openzap"/> -->
to look like this:
<load module="mod_openzap"/>
To start freeswitch
/usr/local/freeswitch/bin/freeswitch -nc
run : ps fax to see if freeswitch is up.
Wait 1 minute then see if the cli is there:
/usr/local/freeswitch/bin/fs_cli
Some Dialplan Examples
Dial string is "openzap/<span_name>/a/<destination_number>@<group_number>" For example: Following Dialplan calls Sangoma's Toll Free Number when 333 is dialed from SIP phone.
<extension name="outgoing"> <condition field="destination_number" expression="^(333)$"> <action application="bridge" data="openzap/smg_prid/a/1800388247@g1"/> </condition> </extension>
Note: Group Number can be found inside /etc/wanpipe/smg_pri.conf for PRI or /etc/wanpipe/smg_bri.conf for BRI
|