[asterisk-dev] channel number on DAHDI channel ioctl-s

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sat Feb 14 04:41:05 CST 2009


Hi

I noticed that chan_dahdi can call set_actual_txgain and
set_actual_rxgain in two places: in one place it sets the value of the
parameter chan to 0, and in another: to the one of the channel.

Looking further, I noticed that all the ioctl operations in
dahdi_common_ioctl() (from dahdi_base.c) can accept the channel number
in two ways:

1. The number from the channel for which it was called ("unit")
2. An explicit channel number may be passed

What real use is there for (2)? Do we really want to let one channel
mess with others?

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-dev mailing list