berofix: Creating a SIP-Account On the berofix Web-Gui you have to enter a new SIP account which points to the Grandstream device, as you can see in the next picture.
Name: the name for this SIP account
Server Address: The IP-Address of your Grandstream ATA
User: not used because there is not authentication
Secret: not used because there is not authentication
Register: this has to be unchecked. berofix should not register at the Grandstream
It is important that the Option T.38 is enabled under the section more.
berofix: Creating Dialplan Rules We have to create Dialplan rules to allow receiving and sending calls/faxes from the Grandstream device, as you can see in the next picture.
In this example we have created 2 Dialplan rules. The first one is for sip-ISDN calls (row 1 in the picture for outbound faxes). This rule will send all calls starting with the a prefix '0' and has the CallerID 'myfax' to the ISDN Port-Group. berofix will remove the prefix '0' from the CalledID and change the CallerID to +4930259389819.
The second rule is for ISDN-SIP calls (row 2 in the picture for inbound faxes). This rule will send all calls starting with the CalledID 25038919 to the SIP Account 'GS_502'. berofix will modify the CalledID to 26 and send the call to the Grandstream.
Grandstream: In this Howto we use a Grandstream HT-502 Device with 2 FXS Port and the following Software Versions:
Product Model: HT-502 V1.1B Software Version: Program-- 22.214.171.124 Bootloader-- 126.96.36.199 Core-- 188.8.131.52 Base-- 184.108.40.206The configuration of the Grandstream is very simple. After you have setup the network go to the Point FXS Port1, where our Fax machine is connected. You will get the following configuration Form:
As you can see in the above picture we applied the IP-Address of the berofix device for the following fields:
- Primary SIP Server
- Failover SIP Server
- Outbound Proxy
Please make sure that the option 'Outgoing Call without Registration' is set to 'Yes'. The Grandstream device could not really register at the berofix so this option has to be set to yes.
Last but not least you have to set some T.38 option as you can see in the next picture.
- T.38 mode: T.38 (Auto Detect)
- Fax mode: has to set to T.38 (Auto Detect)
- Fax tone detection mode: has to be set to Callee