Здравствуйте
Шлюз 1005. Связка с астериском. На входящие прекрасно работает. А вот с исходящими проблема. Набираем номер, а в ответ слышим длинный гудок. Как будто набор номера и не происходил. Какие параметры можно посмотреть, что-бы заставить аддпак набирать номер. Спасибо.
Дебаг на порту:
Цитата:
AP1005_0-5(config)# 62 <SIP 138> : Receive INVITE Request
63 <CEP 000100> : InitiateOutCall : calledNum(,891112223344), callingNum(), callerPort(ffffffff) type(FXO)
[21457.020] RTA(0/1/0) Rx CC_OFFHOOK_REQ [2c 38 39 31 31 32 32 32 33 33 34 34 ] peerId(-1)
[21457.020] VM(0/1/0) FXO OffHook
[21457.020] VM(0/1/0) vopp enable
64 <CEP 000100> : Outbound call to CEP callId(00000000-0000-0000-0000-000000000000) callNum(138)
[21457.020] VM(0/1/0) set T38 mode STD
[21457.020] VM(0/1/0) Fax rate 9600
65 <SIP 138> : SetAlerting
66 <Call 138> : PreConnected from(100)
[21457.020] RTA(0/1/0) Rx AP_SVC_REQ nSvcElem=1 rawDataLen=0
VAD_CTRL 0
[21457.020] VM(0/1/0) VAD disable
[21457.020] VM(0/1/0) SID enable by CCC
67 <SIP 138> : Add Local Audio MediaFormat : 0
[21457.030] VM(0/1/0) Rx FXO Ring Actv
[21457.060] RTA(0/1/0) Rx RS_OPEN_REQ callId=138 ssId=1 G711U
peer=192.168.0.1 mp=23276/23277 hp=18790/18791
[21457.060] VM(0/1/0) vopp idle
[21457.060] VM(0/1/0) start codec replace timer to G711U
[21457.060] RTA(0/1/0) Rx RS_LISTEN_REQ callId=138 ssId=1 G711U
peer=192.168.0.1 mp=23276/23277 hp=18790/18791
[21457.120] VM(0/1/0) vopp enable
[21457.120] VM(0/1/0) codec replaced to G711U
[21457.180] VM(0/1/0) Rx FXO Ring Idle
[21459.020] VM(0/1/0) play digit '8'
[21459.170] VM(0/1/0) play mute
[21459.270] VM(0/1/0) play digit '9'
[21459.420] VM(0/1/0) play mute
[21459.520] VM(0/1/0) play digit '1'
[21459.670] VM(0/1/0) play mute
[21459.770] VM(0/1/0) play digit '1'
[21459.920] VM(0/1/0) play mute
[21460.020] VM(0/1/0) play digit '2'
[21460.170] VM(0/1/0) play mute
[21460.270] VM(0/1/0) play digit '2'
[21460.420] VM(0/1/0) play mute
[21460.520] VM(0/1/0) play digit '2'
[21460.670] VM(0/1/0) play mute
[21460.770] VM(0/1/0) play digit '3'
[21460.920] VM(0/1/0) play mute
[21461.020] VM(0/1/0) play digit '3'
[21461.170] VM(0/1/0) play mute
[21461.270] VM(0/1/0) play digit '4'
[21461.420] VM(0/1/0) play mute
[21461.520] VM(0/1/0) play digit '4'
[21461.670] VM(0/1/0) play mute
[21461.770] VM(0/1/0) Fax enable
[21461.770] VM(0/1/0) Tx CONNECT_CNF
68 <Call 138> : Connected from(100)
[21461.770] RTA(0/1/0) Rx AP_SVC_REQ nSvcElem=1 rawDataLen=0
VAD_CTRL 0
[21461.770] VM(0/1/0) VAD disable
[21461.770] VM(0/1/0) SID enable by CCC
69 <SIP 138> : SetConnected
70 <SIP 138> : Add Local Audio MediaFormat : 0
[21461.815] RTA(0/1/0) Rx AP_SVC_REQ nSvcElem=1 rawDataLen=0
DTMF_CTRL 1
[21461.815] VM(0/1/0) DTMF_RTP_RFC2833 enable
[21461.815] VM(0/1/0) DTMF_RTP_RFC2833 TxPT=0x65, RxPT=0x65
[21496.185] RTA(0/1/0) Rx RS_CLOSE_REQ callId=138 ssId=1 dir=reve
[21496.185] RTA(0/1/0) Rx RS_CLOSE_REQ callId=138 ssId=1 dir=forw
[21496.185] RTA(0/1/0) close Media socket
[21496.185] RTA(0/1/0) close RTCP socket
137 <Call 138> : Terminated from(fffffffe) this(Remote:CallClear) before(NULL) forced(0)
138 <CEP 000100> : DisconnectCall at Busy
139 <CEP 000100> : StopSignal
[21496.185] RTA(0/1/0) Rx AP_SVC_REQ nSvcElem=1 rawDataLen=0
DTMF_STOP
[21496.185] VM(0/1/0) play mute
140 <CEP 000100> : Disconnect (0)
[21496.185] RTA(0/1/0) Rx CC_DISCONN_REQ CZ=0, peerId(0/0/0)
[21496.185] VM(0/1/0) vopp idle
[21496.185] VM(0/1/0) FXO OnHook
[21496.190] VM(0/1/0) Tx DISCONN_CNF
141 <NetEP 138> : Call TO <asterisk> terminated reason(Remote:CallClear)
142 <CEP 000100> : Disconnected(16) at Disconnecting
КОнфиг на шлюзе
Цитата:
AP1005_0-5(config)# show run
!
version 8.30W
!
hostname AP1005_0-5
!
no bridge spanning-tree
!
no ip-share enable
!
interface ether0.0
ip address 192.168.0.5 255.255.255.0
!
interface ether1.0
ip address 192.168.1.253 255.255.255.0
!
snmp name AP1005
snmp enable-trap dn-register 300 forcely-block
!
no arp reset
!
route 0.0.0.0 0.0.0.0 192.168.0.1
!
utilization cpu
utilization ethernet
!
logging command
logging event all
logging on
!
remote-log primary-server 192.168.0.1
!
dnshost nameserver 192.168.0.1
!
! VoIP configuration.
!
! Voice service voip configuration.
!
voice service voip
fax protocol t38 redundancy 0
fax rate 9600
h323 call start fast
h323 call tunnel enable
!
! Voice port configuration.
!
! FXO
voice-port 0/0
input gain 4
output gain 4
connection plar 123456
ring detect-timeout 70
high-dtmf-gain -7
caller-id enable
caller-id name disable
!
! Остальные порты настроены по аналогии
!
!
! Pots peer configuration.
!
dial-peer voice 0 pots
destination-pattern 0T
port 0/0
user-name w_AddPack_0.5_0P
user-password 123pass
!
! Остальные настроены по аналогии, только меняется префикс в destination-pattern, username, password
!
!
! Voip peer configuration.
!
dial-peer voice 1000 voip
destination-pattern .T
session target 192.168.0.1
session protocol sip
voice-class codec 1
no vad
dtmf-relay rtp-2833
!
! Gateway configuration.
!
gateway
h323-id voip.192.168.0.1
no ignore-msg-from-other-gk
!
! Codec classes configuration.
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
!
! SIP UA configuration.
!
sip-ua
user-register
sip-server 192.168.0.1
remote-party-id
register e164
!
!
! MGCP configuration.
!
mgcp
dtmf-relay rtp-2833
codec g711alaw
vad
!
! Tones
voice class clear-down-tone 0 425 0 300 300
!
Лог исходящего звонка с debug voice
Цитата:
AP1005_0-5(config)# [26059.205] RTA(0/1/0) Rx CC_OFFHOOK_REQ [38 39 31 31 32 32 32 33 33 34 34 ] peerId(-1)
[26059.205] VM(0/1/0) FXO OffHook
[26059.205] VM(0/1/0) vopp enable
[26059.205] VM(0/1/0) set T38 mode STD
[26059.205] VM(0/1/0) Fax rate 9600
[26059.205] RTA(0/1/0) Rx AP_SVC_REQ nSvcElem=1 rawDataLen=0
VAD_CTRL 0
[26059.205] VM(0/1/0) VAD disable
[26059.205] VM(0/1/0) SID enable by CCC
[26059.210] VM(0/1/0) Rx FXO Ring Actv
29 36 [26059.245] RTA(0/1/0) Rx RS_OPEN_REQ callId=135 ssId=1 G711U
peer=192.168.0.1 mp=23270/23271 hp=11400/11401
[26059.245] VM(0/1/0) vopp idle
[26059.245] VM(0/1/0) start codec replace timer to G711U
[26059.245] RTA(0/1/0) Rx RS_LISTEN_REQ callId=135 ssId=1 G711U
peer=192.168.0.1 mp=23270/23271 hp=11400/11401
[26059.305] VM(0/1/0) vopp enable
[26059.305] VM(0/1/0) codec replaced to G711U
60 60 60 60 [26059.360] VM(0/1/0) Rx FXO Ring Idle
60 60 60 60 60 28 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 [26060.205] VM(0/1/0) play digit '8'
22 22 60 60 60 60 60 60 60 60 60 60 60 60 60 [26060.355] VM(0/1/0) play mute
60 60 60 60 22 22 22 22 22 22 [26060.455] VM(0/1/0) play digit '9'
22 60 60 60 60 60 60 60 60 60 60 60 60 60 60 [26060.605] VM(0/1/0) play mute
60 60 60 60 22 22 22 22 22 22 [26060.705] VM(0/1/0) play digit '1'
22 60 60 60 60 60 60 60 60 60 60 60 60 60 60 [26060.855] VM(0/1/0) play mute
60 60 60 60 22 22 22 22 22 22 [26060.955] VM(0/1/0) play digit '1'
22 60 60 60 60 60 60 60 60 60 60 60 60 60 60 [26061.105] VM(0/1/0) play mute
60 60 60 60 22 22 22 22 22 22 [26061.205] VM(0/1/0) play digit '2'
22 60 60 60 60 60 60 60 60 60 60 60 60 60 60 [26061.355] VM(0/1/0) play mute
60 60 60 60 60 22 22 22 22 22 [26061.455] VM(0/1/0) play digit '2'
22 60 60 60 60 60 60 60 60 60 60 60 60 60 60 [26061.605] VM(0/1/0) play mute
60 60 60 60 22 22 22 22 22 22 [26061.705] VM(0/1/0) play digit '2'
22 60 60 60 60 60 60 60 60 60 60 60 60 60 60 [26061.855] VM(0/1/0) play mute
60 60 60 60 22 22 22 22 22 22 [26061.955] VM(0/1/0) play digit '3'
22 60 60 60 60 60 60 60 60 60 60 60 60 60 60 [26062.105] VM(0/1/0) play mute
60 60 60 60 22 22 22 22 22 22 [26062.205] VM(0/1/0) play digit '3'
22 60 60 60 60 60 60 60 60 60 60 60 60 60 60 [26062.355] VM(0/1/0) play mute
60 60 60 60 22 22 22 22 22 22 [26062.455] VM(0/1/0) play digit '4'
22 60 60 60 60 60 60 60 60 60 60 60 60 60 60 [26062.605] VM(0/1/0) play mute
60 60 60 60 22 22 22 22 22 22 [26062.705] VM(0/1/0) play digit '4'
22 60 60 60 60 60 60 60 60 60 60 60 60 60 60 [26062.855] VM(0/1/0) play mute
60 60 60 60 22 22 22 22 22 22 [26062.955] VM(0/1/0) Fax enable
[26062.955] VM(0/1/0) Tx CONNECT_CNF
22 [26062.955] RTA(0/1/0) Rx AP_SVC_REQ nSvcElem=1 rawDataLen=0
VAD_CTRL 0
[26062.955] VM(0/1/0) VAD disable
[26062.955] VM(0/1/0) SID enable by CCC
22 22 22 22 [26063.000] RTA(0/1/0) Rx AP_SVC_REQ nSvcElem=1 rawDataLen=0
DTMF_CTRL 1
[26063.000] VM(0/1/0) DTMF_RTP_RFC2833 enable
[26063.000] VM(0/1/0) DTMF_RTP_RFC2833 TxPT=0x65, RxPT=0x65
22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 [26066.255] RTA(0/1/0) Rx RS_CLOSE_REQ callId=135 ssId=1 dir=reve
[26066.255] RTA(0/1/0) Rx RS_CLOSE_REQ callId=135 ssId=1 dir=forw
[26066.255] RTA(0/1/0) close Media socket
[26066.255] RTA(0/1/0) close RTCP socket
[26066.255] RTA(0/1/0) Rx AP_SVC_REQ nSvcElem=1 rawDataLen=0
DTMF_STOP
[26066.255] VM(0/1/0) play mute
[26066.255] RTA(0/1/0) Rx CC_DISCONN_REQ CZ=0, peerId(0/0/0)
[26066.255] VM(0/1/0) vopp idle
[26066.255] VM(0/1/0) FXO OnHook
[26066.260] VM(0/1/0) Tx DISCONN_CNF
Пробывал так-же звонить на номер без восьмерки. Результат тот-же. Т.е. получаеися что линия дает тон занято сразу после посылки первой цифры в линию? Это как нибудь можно вылечить?
С этим же конфигом работает порядка 15 шлюзов по России, и ни у кого проблем нет. А тут.....
Спасибо.