...
Wanpipe TDM Voice API Solution
Wanpipe Release -> Download Here
-> TDM API Driver
-> LibSangoma User Library -> user space API.
...
Wanpipe Package Installation
Untar LATEST release
Code Block tar xvfz wanpipe-<version>.tgz
Change directory into wanpipe source directory
Code Block cd wanpipe-<version>/
Compile and install wanpipe driver
Code Block make make install
To confirm successful installation run:
Code Block wanrouter hwprobe
...
Code Block wanrouter start
->This command will load and configure wanpipe drivers
-> For full wanrouter usage click hereFull driver log and events are located in /var/log/messages
->Code Block tail -f /var/log/messages
At this point TDM driver is configured and ready to tx/rx voice & dchan data. One must make sure that ports are in connected state before trying to tx/rx data using the API programs.
-> wanrouter status #check status of all ports
-> wanpipemon -i w1g1 -c Ta #check T1/E1 alarms of each portOnce all ports are connected the ifconfig command can be used to confirm that card running.
-> ifconfig
The rx/tx data packets should be incrementing
The MTU value indicates the hardware chunk size
Any rx or tx errors indicate that something is wrong with the data flow.
-> overruns : indicate dma problems or mis-configured system.
...
cd /etc/wanpipe/api/libsangoma
./configure
make
make install
Add library path /usr/local/lib into /etc/ld.so.conf
Run ldconfig to accept /etc/ld.so.conf changes.
Wanpipe LibSangoma with LibPRI Installation (Optional must be done manually)
Download libpri from www.asterisk.org and save it into /usr/src directory.
Untar libpri tgz file in /usr/src directory
Change directory into libpri and run: make; make install
cd /etc/wanpipe/api/libsangoma
./configure --with-libpri=/usr/src/<libpri directory>
make
make install
Add library path /usr/local/lib into /etc/ld.so.conf
Run ldconfig to accept /etc/ld.so.conf changes.
...
Sample API configuration Files
...