<div> </div>
<div>not 100% sure, but I have doubts that having </div>
<div> </div>
<div>span=1,1,0,ccs,hdb3,crc4</div>
<div> </div>
<div>on both side is correct - you should have span=1,0,0,ccs,hdb3,crc4 on one side - so one clock is master and the other slave</div>
<div> </div>
<div>occasionnally, I've noticed than a reboot when changing these parameters has proven more effective than a simple dahdi_cfg.</div>
<div>j.<br><br></div>
<div class="gmail_quote">On Wed, Jun 2, 2010 at 9:28 PM, Geoffrey Yeoh <span dir="ltr"><<a href="mailto:pbyeoh@gelxis.co.uk">pbyeoh@gelxis.co.uk</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div lang="EN-GB" vlink="purple" link="blue">
<div>
<p class="MsoNormal">Further to my post last month, I’ve done the following but still have problem in getting the linkset up..</p>
<p class="MsoNormal"> </p>
<p><span>1.<span style="FONT: 7pt 'Times New Roman'"> </span></span>Installed two trixbox PC with trixbox 2.8.0.3 (Dahdi version 2.2.0-4 and Asterisk version 1.6.0.10-5).</p>
<p><span>2.<span style="FONT: 7pt 'Times New Roman'"> </span></span>Each trixbox is equipped with a Sangoma A101 card (No echo cancellation hardware) configured with Sangoma Wanpipe driver version 3.5.11.</p>
<p><span>3.<span style="FONT: 7pt 'Times New Roman'"> </span></span>Configured both cards as E1 and TDM as voice protocol.</p>
<p><span>4.<span style="FONT: 7pt 'Times New Roman'"> </span></span>Connect both cards with a crossover cable (1-4,2-5 / 4-1,5-2)</p>
<p><span>5.<span style="FONT: 7pt 'Times New Roman'"> </span></span>Setup the following configuration files:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">TRIXBOX 1 -</p>
<p>/etc/dahdi/system.conf</p>
<p>span=1,1,0,ccs,hdb3,crc4</p>
<p>bchan=1-15,17-31</p>
<p>dchan=16</p>
<p>echocanceller=mg2,1-15,17-31</p>
<p>loadzone=us</p>
<p>defaultzone=us</p>
<p> </p>
<p>/etc/asterisk/chan_dahdi.conf</p>
<p class="MsoNormal">[channels]</p>
<p class="MsoNormal">echocancel=no</p>
<p class="MsoNormal">echocancelwhenbridged=no</p>
<p class="MsoNormal">group=1</p>
<p class="MsoNormal">signalling=ss7</p>
<p class="MsoNormal">ss7type=itu</p>
<p class="MsoNormal">ss7_called_nai=national</p>
<p class="MsoNormal">ss7_calling_nai=national</p>
<p class="MsoNormal">linkset=1</p>
<p class="MsoNormal">pointcode=1</p>
<p class="MsoNormal">adjpointcode=2</p>
<p class="MsoNormal">defaultdpc=2</p>
<p class="MsoNormal">networkindicator=national</p>
<p class="MsoNormal">sigchan=16</p>
<p class="MsoNormal">cicbeginswith=1</p>
<p class="MsoNormal">channel=1-15</p>
<p class="MsoNormal">cicbeginswith=17</p>
<p class="MsoNormal">channel=17-31</p>
<p class="MsoNormal">ss7_internationalprefix=00</p>
<p class="MsoNormal">ss7_nationalprefix=0</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">TRIXBOX 2 – </p>
<p>/etc/dahdi/system.conf</p>
<p>span=1,1,0,ccs,hdb3,crc4</p>
<p>bchan=1-15,17-31</p>
<p>dchan=16</p>
<p>echocanceller=mg2,1-15,17-31</p>
<p>loadzone=us</p>
<p>defaultzone=us</p>
<p> </p>
<p>/etc/asterisk/chan_dahdi.conf</p>
<p class="MsoNormal">[channels]</p>
<p class="MsoNormal">echocancel=no</p>
<p class="MsoNormal">echocancelwhenbridged=no</p>
<p class="MsoNormal">group=1</p>
<p class="MsoNormal">signalling=ss7</p>
<p class="MsoNormal">ss7type=itu</p>
<p class="MsoNormal">ss7_called_nai=national</p>
<p class="MsoNormal">ss7_calling_nai=national</p>
<p class="MsoNormal">linkset=1</p>
<p class="MsoNormal">pointcode=2</p>
<p class="MsoNormal">adjpointcode=1</p>
<p class="MsoNormal">defaultdpc=1</p>
<p class="MsoNormal">networkindicator=national</p>
<p class="MsoNormal">sigchan=16</p>
<p class="MsoNormal">cicbeginswith=1</p>
<p class="MsoNormal">channel=1-15</p>
<p class="MsoNormal">cicbeginswith=17</p>
<p class="MsoNormal">channel=17-31</p>
<p class="MsoNormal">ss7_internationalprefix=00</p>
<p class="MsoNormal">ss7_nationalprefix=0</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">With both setup, I’ve ran dahdi_scan on both machines and got the following result on both machines:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">[trixbox1.localdomain ~]# dahdi_scan</p>
<p class="MsoNormal">[1]</p>
<p class="MsoNormal">active=yes</p>
<p class="MsoNormal">alarms=OK</p>
<p class="MsoNormal">description=wanpipe1 card 0</p>
<p class="MsoNormal">name=WPE1/0</p>
<p class="MsoNormal">manufacturer=</p>
<p class="MsoNormal">devicetype=</p>
<p class="MsoNormal">location=</p>
<p class="MsoNormal">basechan=1</p>
<p class="MsoNormal">totchans=31</p>
<p class="MsoNormal">irq=0</p>
<p class="MsoNormal">type=digital-</p>
<p class="MsoNormal">syncsrc=0</p>
<p class="MsoNormal">lbo=0 db (CSU)/0-133 feet (DSX-1)</p>
<p class="MsoNormal">coding_opts=HDB3</p>
<p class="MsoNormal">framing_opts=CCS,CRC4</p>
<p class="MsoNormal">coding=HDB3</p>
<p class="MsoNormal">framing=CCS</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Visually, I can see both cards status LED is showing green which means good connection.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">[trixbox1.localdomain ~]# wanrouter status</p>
<p class="MsoNormal">Devices currently active: wanpipe1</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Wanpipe Config:</p>
<p class="MsoNormal">Device name | Protocol Map | Adapter | IRQ | Slot/IO | If's | CLK | Baud rate |</p>
<p class="MsoNormal">wanpipe1 | N/A | A101/2 | 201 | 5 | 1 | N/A | 0 |</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Wanrouter Status:</p>
<p class="MsoNormal">Device name | Protocol | Station | Status |</p>
<p class="MsoNormal">wanpipe1 | AFT TE1 | N/A | Connected |</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">The /etc/wanpipe.conf on both cards is similar:</p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt"> </span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">[devices]</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">wanpipe1 = WAN_AFT, Comment</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">[interfaces]</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">w1g1 = wanpipe1, , TDM_VOICE, Comment</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">[wanpipe1]</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">CARD_TYPE = AFT</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">S514CPU = A</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">CommPort = PRI</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">AUTO_PCISLOT = NO</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">PCISLOT = 5</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">PCIBUS = 2</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">FE_MEDIA = E1</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">FE_LCODE = HDB3</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">FE_FRAME = CRC4</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">FE_LINE = 1</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">TE_CLOCK = MASTER (The second machine, the card is configured as NORMAL)</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">TE_REF_CLOCK = 0</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">TE_HIGHIMPEDANCE = NO</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">TE_RX_SLEVEL = 430</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">LBO = 120OH</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">TE_SIG_MODE = CCS</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">FE_TXTRISTATE = NO</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">MTU = 1500</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">UDPPORT = 9000</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">TTL = 255</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">IGNORE_FRONT_END = NO</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">TDMV_SPAN = 1</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">TDMV_DCHAN = 16</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">TDMV_HW_DTMF = NO</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">[w1g1]</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">ACTIVE_CH = ALL</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">TDMV_ECHO_OFF = NO</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt">TDMV_HWEC = NO</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">The problem is, when I tried to check the status of the SS7 linkset, it’s telling me that the link is still down.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">trixbox1*CLI> ss7 show linkset 1</p>
<p class="MsoNormal">SS7 linkset 1 status: Down</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">trixbox1*CLI> ss7 debug linkset 1</p>
<p class="MsoNormal">Enabled debugging on linkset 1</p>
<p class="MsoNormal">Len = 4 [ ff ff 01 00 ]</p>
<p class="MsoNormal">FSN: 127 FIB 1</p>
<p class="MsoNormal">BSN: 127 BIB 1</p>
<p class="MsoNormal">>[0] LSSU SIO</p>
<p class="MsoNormal">Link state change: NOTALIGNED -> IDLE</p>
<p class="MsoNormal">Link state change: IDLE -> NOTALIGNED</p>
<p class="MsoNormal">Link state change: NOTALIGNED -> IDLE</p>
<p class="MsoNormal">Link state change: IDLE -> NOTALIGNED</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Could someone help me on what else I need to check/configure to get the link up? Thanks in advance.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Cheers,</p>
<p class="MsoNormal">Geoffrey</p></div></div><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>
<br>asterisk-ss7 mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br></blockquote>
</div><br>