Hi,
I have a problem in making calls by Asterisk on the AFT-A500-SH. Connections are not made and are not accepted into Asterisk.
Operating system is ubuntu 12.04 amd64.
I have installed:
dahdi-linux-complete-2.5.1+2.5.1
libpri-1.4.12
wanpipe-3.5.27
certified-asterisk-1.8.11-cert2
AFT-A500-SH Card is in TE mode, wanpipe with dahdi is configured in point-to-multipoint adn TEI=0 ( Following the recommendation by the telecom operator ).
In Asterisk I get an error
*CLI> == Using SIP RTP CoS mark 5
– Executing [90684141099@outgoing:1] Dial(“SIP/01-00000000”, “DAHDI/1/684141099,120,r,t,T”) in new stack
– Requested transfer capability: 0x00 - SPEECH
– Called DAHDI/1/684141099
== Primary D-Channel on span 1 up
– Span 1: Channel 0/1 got hangup, cause 18
– Hungup ‘DAHDI/i1/684141099-1’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [90684141099@outgoing:2] Hangup(“SIP/01-00000000”, “”) in new stack
== Spawn extension (outgoing, 90684141099, 2) exited non-zero on ‘SIP/01-00000000’
– Executing [h@outgoing:1] Hangup(“SIP/01-00000000”, “”) in new stack
== Spawn extension (outgoing, h, 1) exited non-zero on 'SIP/01-00000000’
Executing last minute cleanups
When i run pri set debug 2 span 1 i get:
RI Span: 1 – Making new call for cref 32769
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=39
PRI Span: 1 > TEI=0 Call Ref: len= 1 (reference 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 Changing from state 1(TEI unassigned) to 3(Establish awaiting TEI)
PRI Span: 1 Sending TEI management message 1(TEI Identity Request), TEI=127
PRI Span: 1
PRI Span: 1 > TEI: 0 State 3(Establish awaiting TEI)
PRI Span: 1 > V(A)=0, V(S)=0, V®=0
PRI Span: 1 > K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
PRI Span: 1 > T200_id=0, N200=3, T203_id=0
PRI Span: 1 > [ fc ff 03 0f b2 d1 01 ff ]
PRI Span: 1 > Unnumbered frame:
PRI Span: 1 > SAPI: 63 C/R: 0 EA: 0
PRI Span: 1 > TEI: 127 EA: 1
PRI Span: 1 > M3: 0 P/F: 0 M2: 0 11: 3 [ UI (unnumbered information) ]
PRI Span: 1 > 5 bytes of data
PRI Span: 1 > MDL Message: 1(TEI Identity Request)
PRI Span: 1 > Ri: 45777
PRI Span: 1 > Ai: 127 E:1
PRI Span: 1 TEI=0 Just queued I-frame since in state 3(Establish awaiting TEI)
PRI Span: 1 q931.c:6036 q931_setup: Call 32769 enters state 1 (Call Initiated). Hold state: Idle
PRI Span: 1 T303 timed out. cref:32769
/etc/asterisk/chan_dahdi.conf
;autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
;autogenrated on 2012-07-12
;Dahdi Channels Configurations
;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak
[trunkgroups]
[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
;Sangoma AFT-B500 port 1 [slot:4 bus:11 span:1]
context=from-pstn
group=1
echocancel=yes
signalling=bri_cpe_ptmp
channel =>1-2
;Sangoma AFT-B500 port 2 [slot:4 bus:11 span:2]
context=from-pstn
group=1
echocancel=yes
signalling=bri_cpe_ptmp
channel =>4-5
/etc/dahdi/system.conf
#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2012-07-12
#Dahdi Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=pl
defaultzone=pl
#Sangoma AFT-B500 port 1 [slot:4 bus:11 span:1]
span=1,0,0,ccs,ami
bchan=1,2
echocanceller=mg2,1-2
hardhdlc=3
#Sangoma AFT-B500 port 2 [slot:4 bus:11 span:2]
span=2,0,0,ccs,ami
bchan=4,5
echocanceller=mg2,4-5
hardhdlc=6
/etc/asterisk/extensions.conf
[general]
static=yes
writeprotect=no
clearglobalvars=no
[globals]
[parkedcalls]
[hala]
include => parkedcalls
exten => h,1,hangup
exten => t,1,hangup
exten => 01,1,Dial(SIP/01,90,r,t,T)
exten => 02,1,Dial(SIP/02,90,r,t,T)
exten => 04,1,Dial(SIP/04,90,r,t,T)
exten => 09,1,Dial(SIP/09,90,r,t,T)
exten => 10,1,Dial(SIP/10,90,r,t,T)
exten => 11,1,Dial(SIP/11,90,r,t,T)
exten => 12,1,Dial(SIP/12,90,r,t,T)
exten => 22,1,Dial(SIP/22,90,r,t,T)
[incoming]
; polset001 - 0684141062
exten => ip001,1,dial(SIP/04&SIP/10,90,r,t,T)
exten => ip001,2,hangup
; polset002 - 0684141067
exten => ip002,1,dial(SIP/10,90,r,t,T)
exten => ip002,2,hangup
[outgoing]
include => hala
; stare polskie krajowe i miedzynarodowe
exten => _0X.,1,Dial(SIP/ipfon002/${EXTEN},60,r,t,T)
exten => _0X.,2,Dial(SIP/ipfon001/${EXTEN},60,r,t,T)
exten => _0X.,3,hangup
; nowe polskie krajowe
exten => _ZX.,1,Dial(SIP/ipfon002/${EXTEN},60,r,t,T)
exten => _ZX.,2,Dial(SIP/ipfon001/${EXTEN},60,r,t,T)
exten => _ZX.,3,hangup
; stare polskie krajowe i miedzynarodowe
exten => _90X.,1,dial(DAHDI/1/${EXTEN:2},120,r,t,T)
exten => _90X.,2,hangup
; nowe polskie krajowe
exten => _9ZX.,1,dial(DAHDI/1/${EXTEN:2},120,r,t,T)
exten => _9ZX.,2,hangup
[outgoing_polset001]
include => hala
; stare polskie krajowe i miedzynarodowe
exten => _0X.,1,Dial(SIP/ipfon001/${EXTEN},60,r,t,T)
exten => _0X.,2,hangup
; nowe polskie krajowe
exten => _ZX.,1,Dial(SIP/ipfon001/${EXTEN},60,r,t,T)
exten => _ZX.,2,hangup
; stare polskie krajowe i miedzynarodowe
exten => _90X.,1,dial(DAHDI/1/${EXTEN:1},120,r,t,T)
exten => _90X.,2,hangup
; nowe polskie krajowe
exten => _90X.,2,hangup
; nowe polskie krajowe
exten => _9ZX.,1,dial(DAHDI/1/${EXTEN:1},120,r,t,T)
exten => _9ZX.,2,hangup
[fax]
exten => _X.,1,dial(DAHDI/1/${EXTEN},120,r,t,T)
exten => _X.,n,hangup
[dahdi]
; 0683830754 fax 0683836461 - SIP/01
exten => 0683830754,1,dial(SIP/fax,120,r,t,T)
exten => 0683830754,2,hangup
exten => 0683830755,1,dial(SIP/10,120,r,t,T)
exten => 0683830755,2,hangup
exten => 0683836461,1,Dial(SIP/01,120,r,t,T)
exten => 0683836461,2,hangup
;kp
exten => 0684785140,1,Dial(SIP/01,120,r,t,T)
exten => 0684785140,2,hangup
;/kp
exten => _X.,1,noop(---------exten----${EXTEN}—)
exten => _X.,2,dial(SIP/01,90,r,t,T)
exten => _X.,3,hangup
Unfortunately, after:
w1g1 wanpipemon-and-pcap-pcap_file isdn.pcap-prot ISDN-full-systime-c trd
In isdn.pcap file does not appear anything. The file is empty.
But the asterisk shows the time to make the call:
== Using SIP RTP CoS mark 5
– Executing [90683553555@outgoing:1] Dial(“SIP/01-00000004”, “DAHDI/1/683553555,120,r,t,T”) in new stack
– Requested transfer capability: 0x00 - SPEECH
– Called DAHDI/1/683553555
[Jul 16 08:32:03] ERROR[1378]: chan_dahdi.c:14074 dahdi_pri_error: PRI Span: 1 Unable to receive TEI from network in state 3(Establish awaiting TEI)!
– Span 1: Channel 0/1 got hangup, cause 27
– DAHDI/i1/683553555-5 is circuit-busy
– Hungup ‘DAHDI/i1/683553555-5’
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [90683553555@outgoing:2] Hangup(“SIP/01-00000004”, “”) in new stack
== Spawn extension (outgoing, 90683553555, 2) exited non-zero on ‘SIP/01-00000004’
– Executing [h@outgoing:1] Hangup(“SIP/01-00000004”, “”) in new stack
== Spawn extension (outgoing, h, 1) exited non-zero on ‘SIP/01-00000004’
Is the problem associated with:
[Jul 16 08:32:03] ERROR[1378]: chan_dahdi.c:14074 dahdi_pri_error: PRI Span: 1 Unable to receive TEI from network in state 3(Establish awaiting TEI)!
I read on the Digium forums, that that a change libpri in the earlier version might help.
I would be grateful for your response and any help.
Greetings.
Krzysztof