This Sangoma X25API programming manual explains how to install, configure, start, and program the X25API driver using Linux sockets.
This manual describes the Sangoma X25API driver, a Linux socket-based interface for X.25 communication on Sangoma WANPIPE cards. It covers installation, configuration, startup, and application programming using standard socket functions.
Programming sections detail the socket(), bind(), listen(), accept(), and connect() system calls, plus ioctl commands such as SIOC_WANPIPE_SET_CALL_DATA and SIOC_WANPIPE_ACCEPT_CALL for managing X.25 switched virtual circuits.
| Socket domain | AF_WANPIPE |
|---|---|
| Socket type | SOCK_RAW |
| Protocol | 0 |
| Wanpipe card numbers | 1 to 16 |
Start the driver with the “wanrouter start” command after creating the wanpipe configuration file.
The socket domain is AF_WANPIPE.
Use SIOC_WANPIPE_ACCEPT_CALL to accept an incoming call after the call data has been approved.