LibSangoma- API Documentation
LibSangoma proves OS abstraction to Wanpipe Driver Voice & Data API system calls. It contains all Wanpipe Driver Voice & Data API functions, abstracted for Linux & Windows so that user application remains OS independent.
LibSangoma Components
- Configuration Functions
configure T1/E1, analog, BRI ports before they are started or restarted - System Operation Functions
used to start, stop, restart Sangoma tdm ports - IO Operation Functions
used to open, close, read, write,poll on bchan or dchan devices
set events that relate to IO or call setup
callerid, on-hook, off-hook, rbs etc… - Event Functions
used to read events from bchan or dchan devices.
Used to enable or disable hw events (DTMF, Fax events …) - Statistic Functions
used to read hw and driver statistics.
Operational, Hardware, Error, IO, statistics
LibSangoma IO Componnets
- SPAN Mode
Single device per T1/E1 span.
Data from a single span is passed up to a user as a single chunk of data.
User has the responsibility to multiplex and de-multiplex data per channel.
Better performance on higher densities.
Harder to develop on. - CHAN mode
Device per T1/E1 channel
Highly efficient interrupt logic to minimize number of interrupts.
High kernel context switching due to large number of devices.
Easer to develop on. Easily fits into a multi-thread applications.
Default behavior for Zaptel/DAHDI, FreeSWITCH, SMG