[Asterisk-Dev] Channels data structures

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed Dec 29 14:43:40 MST 2004


On Wednesday 29 December 2004 14:15, Luis Czop wrote:
> Hi friends,
>
> I'm trying to write a bit of code for FXS channels.
>
> But,  I can't find the relationship between 2 data structures.
>
> Does anyone knows if there exists a relationship between the structures
> zt_chan (from zaptel.h) and ast_channel.

There is, but probably not in the way that you expect.  zt_chan is a driver
structure.  To interface with the zaptel driver, you must use particularly
crafted ioctl(2) calls to the associated device entry.  You cannot directly
manipulate the kernel driver structures from a userspace program; you
must use the provided API calls (via ioctl(2)).

-- 
Tilghman



More information about the asterisk-dev mailing list