[Bristuff-users] How Can I connect TWO BRI cards in two asterisk server.

james toasterisk at gmail.com
Mon Oct 22 11:19:24 CEST 2007


hi,all of users:
  thanks, Tzafrir. I changed the setting and test again. it still get
errors. the setting  is Asterisk A with B400P
in TE,TE,TE,TE Model and Asterisk B with B400P in  TE,TE,NT,NT.   Now I want
  to use NT(ISDN phone) call  second NT port and the second NT port in
Asterisk B forward to Asterisk A TE port. the physical connection is that

  second NT port is connecting with Asterisk A TE port. it shows like this:
NT(ISDNphone) in Asterisk B-----> call second NT in asterisk B------>forward
  to TE port in Asterisk A----->play IVR in Asterisk A.
  the physical connection seems OK. the LEDs are in green if NT in asterisk
B
port connecting TE port in Asterisk A.

Asterisk B:

zapata.conf

[channels]

switchtype = euroisdn

pridialplan = unknown
prilocaldialplan = unknown
nationalprefix = 0
internationalprefix = 00
usecallingpres=yes

echocancel = yes
echocancelwhenbridged = yes
echotraining = 100

;overlapdial=yes
;-------------------------------------------------------------------
; p2p TE mode (for connecting ISDN lines in point-to-point mode)
signalling = bri_cpe_pmtp
context=from-isdn

group = 1

; S/T port 1-2 (first quadBRI, or lower ports of an octoBRI)
channel => 1-2
channel => 4-5

;-------------------------------------------------------------------

; p2p NT mode (for connecting an ISDN PBX in point-to-point mode)
[100]; set caller id for ISDN NT (ISDN phone number)
context=from-internal
usecallerid=yes
group = 2
signalling = bri_net_ptmp
;overlapdial=yes
; S/T port 3-4 (second quadBRI, or upper ports of an octoBRI)
channel => 7
callerid="zhu1" <100>
[200]
context=from-internal
signalling = bri_net_ptmp
group=2
usecallerid=yes
channel => 8
callerid="zhu2" <200>
[300]
group=3
context=from-internal
signalling = bri_net_ptmp

channel => 10
usecallerid=yes
callerid="zhu3" <300>
[400]
context=from-internal
signalling = bri_net_ptmp
group=4
usecallerid=yes
channel => 11
callerid="zhu4" <400>


extensions.conf:

; incoming ISDN BRI calls arrive in this context
; and are routed to zaptel group 2 (NT ports to the pbx)

[from-isdn]
exten => s,1,Wait(1)
exten => s,2,Playback(demo-echotest);
exten => s,3,Hangup

[from-internal]
exten => 100,1,Dial(zap/g2/100) ; call to TE port in asterisk A
exten => 100,2,Hangup
exten => 200,1,Dial(zap/g2/100)
exten => 200,n,Hangup()
exten => 300,1,Dial(zap/g3/300)
exten => 300,n,Hangup
exten => 400,1,Dial(zap/g4/400)
exten => 400,n,Hangup()
exten => 600,1,Dial(SIP/600)
exten => 600,n,Hangup()


Asterisk A:

zapata.conf

[channels]
switchtype = euroisdn
pridialplan = unknown
prilocaldialplan = local
nationalprefix = 0
internationalprefix = 00
usecallingpres=yes
echocancel = yes
echocancelwhenbridged = yes
echotraining = 100

;overlapdial=yes
;-------------------------------------------------------------------
; p2p TE mode (for connecting ISDN lines in point-to-point mode)
;context=from-internal
context=from-te
signalling = bri_cpe
group = 1

; S/T port 1-4 (first quadBRI, or lower ports of an octoBRI)
channel => 1-2
channel => 4-5
channel => 7-8
channel => 10-11
;-------------------------------------------------------------------

extensions.conf:

[from-te]
exten => _X,1,Wait(5)
exten => _X,2,Playback(demo-echotest)
exten => _X,3,Hangup()

exten => 100,1,Playback(demo-instruct); play IVR when 100 coming. it come to
here already, no sound.
exten => 100,n,Hangup

error in Asterisk A

 -- Accepting voice call from '600' to '100' on channel 0/1, span 1
    -- Executing Playback("Zap/1-1", "demo-instruct") in new stack; here i
should hear the voice, but nothing.
    -- Playing 'demo-instruct' (language 'en')
  == Primary D-Channel on span 2 down
