В звездочке 1.4 номер канала был указан в chan-> name.например, число 62:
asterisk 1.4 ZAPTEL: Zap/62-1
Как получить фактический номер канала в звездочке 13 на языке c?например, в chan-> name это число только для span.
asterisk 13 DAHDI: DAHDI/I2/102-1
Вот что говорит Р.Маджет о extenons.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-language API?