在星号 1.4 中,通道数在 chan->name 中指定。例如 62 号:
asterisk 1.4 ZAPTEL: Zap/62-1
如何在 c 语言中获取星号 13 中的实际通道数?例如,在 chan->name 中仅命名这个跨度数。
asterisk 13 DAHDI: DAHDI/I2/102-1
以下是 R.Mudget 对 extentons.conf 的评价:
You can use the AMI action DAHDIShowChannels to get the current channel mapping. There is an AMI event that you can look for: Event: DAHDIChannel Channel: name Uniqueid: id DAHDISpan: 5 DAHDIChannel: 23 It is generated whenever a call is assigned to a B channel or a call moves to a different B channel. There is also the CHANNEL() dialplan function: CHANNEL(dahdi_channel) CHANNEL(dahdi_span) CHANNEL(dahdi_type) The DAHDIChannel event and CHANNEL() function are mentioned in the UPGRADE.txt file. Richard
但是如何在 c 语言 API 中获得实际的通道数?