Oct 22 23:54:19 WARNING[3287]: chan_zap.c:2683 pri_find_dchan: No D-channels
available!  Using Primary channel 6 as D-channel anyway!
  == Primary D-Channel on span 4 down
Oct 22 23:54:19 WARNING[3289]: chan_zap.c:2683 pri_find_dchan: No D-channels
available!  Using Primary channel 12 as D-channel anyway!
  == Primary D-Channel on span 3 down
Oct 22 23:54:20 WARNING[3288]: chan_zap.c:2683 pri_find_dchan: No D-channels
available!  Using Primary channel 9 as D-channel anyway!
  == Primary D-Channel on span 1 down
Oct 22 23:54:20 WARNING[3286]: chan_zap.c:2683 pri_find_dchan: No D-channels
available!  Using Primary cha

Errors in Asterisk B

== Primary D-Channel on span 1 down
Oct 22 15:08:09 WARNING[2985]: chan_zap.c:2683 pri_find_dchan: No D-channels
available!  Using Primary channel 3 as D-channel anyway!
  == Primary D-Channel on span 2 down
Oct 22 15:08:09 WARNING[2986]: chan_zap.c:2683 pri_find_dchan: No D-channels
available!  Using Primary channel 6 as D-channel anyway!
    -- Executing Dial("SIP/600-0908fd28", "zap/g2/100") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called g2/100
Oct 22 15:08:13 WARNING[2989]: chan_zap.c:6896 handle_init_event: Detected
alarm on channel 1: Red Alarm
Oct 22 15:08:13 WARNING[2989]: chan_zap.c:6896 handle_init_event: Detected
alarm on channel 2: Red Alarm
Oct 22 15:08:13 WARNING[2989]: chan_zap.c:6896 handle_init_event: Detected
alarm on channel 4: Red Alarm
Oct 22 15:08:13 WARNING[2989]: chan_zap.c:6896 handle_init_event: Detected
alarm on channel 5: Red Alarm
Oct 22 15:08:13 WARNING[2985]: chan_zap.c:2683 pri_find_dchan: No D-channels
available!  Using Primary channel 3 as D-channel anyway!
Oct 22 15:08:13 WARNING[2986]: chan_zap.c:2683 pri_find_dchan: No D-channels
available!  Using Primary channel 6 as D-channel anyway!
Oct 22 15:08:13 NOTICE[2989]: chan_zap.c:6877 handle_init_event: Alarm
cleared on channel 1
Oct 22 15:08:13 NOTICE[2989]: chan_zap.c:6877 handle_init_event: Alarm
cleared on channel 2
Oct 22 15:08:13 NOTICE[2989]: chan_zap.c:6877 handle_init_event: Alarm
cleared on channel 4
Oct 22 15:08:13 NOTICE[2989]: chan_zap.c:6877 handle_init_event: Alarm
cleared on channel 5
  == Primary D-Channel on span 1 down
Oct 22 15:08:14 WARNING[2985]: chan_zap.c:2683 pri_find_dchan: No D-channels
available!  Using Primary channel 3 as D-channel anyway!
  == Primary D-Channel on span 2 down
Oct 22 15:08:14 WARNING[2986]: chan_zap.c:2683 pri_find_dchan: No D-channels
available!  Using Primary channel 6 as D-channel anyway!
    -- Channel 0/1, span 3 got hangup, cause 18
    -- Hungup 'Zap/7-1'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing Hangup("SIP/600-0908fd28", "") in new stack
  == Spawn extension (from-internal, 100, 2) exited non-zero on
'SIP/600-0908fd28'

i also tested that my isdn phone call to sip/600, we can hear each other,
but in sip display unknown Callerid, it should show 300. the error is :

Primary D-Channel on span 4 up for TEI 64
    -- Accepting overlap voice call from '' to '<unspecified>' on channel
0/2, span 4
    -- Starting simple switch on 'Zap/11-1'
    -- Executing Dial("Zap/11-1", "SIP/600") in new stack
    -- Called 600
    -- SIP/600-09090e78 is ringing

I guess something wrong in zapata.conf or physical connection.
please give me a hint for such case.
thanks!
james
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.three-dimensional.net/pipermail/bristuff-users/attachments/20071022/08b3c2bb/attachment-0001.htm 


More information about the Bristuff-users mailing list