Dynamic Port Configuration
Starting with 7.0.11, the Card driver now supports dynamic front end configuration.
This means that you can change configuration on the fly without needing to restart all panpipe ports (or driver).
This is very important during Asterisk, FreeSWITCH or Custom Application debuggingÂ
when wanpipe restart is not an option.
Read Current Front End Configuration
Type the following command on your Linux CLI to read the current front end configuration
->Â wanpipemon -i w1g1 -c Tread
Â
Set Front End Configuration
Type the following command on your Linux CLI to set the front end configuration
-> wanpipemon -i w1g1 -c Twrite -fe_lcode [HDB3|AMI] -fe_framing [NCRC4|CRC4] -fe_clock [NORMAL|MASTER] –fe_sig [CAS|CCS]
Â
example:
To set the clock from NORMAL to MASTER
-> wanpipemon -i w1g1 -c Twrite -fe_clock MASTER
Â
Note:Â
w1g1 is the name of the Wanpipe SPAN. Â
To view all spans run the ifconfig command.
All options can be run separately or together.
All changes will be logged in the stanard kernel syslog file.
Under Centos/RedHat it would be /var/log/messages
Dynamically Set Loopback Mode
In previous driver releases, the digial loopback mode required wanpipe reconfiguration and wanpipe port restart.
In order to dynamically configure a port into a digial loopback modeÂ
Set port into MASTER (internal oscillator) clock
wanpipemon -i w1g1 -c Twrite -fe_clock MASTER
Enable Digial Loopback Mode
wanpipemon -i w1g1 -c Tadlb
Â
When you are done debugging reverse the config
Disable Digial Loopback Mode
wanpipemon -i w1g1 -c Tddlb
Set port back into NORMAL (line)Â clock
wanpipemon -i w1g1 -c Twrite -fe_clock NORMAL
Set/Clear Wanpipe SPAN into ALARM state
Sometimes it is usefull to bring down a specific span without having to reconfigure and restart your whole application.
Disable tx clock on the T1/E1 line, which will cause the remote end to go into RED alarm.
The local side will receive the RAI alarm which will cause the Wanpipe T1/E1 port to go down.
Asterisk/FreeSWITCH would see the alarm and the link would go down.
->Â wanpipemon -i w1g1 -c Ttxd
Â
Enable tx clock on the T1/E1 line, which will cause the remote end to come out of RED alarm.
The local alarms will clear and Wanpipe T1/E1 port will come up.
Asterisk/FreeSWITCH would see the alarm state clear.
->Â wanpipemon -i w1g1 -c Ttxe
Â
 For more info on wanpipemon command run: wanpipemon -p aft for help.
Â