Mark EltonMark Elton 

Is there a command in Asterisk that tells me what type of PRI card I have?

Best Answer chosen by Denis (Sangoma) 
DenisDenis (Sangoma) 
Mark,

The question that you posed is a little more complex than it seems.

The Asterisk's core does not interact directly with the Digium interfaces cards. As matter of fact, the core only communicates with the channels drives that reports the state of each available channels.

As an example:

If you have Asterisk setup with TE122 (24 channels) and TDM844 (8 channels). Asterisk will know that it has up to 32 available channels in chan_dahdi, but it won't know the hardware configuration on each of cards.

Within the chan_dahdi module  - The channel driver that manages the communication between the Asterisk's core and DAHDI - there is a CLI command that you could use to query the status of each card.

dahdi show status

Example:

*CLI> dahdi show status
Description     ....                          
T2XXP (PCI) Card 0 Span 1 ...
T2XXP (PCI) Card 0 Span 2 ...
Wildcard TDM410P  ...

Keep in mind that this command reports all the cards detected by DAHDI regardless if their channels are configured in asterisk.

If you want to know the hardware configuration of the cards, we suggest to look for DAHDI output in dmesg. DAHDI will report all the modules that were detected during the cards initialization and you could look this information by running the following command:

dmesg | grep -i "wct" | grep -i "vpm"

Example:

[root@server ~]# dmesg | grep -i "wct" | grep -i "vpm"
wct4xxp 0000:03:08.0: VPM450: Not Present
wctdm24xxp 0000:04:02.0: Booting VPMADT032
wctdm24xxp 0000:04:02.0: VPM present and operational (Firmware version 125)


- WCT4XXP is the driver for the dual and quad span cards.  "VPMxxx: Not Present" means that none of our digital cards have a hardware echo cancellation module

- WCTDM24XXP is the driver for our analog cards, "  Booting VPMADT032" and "VPM present and operational" means that a Hardware echo cancelation was found and it's firmware was successfully loaded.

Keep in mind that the reported message about the hardware echo cancellation module could be different  depending on card or module.

Please let me know if you have more questions.

All Answers

Mark EltonMark Elton
More specifically i want to know if I can tell if my PRI card has an echo cancellation module fitted or not, is it possible to tell through Asterisk?
DenisDenis (Sangoma) 
Mark,

The question that you posed is a little more complex than it seems.

The Asterisk's core does not interact directly with the Digium interfaces cards. As matter of fact, the core only communicates with the channels drives that reports the state of each available channels.

As an example:

If you have Asterisk setup with TE122 (24 channels) and TDM844 (8 channels). Asterisk will know that it has up to 32 available channels in chan_dahdi, but it won't know the hardware configuration on each of cards.

Within the chan_dahdi module  - The channel driver that manages the communication between the Asterisk's core and DAHDI - there is a CLI command that you could use to query the status of each card.

dahdi show status

Example:

*CLI> dahdi show status
Description     ....                          
T2XXP (PCI) Card 0 Span 1 ...
T2XXP (PCI) Card 0 Span 2 ...
Wildcard TDM410P  ...

Keep in mind that this command reports all the cards detected by DAHDI regardless if their channels are configured in asterisk.

If you want to know the hardware configuration of the cards, we suggest to look for DAHDI output in dmesg. DAHDI will report all the modules that were detected during the cards initialization and you could look this information by running the following command:

dmesg | grep -i "wct" | grep -i "vpm"

Example:

[root@server ~]# dmesg | grep -i "wct" | grep -i "vpm"
wct4xxp 0000:03:08.0: VPM450: Not Present
wctdm24xxp 0000:04:02.0: Booting VPMADT032
wctdm24xxp 0000:04:02.0: VPM present and operational (Firmware version 125)


- WCT4XXP is the driver for the dual and quad span cards.  "VPMxxx: Not Present" means that none of our digital cards have a hardware echo cancellation module

- WCTDM24XXP is the driver for our analog cards, "  Booting VPMADT032" and "VPM present and operational" means that a Hardware echo cancelation was found and it's firmware was successfully loaded.

Keep in mind that the reported message about the hardware echo cancellation module could be different  depending on card or module.

Please let me know if you have more questions.
This was selected as the best answer
Mark EltonMark Elton
That helps a lot actually.

When I entered the command I got the following response.

[root@voip dahdi]# dmesg | grep -i "wct" | grep -i "vpm"
wct4xxp 0000:0a:02.0: Disabling VPMOCT128. TE2XXP requires a VPMOCT064<6>dahdi_transcode: Loaded.

Does this mean I have the module but it is not loaded or installed?
DenisDenis (Sangoma) 
Mark,

The problem that you are experienig is caused by an incompatibilty issue. According to the output, it seems that you installed the wrong module on the card.

Please keep in mind that VPM0CT128 is the hardware echo cancellation for Digium quad span cards (TE4xx) but it seems that you have installed on Digium dual span card (TE2xx)

In order to fix this issue, you need to replace the module. Please install a VPMOCT064.

For more information about our Hardware Echo Cancellation modules, please visit:

http://www1.digium.com/en/products/telephony-cards/modules-accessories/echo-cancellation
Mark EltonMark Elton
That would explain a lot.

so there is no way of making this module work with the card we have?
DenisDenis (Sangoma) 
Mark

I don't think that is possible, currently our drivers does not allow this type of hardware configuration.
Mark EltonMark Elton
Is there a way (command) of getting the serial number of the card in CLI?
DenisDenis (Sangoma) 
Currently our TE8xx (Octal span card) is the only card that supports this feature. In order to get its serial number, you need execute the following command:

#dmesg | grep -i <digium driver name>

Example:

dmesg | grep -i wct4xxp
Previous MonthNext Month
SunMonTueWedThuFriSat