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.