Actual DAHDI Channel Number

I want to know actual DAHDIchannel 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 put ${CHANNEL(dahdi_span)} to know the span and ${CHANNEL(dahdi_channel)}
for actual channel number in incoming context of PRI. For outbound I normally use M flag in Dial() to call a macro and check the above variables in that macro.