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

Kevin P. Fleming kpfleming at digium.com
Sat Feb 14 12:57:52 CST 2009


Tzafrir Cohen wrote:

> In that case the ioctl code should default to using 'unit' (the number
> of the channel) and only use the number from userspace if unit is not
> set (which means the ioctl was called on /dev/dahdi/ctl). Right?

Well, unit will be set even for /dev/dahdi/ctl, it will just be 255 or
one of those high numbers (too lazy to look at the code right now). But
yes, it would only accept the unit number from userspace if the current
unit number is for /dev/dahdi/ctl.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpfleming at digium.com
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list