I sent this earlier, but it was late and I haven't saw any reply. Maybe now I will have more luck
Does anyone know the correct settings of zapata.conf and zaptel.conf that are needed to connect two asterisk boxes over E1. I am trying to (just for testing purposes) connect two * ( A and B ) boxes over E1 link and IAX as well. Both are Soekris 4801 and have Sangma A101U cards. The situation looks like this:
I have a Sip phone connected to Asterisk A. The call goes from Asterisk A to Asterisk B over E1 link then it goes back to Asterisk A over IAX then once again to Asterisk B over E1 and back to Asterisk A over IAX and so on . I want to use all 30 channels of E1 but something is just not right. Asterisk hangs up all channels after making third "loop". Is it possible to make such a loop in asterisk or maybe it is internally protected from doing it? Or maybe I configure it in a wrong way? My zapata and zaptel conf looks like this:
zaptel.conf:
loadzone=nl
defaultzone=nl
span=1,0,0,ccs,hdb3,crc4 # span=1,1,0,ccs,hdb3,crc4 in the other asterisk box
bchan=1-15, 17-31
dchan=16
zapata.conf:
[channels]
context=soekris
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=unknown
signalling=pri_net ;;pri_cpe in the other one
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
channel => 1-15
channel => 17-31
Logs are available in txt attachment
Does anyone have any clues
Thanks in advance
Cheers
Andrew
Console logs from Asterisk A:
Executing Dial("SIP/test0-5821", "Zap/6/327557670||Tt") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called 6/327557670
-- Zap/6-1 is proceeding passing it to SIP/test0-5821
-- Accepting UNAUTHENTICATED call from 195.66.73.122:
> requested format = alaw,
> requested prefs = (alaw|gsm),
> actual format = alaw,
> host prefs = (alaw|gsm),
> priority = mine
-- Executing Set("IAX2/soekris2-1", "CALLERID(number)=0327557574") in new
stack
-- Executing Dial("IAX2/soekris2-1", "Zap/1/327557671||tr") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called 1/327557671
-- Zap/1-1 is proceeding passing it to IAX2/soekris2-1
-- Accepting UNAUTHENTICATED call from 195.66.73.122:
> requested format = alaw,
> requested prefs = (alaw|gsm),
> actual format = alaw,
> host prefs = (alaw|gsm),
> priority = mine
-- Executing Set("IAX2/soekris2-2", "CALLERID(number)=0327557571") in new
stack
-- Executing Dial("IAX2/soekris2-2", "Zap/2/327557672||tr") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called 2/327557672
Apr 24 22:49:43 WARNING[10273]: chan_iax2.c:7551 socket_read: Received mini
frame before first full voice frame
-- Zap/6-1 is ringing
-- Zap/2-1 is proceeding passing it to IAX2/soekris2-2
-- Zap/1-1 is ringing
-- Accepting UNAUTHENTICATED call from 195.66.73.122:
> requested format = alaw,
> requested prefs = (alaw|gsm),
> actual format = alaw,
> host prefs = (alaw|gsm),
> priority = mine
-- Executing Set("IAX2/soekris2-3", "CALLERID(number)=0327557572") in new
stack
-- Executing Dial("IAX2/soekris2-3", "Zap/3/327557673||tr") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called 3/327557673
-- Zap/3-1 is proceeding passing it to IAX2/soekris2-3
-- Zap/2-1 is ringing
-- Accepting UNAUTHENTICATED call from 195.66.73.122:
> requested format = alaw,
> requested prefs = (alaw|gsm),
> actual format = alaw,
> host prefs = (alaw|gsm),
> priority = mine
-- Executing Set("IAX2/soekris2-4", "CALLERID(number)=0327557573") in new
stack
-- Executing Dial("IAX2/soekris2-4", "Zap/4/327557674||tr") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called 4/327557674
!! Not good - head of queue has not been transmitted yet
-- Accepting UNAUTHENTICATED call from 195.66.73.122:
> requested format = alaw,
> requested prefs = (alaw|gsm),
> actual format = alaw,
> host prefs = (alaw|gsm),
> priority = mine
-- Executing Set("IAX2/soekris2-5", "CALLERID(number)=0327557575") in new
stack
-- Executing Dial("IAX2/soekris2-5", "Zap/5/327557674||tr") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called 5/327557674
-- Hungup 'Zap/3-1'
== Spawn extension (biuro, 327557572, 2) exited non-zero on 'IAX2/soekris2-3'
-- Hungup 'IAX2/soekris2-3'
-- Hungup 'Zap/2-1'
== Spawn extension (biuro, 327557571, 2) exited non-zero on 'IAX2/soekris2-2'
== Primary D-Channel on span 1 up
-- Channel 0/1, span 1 got hangup request
== Primary D-Channel on span 1 up
-- Hungup 'Zap/1-1'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing Hangup("IAX2/soekris2-1", "") in new stack
== Spawn extension (biuro, 327557570, 3) exited non-zero on 'IAX2/soekris2-1'
-- Hungup 'IAX2/soekris2-1'
-- Hungup 'IAX2/soekris2-2'
-- Hungup 'Zap/5-1'
== Spawn extension (biuro, 327557575, 2) exited non-zero on 'IAX2/soekris2-5'
-- Hungup 'IAX2/soekris2-5'
-- Hungup 'Zap/4-1'
== Spawn extension (biuro, 327557573, 2) exited non-zero on 'IAX2/soekris2-4'
-- Hungup 'IAX2/soekris2-4'
Console logs from Asterisk B:
Accepting call from '0327557570' to '327557670' on channel 0/6, span 1
-- Executing Set("Zap/6-1", "CALLERID(number)=0327557670") in new stack
-- Executing Dial("Zap/6-1", "IAX2/soekris/327557570") in new stack
-- Called soekris/327557570
-- Call accepted by 195.66.73.113 (format alaw)
-- Format for call is alaw
-- Accepting call from '0327557574' to '327557671' on channel 0/1, span 1
-- Executing Set("Zap/1-1", "CALLERID(number)=0327557671") in new stack
-- Executing Dial("Zap/1-1", "IAX2/soekris/327557571") in new stack
-- Called soekris/327557571
-- IAX2/soekris-1 is ringing
-- Call accepted by 195.66.73.113 (format alaw)
-- Format for call is alaw
-- Accepting call from '0327557571' to '327557672' on channel 0/2, span 1
-- IAX2/soekris-2 is ringing
-- Executing Set("Zap/2-1", "CALLERID(number)=0327557672") in new stack
-- Executing Dial("Zap/2-1", "IAX2/soekris/327557572") in new stack
-- Called soekris/327557572
-- Call accepted by 195.66.73.113 (format alaw)
-- Format for call is alaw
-- Accepting call from '0327557572' to '327557673' on channel 0/3, span 1
-- IAX2/soekris-3 is ringing
-- Executing Set("Zap/3-1", "CALLERID(number)=0327557673") in new stack
-- Executing Dial("Zap/3-1", "IAX2/soekris/327557573") in new stack
-- Called soekris/327557573
-- Call accepted by 195.66.73.113 (format alaw)
-- Format for call is alaw
-- IAX2/soekris-4 is ringing
-- Accepting call from '0327557573' to '327557674' on channel 0/4, span 1
-- Executing Set("Zap/4-1", "CALLERID(number)=0327557674") in new stack
-- Executing Dial("Zap/4-1", "IAX2/soekris/327557575") in new stack
-- Called soekris/327557575
-- Call accepted by 195.66.73.113 (format alaw)
-- Format for call is alaw
Apr 24 22:52:08 NOTICE[26915]: chan_zap.c:8203 pri_dchannel: PRI got event:
HDLC Abort (6) on Primary D-channel of span 1
-- IAX2/soekris-5 is ringing
Apr 24 22:52:09 NOTICE[26915]: chan_zap.c:8203 pri_dchannel: PRI got event:
HDLC Bad FCS (8) on Primary D-channel of span 1
== Primary D-Channel on span 1 down
Apr 24 22:52:09 WARNING[26915]: chan_zap.c:2290 pri_find_dchan: No D-channels
available! Using Primary channel 16 as D-channel anyway!
-- Hungup 'IAX2/soekris-3'
== Spawn extension (soekris, 327557672, 2) exited non-zero on 'Zap/2-1'
-- Hungup 'IAX2/soekris-2'
== Spawn extension (soekris, 327557671, 2) exited non-zero on 'Zap/1-1'
-- Hungup 'IAX2/soekris-5'
== Spawn extension (soekris, 327557674, 2) exited non-zero on 'Zap/4-1'
-- Hungup 'IAX2/soekris-4'
== Spawn extension (soekris, 327557673, 2) exited non-zero on 'Zap/3-1'
-- Hungup 'IAX2/soekris-1'
== Spawn extension (soekris, 327557670, 2) exited non-zero on 'Zap/6-1'
-- Hungup 'Zap/2-1'
-- Hungup 'Zap/1-1'
-- Hungup 'Zap/4-1'
-- Hungup 'Zap/3-1'
-- Hungup 'Zap/6-1'
!! Got I-frame while link state 2
== Primary D-Channel on span 1 up
ACK received for '1' outside of window of '0' to '0', restarting
== Primary D-Channel on span 1 down
Apr 24 22:52:10 WARNING[26915]: chan_zap.c:2290 pri_find_dchan: No D-channels
available! Using Primary channel 16 as D-channel anyway!
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
