Hello list,

  I'm experienced in asterisk but very little in mISDN having performed only two
  installations which are 100% operational for over a year with a beroNet BN4S0
  and a billion HFC.

  A week ago I've setup an asterisk system sitting between 2x PSTN BRIs
  and an existing Alcatel PBX -- using a beronet BN4S0. This system replaced
  another IP PBX that was also between PSTN and Alcatel.

  Two PSTN NTs are connected to ports 1 and 2 in TE mode and
  ports 3 and 4, in NT mode, connect to the Alcatel PBX; cables are
  straight, the 3 and 4 ports have the jumper on the card "reversed".

  Behaviour:
  - Ports come down very frequenly: first L2 then L1 (see log below)
  - I set up a work-around script to bring them up periodically (every 10s!)
  - Things "kind of work"

  Note:
  - I'm not 100% sure that ports were not failing before... But I have a feeling
    they weren't

  Software versions:
  - CentOS 5.1, kernel 2.6.18-53.1.13.el5
  - mISDN + mISDNuser 1.1.7.2
  - zaptel 1.4.9
  - asterisk 1.4.18

  I am very intrigued with this and tried my best to understand it and fix it;
  however, given my little knowledge of ISDN by itself, I certainly believe
  there is something obviously wrong with this setup and thus ask for the
  experience and feedback of the list.

  1. In all due honesty, I don't know if the lines are PTP or PTMP. What I
      know is that they are associated to 6 different, non-contiguous, PSTN
      numbers. Again, the same can be said for the Alcatel side, but I'd guess
      it is the same... I would say this is critical and that without
the correct config,
      probably L2 would not come up. However, the behaviour and logs apear to be
      the same for both PTP and PTMP configurations at least regarding the PSTN
      lines. Can anyone shed some light ?

  2. According to the logs, L2 goes down first, then L1, so I'd say the cabling
      and termination is ok (I'd really not know when to
enable/disable the BN4S0
      termination in the dip switches!). Is my reasoning correct ?

  3. I think I read somewhere that NT ports should not be grouped... But I have
      then like that so as to pass PSTN calls to the alcatel; should I
address the
      ports individually on Dial() instead ? Other suggestions or comments ?

  4. /etc/asterisk/misdn.conf is based on the default config... I
don't understand
      several options and I left them untouched.

  5. Below is my configuration and snippets from misdn.log with a few comments
      of my own.

  Thanks in advance for any help you can provide in both improving my
understanding
  of mISDN (+ISDN, of course) and in getting this system stable.

  Kinds regards,
  exvito

=== /etc/misdn-init.conf ============================
card=1,0x4
te_ptp=1,2
nt_ptp=3,4
option=1,master_clock
poll=128
dsp_poll=0
dsp_options=0
dtmfthreshold=100
debug=0
==============================================

=== /etc/asterisk/misdn.conf =========================
[general]
misdn_init=/etc/misdn-init.conf
debug=0
ntdebugflags=0
ntdebugfile=/var/log/misdn-nt.log
ntkeepcalls=no
bridging=no
stop_tone_after_first_digit=yes
append_digits2exten=yes
dynamic_crypt=no
crypt_prefix=**
crypt_keys=test,muh

[default]
context=misdn
language=en
musicclass=default
senddtmf=yes
far_alerting=no
allowed_bearers=all
nationalprefix=0
internationalprefix=00
rxgain=0
txgain=0
te_choose_channel=no
pmp_l1_check=no
reject_cause=16
need_more_infos=no
nttimeout=no
method=standard
overlapdial=yes
dialplan=0
localdialplan=0
cpndialplan=0
early_bconnect=yes
incoming_early_audio=no
nodialtone=no
presentation=-1
screen=-1
jitterbuffer=4000
jitterbuffer_upper_threshold=0
hdlc=no
max_incoming=-1
max_outgoing=-1

[pstn_bri]
ports=1,2
context=pstn_bri
msns=*

[alcatel_bri]
ports=3,4
context=alcatel_bri
msns=*
==============================================




  The following is logged with debug=5 when all the 4 ports are idle...
  PSTN lines going down:

Tue Mar  4 01:42:51 2008: P[ 0]  MGMT: Short status dinfo 2000000
Tue Mar  4 01:42:51 2008: P[ 1]  MGMT: SSTATUS: L2_RELEASED
Tue Mar  4 01:42:51 2008: P[ 0]  MGMT: Short status dinfo 2000000
Tue Mar  4 01:42:51 2008: P[ 2]  MGMT: SSTATUS: L2_RELEASED
Tue Mar  4 01:43:01 2008: P[ 0]  MGMT: Short status dinfo 1000000
Tue Mar  4 01:43:01 2008: P[ 0]  MGMT: SSTATUS: L1_DEACTIVATED
Tue Mar  4 01:43:02 2008: P[ 0]  MGMT: Short status dinfo 1000000
Tue Mar  4 01:43:02 2008: P[ 0]  MGMT: SSTATUS: L1_DEACTIVATED


  During my tests this evening, changing the ports between PTP and PTMP,
  debug between 0 and 5, I got several of these:

