Multiple PRI (ISDN) cards on a single FreeSWITCH box

Where the number simultaneous calls are increasing many of you would like to scale up your FreeSWITCH/Asterisk system by increasing number of PRI/BRI lines to your system and for that, you would like to run more than one telephony card. 

I have successfully tested 3 cards on a single FreeSWITCH machine.

Here is a simple tutorial on how to achieve that (With reference to DAHDI. ofcourse you can use sangoma or any other manufacturer’s cards).

  1. Insert the card into your PCIe slot (as most of the cards today are PCIe compatible)
  2. Load the driver module specific for the cards.
    Now this step should be taken care of. Suppose you are using DAHDI as the driver interface, you have to find the name of the specific driver module for the particular card e.g. for digium 8-span card it’s “wct4xxp”, for single span “wcte12xp” . Now load the module(This step could be different for different OS platforms).
    Now if you are using different type of cards (of same manufacturer as I used) e.g. 8-span and 4-span, you will have to load modules for both the cards.
  3. After modules are loaded properly the cards can be detected by the system.
  4. Configure cards in system.conf (wrt dahdi). 
    If you are using 8+4 span card for example, configure 1-12 spans in system.conf and run dahdi configuration utility and the lines will be up if connected properly.
  5. Now the last step is to configure mod_freetdm. Configure 12 spans in the configuration files of mod_freetdm(refer wiki) and if done properly the system will be up and running.

If you find any issues reach me at gautamashish09[at]gmail.com 

FreeSWITCH FreeBSD Digium 8 span card ‘defult linemode’ issue

In freebsd ( for E1 lines) the default linemode in which the module wct4xxp is T1. For E1 lines in FreeBSD environment the command to set the default linemode does’nt work. Here is a simple source code hack for this:

1. untar /usr/ports/distfiles/dahdi-freebsd-2.6.1-r10738.tar.gz to some directory say ‘/root’

2. go to dahdi-freebsd-2.6.1-r10738/drivers/dahdi/wct4xxp and open base.c (wct4xxp is the module for 8-span digium card).

3. go to line 196 which is:

static char default_linemode[] = “t1”

change “t1” to “e1” and save changes.

Also change line 198 :

static char *default_linemode = “t1”;

to

static char *default_linemode = “e1”;

4. tar the directory and overwrite to /usr/ports/distfiles/dahdi-freebsd-2.6.1-r10738.tar.gz .

5. Calculate the SHA256 hash and the size of the tar file.

6. Go to /usr/ports/misc/dahdi-kmod26/ and open distinfo.

7. Update the SHA256 hash and size of the dahdi-freebsd-2.6.1-r10738.tar.gz file there.

Done!!!!!!

Now install the dahdi-kmod26 port again and the card should work for E1 PRI line.