[asterisk-dev] Using the zaptel library for generic HDLC communication

Khelik Mikhail mixel.net at gmail.com
Thu Mar 16 03:28:53 MST 2006


2006/3/16, Mads B. Tandrup <mads_t at yahoo.com>:
> Hello
> I have a Digium TE405P card installed in a Linux
> machine.
> I am trying to generated some generic HDLC packets and
> send them using the E1 interface to an embedded
> device.
>
> I can't seem to find any good documentation on this
> subject.
> Does anyone have pointers in the right direction or
> even example code?
>
> What is the difference/connection between zaptel and
> zapata? And which one should I use?
>
> Best regards,
> Mads B. Tandrup

I an not sure, what actually you are interested in, but you can indeed
use zaptel to create hdlc link, you don't need asterisk in this case
at all, only zaptel drivers. Compile them with
CONFIG_ZAPATA_NET defined in zconfig.h. To assign timeslots for hdlc
link you should use nethdlc directive in zaptel.conf. After starting
of zaptel this will create some (depending of your settings in
zaptel.conf) linux hdlc interfaces which you can configure with
ordinary sethdlc utility. As a result you will be able to use sockets
to send hdlc packets.

I recommend you to use trunk version of zaptel to work with hdlc,
stable has at least one bug related to hdlc.

Best regards,
Mikhail Khelik



More information about the asterisk-dev mailing list