Tue Mar  4 01:24:41 2008: P[ 4]  !!! Could not Get the L2 up after 3 Attemps!!!

  ...although "misdn show stacks" and the asterisk cli shows L2 UP !


  Also, when the ports to the Alcatel are in PTMP mode, and debug=5 I get:

Tue Mar  4 01:46:12 2008: P[ 3]   --> lib: prim 20182 dinfo 0
Tue Mar  4 01:46:12 2008: P[ 3]  % GOT L2 Activate Info.
Tue Mar  4 01:46:13 2008: P[ 4]   --> lib: prim 20182 dinfo 0
Tue Mar  4 01:46:13 2008: P[ 4]  % GOT L2 Activate Info.

  ...which sounds ok, otherwise I get:

Tue Mar  4 02:00:25 2008: P[ 3]  L1: PH L1Link Up!
Tue Mar  4 02:00:25 2008: P[ 0]  MGMT: Short status dinfo 1000001
Tue Mar  4 02:00:25 2008: P[ 0]  MGMT: SSTATUS: L1_ACTIVATED
Tue Mar  4 02:00:25 2008: P[ 4]  L1: PH L1Link Up!
Tue Mar  4 02:00:25 2008: P[ 0]  MGMT: Short status dinfo 1000001
Tue Mar  4 02:00:25 2008: P[ 0]  MGMT: SSTATUS: L1_ACTIVATED
Tue Mar  4 02:00:25 2008: P[ 3]   --> lib: prim 20181 dinfo 0
Tue Mar  4 02:00:25 2008: P[ 3]  % GOT L2 Activate Info.
Tue Mar  4 02:00:25 2008: P[ 3]  Sending Restarts on this port.
Tue Mar  4 02:00:25 2008: P[ 3]  Restarting and all Interfaces
Tue Mar  4 02:00:25 2008: P[ 3]  I SEND:RESTART oad: dad: pid:0
Tue Mar  4 02:00:25 2008: P[ 3]   --> bc_state:BCHAN_CLEANED
Tue Mar  4 02:00:25 2008: P[ 3]   --> channel:-1 mode:NT cause:0
ocause:0 rad: cad:
Tue Mar  4 02:00:25 2008: P[ 3]   --> info_dad: onumplan:0 dnumplan:0
rnumplan:0 cpnnumplan:0
Tue Mar  4 02:00:25 2008: P[ 3]   --> caps:Speech pi:0 keypad:
sending_complete:0
Tue Mar  4 02:00:25 2008: P[ 3]   --> screen:0 --> pres:0
Tue Mar  4 02:00:25 2008: P[ 3]   --> addr:0 l3id:ffff0002 b_stid:0 layer_id:0
Tue Mar  4 02:00:25 2008: P[ 3]   --> facility:unknown out_facility:unknown
Tue Mar  4 02:00:25 2008: P[ 3]   --> urate:0 rate:0 mode:0 user1:0
Tue Mar  4 02:00:25 2008: P[ 3]   --> bc:b710e584 h:0 sh:0
Tue Mar  4 02:00:25 2008: P[ 3]  Restarting channel -1
Tue Mar  4 02:00:25 2008: P[ 4]   --> lib: prim 20181 dinfo 0
Tue Mar  4 02:00:25 2008: P[ 4]  % GOT L2 Activate Info.
Tue Mar  4 02:00:25 2008: P[ 4]  Sending Restarts on this port.
Tue Mar  4 02:00:25 2008: P[ 4]  Restarting and all Interfaces
Tue Mar  4 02:00:25 2008: P[ 4]  I SEND:RESTART oad: dad: pid:0
Tue Mar  4 02:00:25 2008: P[ 4]   --> bc_state:BCHAN_CLEANED
Tue Mar  4 02:00:25 2008: P[ 4]   --> channel:-1 mode:NT cause:0
ocause:0 rad: cad:
Tue Mar  4 02:00:25 2008: P[ 4]   --> info_dad: onumplan:0 dnumplan:0
rnumplan:0 cpnnumplan:0
Tue Mar  4 02:00:25 2008: P[ 4]   --> caps:Speech pi:0 keypad:
sending_complete:0
Tue Mar  4 02:00:25 2008: P[ 4]   --> screen:0 --> pres:0
Tue Mar  4 02:00:25 2008: P[ 4]   --> addr:0 l3id:ffff0002 b_stid:0 layer_id:0
Tue Mar  4 02:00:25 2008: P[ 4]   --> facility:unknown out_facility:unknown
Tue Mar  4 02:00:25 2008: P[ 4]   --> urate:0 rate:0 mode:0 user1:0
Tue Mar  4 02:00:25 2008: P[ 4]   --> bc:b710e584 h:0 sh:0
Tue Mar  4 02:00:25 2008: P[ 4]  Restarting channel -1

  ...however I don't understand most of it. Is this one "better" or "worse"
  than the previous ?!
_______________________________________________
Misdn-asterisk mailing list
[email protected]
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk

Reply via email to