Sangoma X25API Driver Programming Manual

This Sangoma X25API programming manual explains how to install, configure, start, and program the X25API driver using Linux sockets.


Sangoma X25API Driver Programming Manual - cover page
Brand
Sangoma
Category
Other software
Document type
Programming Manual
Language
English
Pages
12
File format
PDF
File size
92 KB
Published
19 November, 2026
Updated
19 November, 2026
MD5 checksum
27593CA643D152E4CBB9BFEEDD674846

About this manual

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.

What's inside

  • Introduction
  • Installation
  • Configuring X25API
  • Starting up X25API
  • Programming X25API
  • socket() function
  • bind() function
  • listen() system call
  • accept() system call
  • connect() system call

Specifications

Socket domainAF_WANPIPE
Socket typeSOCK_RAW
Protocol0
Wanpipe card numbers1 to 16

Frequently asked questions

How do I start the X25API driver?

Start the driver with the “wanrouter start” command after creating the wanpipe configuration file.

What socket domain is used for X25API programming?

The socket domain is AF_WANPIPE.

Which ioctl command accepts an incoming X25 call?

Use SIOC_WANPIPE_ACCEPT_CALL to accept an incoming call after the call data has been approved.

Download PDF (92 KB)