Доброго времени суток!
Сразу к делу. Схема:
sip шлюз - cisco 3825 - ip - cisco 2801 - pri АТС
Есть сеть филиалов с похожей схемой - все в норме, звонки ходят. Маршрутизаторы huawei ar2220 и cisco 2600 с aim-voice платами.
Есть Cisco 3825, к ней подключен sip шлюз с телефоном (для тестов), до всех точек с него дозваниваюсь. Добавили точку и поставили cisco 2801 с платой pvdm2-16 и тут ступор, не могу поднять телефонию до нее. Каким то образом самый самый первый звонок от 3825 до 2801 по h323 прошел(как только плату купил,воткнул, смонтировали, подключили, позвонил - норм), решил попробовать на sip и все...ничего не звонит не по sip не по h323. Откатывал конфиги, уже все, не звонит.
Дело скорее всего в кодеках, игрался с ними(поэтому так много voice clas codec) не могу понять только почему и где, т.к. имею очень мала опыта и знаний=(
В самом конце дебаги будут.
Дебаги все выложу ниже.Конфиги:
1)sh run 2801:
Building configuration...
Current configuration : 2124 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot system flash c2801-ipvoicek9-mz.124-5b.bin
boot-end-marker
!
no aaa new-model
!
resource policy
!
network-clock-participate wic 2
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip cef
!
isdn switch-type primary-net5
!
voice-card 0
dsp services dspfarm
!
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
h323
sip
!
voice class codec 100
codec preference 1 g711alaw
codec preference 2 g711ulaw
!
voice class codec 4
codec preference 1 g729br8
codec preference 2 g729r8 bytes 80
codec preference 3 g723r63 bytes 48
codec preference 4 g723r53 bytes 40
codec preference 5 g728
codec preference 6 g711alaw
codec preference 7 g711ulaw
!
voice class codec 10
codec preference 1 g729r8 bytes 160
codec preference 2 g729br8 bytes 160
codec preference 3 g711alaw
!
voice class codec 12
codec preference 1 g728
!
controller E1 0/2/0
framing NO-CRC4
pri-group timeslots 1-16
!
!
!
interface FastEthernet0/0
ip address 10.34.0.233 255.255.128.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.34.193.33 255.255.255.224
duplex auto
speed auto
!
interface FastEthernet0/1/0
!
interface FastEthernet0/1/1
shutdown
!
interface FastEthernet0/1/2
shutdown
!
interface FastEthernet0/1/3
shutdown
!
interface Serial0/2/0:15
no ip address
encapsulation hdlc
no logging event link-status
isdn switch-type primary-net5
isdn incoming-voice voice
no cdp enable
!
interface Vlan1
no ip address
!
ip http server
no ip http secure-server
!
disable-eadi
!
control-plane
!
voice-port 0/2/0:15
cptone RU
bearer-cap Speech
!
!
!
!
!
dial-peer voice 39 pots
destination-pattern 39..
direct-inward-dial
port 0/2/0:15
forward-digits all
!
scheduler allocate 20000 1000
end
2)sh run 3825
Building configuration...
Current configuration : 5139 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
card type e1 0 1
card type command needed for slot/vwic-slot 1/0
!
no aaa new-model
network-clock-participate wic 1
!
no ip dhcp use vrf connected
!
ip cef
!
multilink bundle-name authenticated
!
isdn switch-type primary-net5
!
voice-card 0
no dspfarm
!
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
h323
sip
registrar server expires max 3600 min 600
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
!
voice class codec 2
codec preference 1 g729br8
!
voice class codec 3
codec preference 1 g729r8
!
voice class codec 4
codec preference 1 g729br8
codec preference 2 g729r8 bytes 80
codec preference 3 g723r63 bytes 48
codec preference 4 g723r53 bytes 40
codec preference 5 g728
codec preference 6 g711alaw
!
voice class codec 5
!
voice class codec 225
!
voice class codec 10
codec preference 1 g729r8 bytes 160
codec preference 2 g729br8 bytes 160
codec preference 3 g711alaw
!
voice register global
mode cme
source-address 10.34.0.200 port 5060
max-dn 50
max-pool 50
!
voice register dn 2
number 81342299
!
voice register dn 5
number 80342299
!
voice register pool 2
id mac 001F.CE24.018A
number 1 dn 2
voice-class codec 4
username 81342299 password 1111
!
voice register pool 5
id mac 001F.CE24.018A
number 1 dn 5
voice-class codec 1
username 80342299 password 1111
!
username 81345603
archive
log config
hidekeys
!
!
controller E1 0/1/0
!
controller E1 0/1/1
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/0.2809
encapsulation dot1Q 2809
ip address 10.34.0.200 255.255.128.0
!
interface GigabitEthernet0/1
ip address 10.34.193.1 255.255.255.224
duplex auto
speed auto
media-type rj45
!
interface FastEthernet0/0/0
!
interface FastEthernet0/0/1
!
interface FastEthernet0/0/2
!
interface FastEthernet0/0/3
!
interface Vlan1
no ip address
!
no ip http server
no ip http secure-server
!
control-plane
!
mgcp behavior g729-variants static-pt
!
dial-peer voice 2 voip
description VLG-CENTR
destination-pattern 2...
voice-class codec 1
session protocol sipv2
session target ipv4:10.34.0.1
dtmf-relay h245-alphanumeric
fax protocol t38 ls-redundancy 5 hs-redundancy 2 fallback none
no vad
!
dial-peer voice 1 voip
destination-pattern 39..
voice-class codec 1
session target ipv4:10.34.0.233
fax protocol t38 ls-redundancy 5 hs-redundancy 2 fallback none
!
sip-ua
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
scheduler allocate 20000 1000
!
webvpn cef
!
end
3)sh ver 2801
Cisco IOS Software, 2801 Software (C2801-IPVOICEK9-M), Version 12.4(5b), RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Wed 19-Apr-06 08:19 by ssearch
ROM: System Bootstrap, Version 12.3(8r)T9, RELEASE SOFTWARE (fc1)
Router uptime is 2 hours, 19 minutes
System returned to ROM by reload at 08:35:40 UTC Thu Mar 28 2013
System image file is "flash:c2801-ipvoicek9-mz.124-5b.bin"
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Cisco 2801 (revision 6.0) with 116736K/14336K bytes of memory.
Processor board ID FCZ110872YE
6 FastEthernet interfaces
16 Serial interfaces
1 Channelized E1/PRI port
1 DSP, 16 Voice resources
DRAM configuration is 64 bits wide with parity disabled.
191K bytes of NVRAM.
62720K bytes of ATA CompactFlash (Read/Write)
Configuration register is 0x2102
4)sh ver 3825
Router#sh ver
Cisco IOS Software, 3800 Software (C3825-ADVIPSERVICESK9-M), Version 12.4(11)XW9, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Sat 09-Aug-08 19:49 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Router uptime is 2 hours, 21 minutes
System returned to ROM by reload at 08:40:29 UTC Thu Mar 28 2013
System image file is "flash:c3825-advipservicesk9-mz.124-11.XW9.bin"
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Cisco 3825 (revision 1.1) with 222208K/39936K bytes of memory.
Processor board ID FCZ110872UZ
4 FastEthernet interfaces
2 Gigabit Ethernet interfaces
2 Channelized E1/PRI ports
2 Channelized (E1 or T1)/PRI ports
1 Virtual Private Network (VPN) Module
DRAM configuration is 64 bits wide with parity enabled.
479K bytes of NVRAM.
507024K bytes of ATA System CompactFlash (Read/Write)
Configuration register is 0x2102
5)sh inv 2801
Router#sh inv
NAME: "2801 chassis", DESCR: "2801 chassis, Hw Serial#: 1166469395, Hw Revision: 6.0"
PID: CISCO2801 , VID: V03 , SN: FCZ110872YE
NAME: "C2801 Motherboard with 2 Fast Ethernet", DESCR: "C2801 Motherboard with 2 Fast Ethernet"
PID: CISCO2801 , VID: 6.0, SN: FCZ110872YE
NAME: "WIC/VIC/HWIC 1", DESCR: "4 Port FE Switch"
PID: HWIC-4ESW , VID: V01 , SN: FOC11223LYC
NAME: "WIC/VIC 2", DESCR: "One port E1 voice interface daughtercard with G.703"
PID: VWIC-1MFT-G703= , VID: 1.0, SN: 24409794
NAME: "PVDMII DSP SIMM with one DSP", DESCR: "PVDMII DSP SIMM with one DSP"
PID: PVDM2-16 , VID: V01 , SN: FOC13064NHZ
Дебаги:
1)ccsip messages (voice clas codec 1)
*Mar 28 11:09:50.559: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
INVITE sip:3950@10.34.0.200:5060 SIP/2.0
Via: SIP/2.0/UDP 10.34.0.234;branch=z9hG4bK5712c4679bcc73b2813efaecb61cc3f2;rport
From: <sip:81342299@10.34.0.200:5060>;tag=2588e53a6d12efc553f4c52bbec0c77b
To: <sip:3950@10.34.0.200:5060>
Call-ID: a6118d9336e2ddaf21c8cc439929101f@10.34.0.234
CSeq: 17008 INVITE
Contact: <sip:81342299@10.34.0.234>
Supported: replaces
User-Agent: QVI-2104 Rev 9.70.36.10 PCB 61.1 LOGIC 0 BIOS 1, Built on Feb 2 2012, 17:21:45
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, NOTIFY, REFER
Content-Type: application/sdp
Max-Forwards: 70
Content-Length: 378
v=0
o=Qtech 7775537 7775538 IN IP4 10.34.0.234
s=-
c=IN IP4 10.34.0.234
t=0 0
m=audio 8004 RTP/AVP 18 0 8 4
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=ptime:20
a=sqn:0
a=cdsc:1 audio RTP/AVP 18 0 8 4
a=cdsc:2 imagea udptl t38
a=T38FaxUdpEC:t38UDPRedundancy
a=T38FaxVersion:0
a=T38MaxBitRate:9600
*Mar 28 11:09:50.563: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.34.0.234;branch=z9hG4bK5712c4679bcc73b2813efaecb61cc3f2;rport
From: <sip:81342299@10.34.0.200:5060>;tag=2588e53a6d12efc553f4c52bbec0c77b
To: <sip:3950@10.34.0.200:5060>
Date: Thu, 28 Mar 2013 11:09:50 GMT
Call-ID: a6118d9336e2ddaf21c8cc439929101f@10.34.0.234
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 17008 INVITE
Allow-Events: telephone-event
Content-Length: 0
*Mar 28 11:09:50.567: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
INVITE sip:3950@10.34.0.233:5060 SIP/2.0
Via: SIP/2.0/UDP 10.34.0.200:5060;branch=z9hG4bK620E5
Remote-Party-ID: <sip:81342299@10.34.0.200>;party=calling;screen=no;privacy=off
From: <sip:81342299@10.34.0.200>;tag=8767CC-256A
To: <sip:3950@10.34.0.233>
Date: Thu, 28 Mar 2013 11:09:50 GMT
Call-ID: D7llFD653E-96CE11E2-8074D3DB-2A2A1515@10.34.0.200
Supported: 100rel,timer,resource-priority,replaces
Min-SE: 1800
Cisco-Guid: 3623628014-2530087394-2154746843-707400981
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1364468990
Contact: <sip:81342299@10.34.0.200:5060>
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 69
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 224
v=0
o=CiscoSystemsSIP-GW-UserAgent 3886 9550 IN IP4 10.34.0.200
s=SIP Call
c=IN IP4 10.34.0.200
t=0 0
m=audio 19100 RTP/AVP 0 8 19
c=IN IP4 10.34.0.200
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:19 CN/8000
*Mar 28 11:09:50.591: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.34.0.200:5060;branch=z9hG4bK620E5
From: <sip:81342299@10.34.0.200>;tag=8767CC-256A
To: <sip:3950@10.34.0.233>;tag=868E6C-1CF2
Date: Thu, 28 Mar 2013 11:04:53 GMT
Call-ID: D7FD653E-96CE11E2-8074D3DB-2A2A1515@10.34.0.200
Timestamp: 1364468990
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 101 INVITE
Allow-Events: telephone-event
Content-Length: 0
*Mar 28 11:09:50.639: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
SIP/2.0 500 Internal Server Error
Via: SIP/2.0/UDP 10.34.0.200:5060;branch=z9hG4bK620E5
From: <sip:81342299@10.34.0.200>;tag=8767CC-256A
To: <sip:3950@10.34.0.233>;tag=868E6C-1CF2
Date: Thu, 28 Mar 2013 11:04:53 GMT
Call-ID: D7FD653E-96CE11E2-8074D3DB-2A2A1515@10.34.0.200
Timestamp: 1364468990
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 101 INVITE
Allow-Events: telephone-event
Reason: Q.850;cause=16
Content-Length: 0
*Mar 28 11:09:50.639: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
ACK sip:3950@10.34.0.233:5060 SIP/2.0
Via: SIP/2.0/UDP 10.34.0.200:5060;branch=z9hG4bK620E5
From: <sip:81342299@10.34.0.200>;tag=8767CC-256A
To: <sip:3950@10.34.0.233>;tag=868E6C-1CF2
Date: Thu, 28 Mar 2013 11:09:50 GMT
Call-ID: D7FD653E-96CE11E2-8074D3DB-2A2A1515@10.34.0.200
Max-Forwards: 70
CSeq: 101 ACK
Allow-Events: telephone-event
Content-Length: 0
*Mar 28 11:09:50.639: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 10.34.0.234;branch=z9hG4bK5712c4679bcc73b2813efaecb61cc3f2;rport
From: <sip:81342299@10.34.0.200:5060>;tag=2588e53a6d12efc553f4c52bbec0c77b
To: <sip:3950@10.34.0.200:5060>;tag=876814-1825
Date: Thu, 28 Mar 2013 11:09:50 GMT
Call-ID: a6118d9336e2ddaf21c8cc439929101f@10.34.0.234
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 17008 INVITE
Allow-Events: telephone-event
Reason: Q.850;cause=41
Content-Length: 0
*Mar 28 11:09:50.655: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
ACK sip:3950@10.34.0.200:5060 SIP/2.0
Via: SIP/2.0/UDP 10.34.0.234;branch=z9hG4bK5712c4679bcc73b2813efaecb61cc3f2;rport
From: <sip:81342299@10.34.0.200:5060>;tag=2588e53a6d12efc553f4c52bbec0c77b
To: <sip:3950@10.34.0.200:5060>;tag=876814-1825
Call-ID: a6118d9336e2ddaf21c8cc439929101f@10.34.0.234
CSeq: 17008 ACK
Content-Length: 0
2) ccsip calls (voice class codec 1), настараживают строчки no codec, и нули в ip адресах. По номерам кауз искал - ничего так и не нашел=\
*Mar 28 11:11:28.679: //62/126D1C668075/SIP/Call/sipSPICallInfo:
The Call Setup Information is:
Call Control Block (CCB) : 0x684BF7D8
State of The Call : STATE_DEAD
TCP Sockets Used : NO
Calling Number : 81342299
Called Number : 3950
Source IP Address (Sig ): 10.34.0.200
Destn SIP Req Addr:Port : 10.34.0.233:5060
Destn SIP Resp Addr:Port : 10.34.0.233:5060
Destination Name : 10.34.0.233
*Mar 28 11:11:28.679: //62/126D1C668075/SIP/Call/sipSPIMediaCallInfo:
Number of Media Streams: 1
Media Stream : 1
Negotiated Codec : No Codec
Negotiated Codec Bytes : 0
Nego. Codec payload : 255 (tx), 255 (rx)
Negotiated Dtmf-relay : 0
Dtmf-relay Payload : 0 (tx), 0 (rx)
Source IP Address (Media): 10.34.0.200
Source IP Port (Media): 17256
Destn IP Address (Media): 0.0.0.0
Destn IP Port (Media): 0
Orig Destn IP Address:Port (Media): 0.0.0.0:0
*Mar 28 11:11:28.679: //62/126D1C668075/SIP/Call/sipSPICallInfo:
Disconnect Cause (CC) : 41
Disconnect Cause (SIP) : 500
*Mar 28 11:11:28.699: //61/126D1C668075/SIP/Call/sipSPICallInfo:
The Call Setup Information is:
Call Control Block (CCB) : 0x684BD10C
State of The Call : STATE_DEAD
TCP Sockets Used : NO
Calling Number : 81342299
Called Number : 3950
Source IP Address (Sig ): 10.34.0.200
Destn SIP Req Addr:Port : 10.34.0.234:5060
Destn SIP Resp Addr:Port : 10.34.0.234:5060
Destination Name : 10.34.0.234
*Mar 28 11:11:28.699: //61/126D1C668075/SIP/Call/sipSPIMediaCallInfo:
Number of Media Streams: 1
Media Stream : 1
Negotiated Codec : g711ulaw
Negotiated Codec Bytes : 160
Nego. Codec payload : 0 (tx), 0 (rx)
Negotiated Dtmf-relay : 0
Dtmf-relay Payload : 0 (tx), 0 (rx)
Source IP Address (Media): 10.34.0.200
Source IP Port (Media): 16850
Destn IP Address (Media): 10.34.0.234
Destn IP Port (Media): 8004
Orig Destn IP Address:Port (Media): 0.0.0.0:0
*Mar 28 11:11:28.699: //61/126D1C668075/SIP/Call/sipSPICallInfo:
Disconnect Cause (CC) : 41
Disconnect Cause (SIP) : 503
Понимаю, тысячу раз все это делалось и тысяча статей есть, но рыл, проблема сохранилась, прошу помощи=)
С уважением, Михаил