[asterisk-users] Actual DAHDI channel number

Richard Mudgett rmudgett at digium.com
Tue Nov 6 11:13:21 CST 2012


> I want to know actual DAHDI channel number (pseudo), which received
> the
> call or dialed the call. Where as when Asterisk receives a call on
> DAHDI
> channel, it shows channel as "DAHDI/i5/112-15"
> Is there any way / configuration to change this behavior and get
> actual
> channel number? Earlier we used to get this.
> 
> I am using Asterisk 1.8.11 and Dahdi 2.4

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



More information about the asterisk-users mailing list