keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about D-110P 1 Span E1/T1/J1 Interface Card

D110p问题能呼入,不能呼出。

14 years 11 months ago #3135 by mix
配置
asterisk-1.4.24
zaptel-1.4.21.1
libpri 1.4.10

问题:

呼入没有问题,呼出就不行了,铁通的线路,现在我不能肯定的是否是铁通有问题。麻烦各位处理一下或者提供一点思路,万分感谢。下面附下呼叫日志,
配置文件.再附下pri debug span 1呼出信息。


呼出的日志信息如下:

AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:18] Set("SIP/801-08268690", "OUTNUM=xxxxxxxxx") in new stack
-- Executing [s@macro-dialout-trunk:19] Set("SIP/801-08268690", "custom=ZAP/g1") in new stack
-- Executing [s@macro-dialout-trunk:20] GotoIf("SIP/801-08268690", "1?gocall") in new stack
-- Goto (macro-dialout-trunk,s,22)
-- Executing [s@macro-dialout-trunk:22] GotoIf("SIP/801-08268690", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:23] Dial("SIP/801-08268690", "ZAP/g1/xxxxxxxx|300|tTwW") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g1/xxxxxxxx
-- Channel 0/1, span 1 got hangup request, cause 31
-- Hungup 'Zap/1-1'
== Everyone is busy/congested at this time (1:0/0/1)

-- Executing [s@macro-dialout-trunk:24] Goto("SIP/801-08268690", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/801-08268690", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/801-08268690", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
-- Executing [9xxxxxxx@from-internal:2] Macro("SIP/801-08268690", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/801-08268690", "all-circuits-busy-now|noanswer") in new stack
-- <SIP/801-08268690> Playing 'all-circuits-busy-now' (language 'en')
-- Executing [s@macro-outisbusy:2] Playback("SIP/801-08268690", "pls-try-call-later|noanswer") in new stack
-- <SIP/801-08268690> Playing 'pls-try-call-later' (language 'en')

zaptel.conf 配置

# Span 1: WCT1/0 "Digium Wildcard TE110P T1/E1 Card 0" (MASTER)
span=1,1,0,ccs,hdb3
# termtype: te
bchan=1-15,17-31
dchan=16

loadzone = cn
defaultzone = cn

zapata.conf 配置信息
;
; Zapata telephony interface
;
; Configuration file
[trunkgroups]
[channels]
language=en
context=from-zaptel
signalling=pri_cpe
switchtype=euroisdn
pridialplan=national

rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
busydetect=yes
busycount=5
;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no
;Include genzaptelconf configs
#include zapata-channels.conf
group=1
signalling=pri_cpe
channel=>1-15,17-31

;Include AMP configs
#include zapata_additional.conf


pri debug span 1 调试信息 :

Making new call for cr 32773
-- Requested transfer capability: 0x00 - SPEECH
> Protocol Discriminator: Q.931 (8) len=38
> Call Ref: len= 2 (reference 5/0x5) (Originator)
> Message type: SETUP (5)
> [04 03 80 90 a3]
> Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
> Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
> User information layer 1: A-Law (35)
> [18 03 a9 83 81]
> Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Exclusive Dchan: 0
> ChanSel: As indicated in following octets
> Ext: 1 Coding: 0 Number Specified Channel Type: 3
> Ext: 1 Channel: 1 ]
> [6c 05 21 80 38 30 31]
> Calling Number (len= 7) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
> Presentation: Presentation permitted, user number not screened (0) '801' ]
> [70 0d a1 30 31 33 37 32 33 34 32 36 30 39 32]
> Called Number (len=15) [ Ext: 1 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '0xxxxxxxxx' ]
> [a1]ad*CLI>
> Sending Complete (len= 1)
q931.c:3134 q931_setup: call 32773 on channel 1 enters state 1 (Call Initiated)
-- Called g1/0xxxxxxxxx
< Protocol Discriminator: Q.931 (8) len=10
< Call Ref: len= 2 (reference 5/0x5) (Terminator)
< Message type: CALL PROCEEDING (2)
< [18 03 a9 83 81]
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Exclusive Dchan: 0
< ChanSel: As indicated in following octets
< Ext: 1 Coding: 0 Number Specified Channel Type: 3
< Ext: 1 Channel: 1 ]
-- Processing IE 24 (cs0, Channel Identification)
q931.c:3683 q931_receive: call 32773 on channel 1 enters state 3 (Outgoing call Proceeding)
< Protocol Discriminator: Q.931 (8) len=13
< Call Ref: len= 2 (reference 5/0x5) (Terminator)
< Message type: DISCONNECT (69)
< [08 02 82 9f]
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Public network serving the local user (2)
< Ext: 1 Cause: Normal, unspecified (31), class = Normal Event (1) ]
< [1e 02 82 88]
< Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Public network serving the local user (2)
< Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
-- Processing IE 8 (cs0, Cause)
-- Processing IE 30 (cs0, Progress Indicator)
q931.c:3826 q931_receive: call 32773 on channel 1 enters state 12 (Disconnect Indication)
-- Channel 0/1, span 1 got hangup request, cause 31
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication, peerstate Disconnect Request
q931.c:2967 q931_release: call 32773 on channel 1 enters state 19 (Release Request)
> Protocol Discriminator: Q.931 (8) len=9
> Call Ref: len= 2 (reference 5/0x5) (Originator)
Message type: RELEASE (77)
> [08 02 81 9f]
> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
> Ext: 1 Cause: Normal, unspecified (31), class = Normal Event (1) ]
-- Hungup 'Zap/1-1'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:24] Goto("SIP/801-082850c0", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/801-082850c0", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/801-082850c0", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
-- Executing [xxxxxxxx@from-internal:2] Macro("SIP/801-082850c0", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/801-082850c0", "all-circuits-busy-now|noanswer") in new stack
-- <SIP/801-082850c0> Playing 'all-circuits-busy-now' (language 'en')
< Protocol Discriminator: Q.931 (8) len=5
< Call Ref: len= 2 (reference 5/0x5) (Terminator)
< Message type: RELEASE COMPLETE (90)
q931.c:3766 q931_receive: call 32773 on channel 1 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null

i] Last edited by mix at 2011-12-15 16:44 [/i
14 years 11 months ago #3136 by james.zhu
现在是系统没有找到 有效的通道,可能路由的时候错了。加 上 prilocaldialplan=local 或者 national 试试。
你可以这样: exten= > 100, Dial(zap/g1/135XXXXX),
看看是哪个通道可以使用。
james.zhu

Time to create page: 0.030 seconds
Powered by Kunena Forum