How to Capture BRI/PRI Log on P-Series PBX

1. Enable Debug Level for BRI/PRI ports.

Go to the PBX web, enter Maintenance> System Logs menu.

  • Tick the Debug option
  • Then tick BRI/PRI Debug and select the correct port. If you don't know which port has the problem, choose all ports - "Span All"
  • Click Save and Apply button to let it take effect.

mceclip0.png

 

2. Get Asterisk Debug logs.

1) Enter the SSH followed by this guide: https://help.yeastar.com/en/p-series-appliance-edition/administrator-guide/access-the-system-via-ssh.html

 

2) Enter Asterisk CLI to get the BRI/PRI debug log.

 

Command sample:

## enter Asterisk CLI
support@IPPBX:~$ asterisk -vvvvvvvvvvvvr
Unable to open specified codec config file '/ysdisk/ysapps/pbxcenter/etc/codec.conf', using built-in defaults
Read from deviceinfo maxcall:25.
Setting max files open to 5120
Asterisk 13.7.0, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 13.7.0 currently running on IPPBX (pid = 4785)
Cannot read termcap database;
using dumb terminal settings.
Core debug is still 2.

## get the physical layer status
IPPBX*CLI> dahdi show status
Description Alarms IRQ bpviol CRC Fra Codi Options LBO

DAHDI_DUMMY/1 (source: HRtimer) 1 UNCONFI 0 0 0 CAS Unk 0 db (CSU)/0-133 feet (DSX-1)
YSFXS/0/1 OK 0 0 0 CAS Unk 0 db (CSU)/0-133 feet (DSX-1)
YSFXS/0/2 OK 0 0 0 CAS Unk 0 db (CSU)/0-133 feet (DSX-1)

YSFXO/0/3 OK 0 0 0 CAS Unk 0 db (CSU)/0-133 feet (DSX-1)
YSFXO/0/4 OK 0 0 0 CAS Unk 0 db (CSU)/0-133 feet (DSX-1)
YSBRI/0/5 RED 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
YSBRI/0/6 RED 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
YSNONE/0/7 UNCONFI 0 0 0 CAS Unk 0 db (CSU)/0-133 feet (DSX-1)
YSNONE/0/8 UNCONFI 0 0 0 CAS Unk 0 db (CSU)/0-133 feet (DSX-1)


## get data link layer state and the span number
IPPBX*CLI> pri show spans
PRI span 6/0: In Alarm, Down, Active

PRI span 7/0: In Alarm, Down, Active


## enable the debug log
IPPBX*CLI> pri set debug intense span 6
Enabled debugging on span 6

IPPBX*CLI>
IPPBX*CLI>
IPPBX*CLI>

## pri message after debug
[2021-12-30 11:35:59] PRI Span: 6 SAPI/TEI=0/0 Kick starting link

[2021-12-30 11:35:59] PRI Span: 6 -- T203 requested to stop when not started
[2021-12-30 11:35:59] PRI Span: 6 -- Restarting T200 timer
[2021-12-30 11:35:59] PRI Span: 6 TEI=0 Sending SABME
[2021-12-30 11:35:59] PRI Span: 6
[2021-12-30 11:35:59] PRI Span: 6 > TEI: 0 State 4(TEI assigned)
[2021-12-30 11:35:59] PRI Span: 6 > V(A)=0, V(S)=0, V(R)=0
[2021-12-30 11:35:59] PRI Span: 6 > K=1, RC=0, l3_initiated=1, reject_except=0, ack_pend=0
[2021-12-30 11:35:59] PRI Span: 6 > T200_id=8192, N200=3, T203_id=0
[2021-12-30 11:35:59] PRI Span: 6 > [ 00 01 7f ]
[2021-12-30 11:35:59] PRI Span: 6 > Unnumbered frame:
[2021-12-30 11:35:59] PRI Span: 6 > SAPI: 00 C/R: 0 EA: 0
[2021-12-30 11:35:59] PRI Span: 6 > TEI: 000 EA: 1
[2021-12-30 11:35:59] PRI Span: 6 > M3: 3 P/F: 1 M2: 3 11: 3 [ SABME (set asynchronous balanced mode extended) ]

 

3) Reproduce your issue, and download logs after that.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.