Схема:
Asterisk (Ext 1000) ----> csico vg350 (Ext 2000)
Установил Asterisk (192.168.1.66), подключил к нему шлюз VG350 (192.168.1.100).
Звонок от 2000 проходит к 1000. Но звонки от Asterisk к VG350 не проходят. Инвайты приходят на VG350, но он не отвечает на них.
sip.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[general]
context=phones
bindaddr=0.0.0.0
[1000]
type=friend
context=phones
host=dynamic
callerid="Linksys"
[2000]
type=friend
context=phones
host=dynamic
secret=1234
callerid=2000
context=phones
bindaddr=0.0.0.0
[1000]
type=friend
context=phones
host=dynamic
callerid="Linksys"
[2000]
type=friend
context=phones
host=dynamic
secret=1234
callerid=2000
extension.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[globals]
[general]
autofallthrough=yes
[default]
[internal]
exten => 1000,1,Verbose(1|Extension 1000)
exten => 1000,n,Dial(SIP/1000,30)
exten => 1000,n,Hangup()
exten => 2000,1,NoOp()
exten => 2000,n,Dial(SIP/2000,30)
exten => 2000,n,Hangup()
[phones]
include => internal
[general]
autofallthrough=yes
[default]
[internal]
exten => 1000,1,Verbose(1|Extension 1000)
exten => 1000,n,Dial(SIP/1000,30)
exten => 1000,n,Hangup()
exten => 2000,1,NoOp()
exten => 2000,n,Dial(SIP/2000,30)
exten => 2000,n,Hangup()
[phones]
include => internal
Настройка VG350
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
hostname VG350
!
boot-start-marker
boot-end-marker
!
!
no logging console
enable secret 5 $1$n3jW$tZD6FCtj/6qF2m/hOv5gK1
!
aaa new-model
!
!
aaa session-id common
clock timezone Astana 6 0
!
!
no ip dhcp use vrf connected
!
!
ip domain name test.kz
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
!
voice-card 0
!
!
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
fax protocol t38 nse force version 0 ls-redundancy 0 hs-redundancy 0 fallback none
sip
bind control source-interface GigabitEthernet0/0
bind media source-interface GigabitEthernet0/0
registrar server
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g711alaw
codec preference 3 g729r8
!
!
license udi pid VG350-SPE150/K9 sn FOC193333YQ
license accept end user agreement
license boot module vg350 technology-package uck9
hw-module pvdm 0/0
!
hw-module sm 2
!
hw-module sm 4
!
username admin privilege 15 secret 5 $1$vukU$FWm1TBZwGIfgpXPYNy7OR0
!
!
ip ssh version 1
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 192.168.1.100 255.255.255.0
duplex auto
speed auto
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!
dialer-list 1 protocol ip permit
!
!
control-plane
!
!
voice-port 2/0/0
timeouts call-disconnect 5
station-id name P0-2000
station-id number 2000
caller-id enable
!
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
sccp local GigabitEthernet0/0
!
!
ccm-manager sccp local GigabitEthernet0/0
!
dial-peer voice 100 voip
huntstop
destination-pattern ^[0-9].T
session protocol sipv2
session target sip-server
voice-class codec 1
dtmf-relay sip-notify rtp-nte
no vad
!
!
dial-peer voice 2000 pots
destination-pattern 2000
authentication username 2000 password 7 0055415550
port 2/0/0
!
!
sip-ua
authentication username test password 7 11584B5643
retry invite 2
retry response 10
timers trying 1000
timers connect 100
timers connection aging 30
timers register 100
mwi-server ipv4:192.168.1.66 expires 3600 port 5060 transport udp
registrar ipv4:192.168.1.66:5060 expires 3600
sip-server ipv4:192.168.1.66
offer call-hold conn-addr
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
stopbits 1
line vty 0 4
exec-timeout 60 0
logging synchronous
transport input ssh
line vty 5 15
exec-timeout 60 0
logging synchronous
transport input ssh
!
scheduler allocate 20000 1000
ntp server 192.168.1.1
!
end
!
boot-start-marker
boot-end-marker
!
!
no logging console
enable secret 5 $1$n3jW$tZD6FCtj/6qF2m/hOv5gK1
!
aaa new-model
!
!
aaa session-id common
clock timezone Astana 6 0
!
!
no ip dhcp use vrf connected
!
!
ip domain name test.kz
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
!
voice-card 0
!
!
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
fax protocol t38 nse force version 0 ls-redundancy 0 hs-redundancy 0 fallback none
sip
bind control source-interface GigabitEthernet0/0
bind media source-interface GigabitEthernet0/0
registrar server
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g711alaw
codec preference 3 g729r8
!
!
license udi pid VG350-SPE150/K9 sn FOC193333YQ
license accept end user agreement
license boot module vg350 technology-package uck9
hw-module pvdm 0/0
!
hw-module sm 2
!
hw-module sm 4
!
username admin privilege 15 secret 5 $1$vukU$FWm1TBZwGIfgpXPYNy7OR0
!
!
ip ssh version 1
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 192.168.1.100 255.255.255.0
duplex auto
speed auto
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!
dialer-list 1 protocol ip permit
!
!
control-plane
!
!
voice-port 2/0/0
timeouts call-disconnect 5
station-id name P0-2000
station-id number 2000
caller-id enable
!
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
sccp local GigabitEthernet0/0
!
!
ccm-manager sccp local GigabitEthernet0/0
!
dial-peer voice 100 voip
huntstop
destination-pattern ^[0-9].T
session protocol sipv2
session target sip-server
voice-class codec 1
dtmf-relay sip-notify rtp-nte
no vad
!
!
dial-peer voice 2000 pots
destination-pattern 2000
authentication username 2000 password 7 0055415550
port 2/0/0
!
!
sip-ua
authentication username test password 7 11584B5643
retry invite 2
retry response 10
timers trying 1000
timers connect 100
timers connection aging 30
timers register 100
mwi-server ipv4:192.168.1.66 expires 3600 port 5060 transport udp
registrar ipv4:192.168.1.66:5060 expires 3600
sip-server ipv4:192.168.1.66
offer call-hold conn-addr
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
stopbits 1
line vty 0 4
exec-timeout 60 0
logging synchronous
transport input ssh
line vty 5 15
exec-timeout 60 0
logging synchronous
transport input ssh
!
scheduler allocate 20000 1000
ntp server 192.168.1.1
!
end
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
*Nov 4 08:27:45.771: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
INVITE sip:2000@192.168.1.100:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.66:5060;branch=z9hG4bK06f06ce2
Max-Forwards: 70
From: "Linksys" <sip:1000@192.168.1.66>;tag=as50fd2ac3
To: <sip:2000@192.168.1.100:5060>
Contact: <sip:1000@192.168.1.66:5060>
Call-ID: 22ee92f2612c67070fdeee8b726d0a4e@192.168.1.66:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Wed, 04 Nov 2015 08:27:18 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: repl
VG350#aces, timer
Content-Type: application/sdp
Content-Length: 296
v=0
o=root 1824178542 1824178542 IN IP4 192.168.1.66
s=Asterisk PBX 11.7.0~dfsg-1ubuntu1
c=IN IP4 192.168.1.66
t=0 0
m=audio 15546 RTP/AVP 0 3 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
*Nov 4 08:27:45.771: //-1/xxxxxxxxxxxx/SIP/Error/sipSPILocateInviteDialogCCB:
Ip Trust List Authentication failed for Incoming Request, method = INVITE
Received:
INVITE sip:2000@192.168.1.100:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.66:5060;branch=z9hG4bK06f06ce2
Max-Forwards: 70
From: "Linksys" <sip:1000@192.168.1.66>;tag=as50fd2ac3
To: <sip:2000@192.168.1.100:5060>
Contact: <sip:1000@192.168.1.66:5060>
Call-ID: 22ee92f2612c67070fdeee8b726d0a4e@192.168.1.66:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Date: Wed, 04 Nov 2015 08:27:18 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: repl
VG350#aces, timer
Content-Type: application/sdp
Content-Length: 296
v=0
o=root 1824178542 1824178542 IN IP4 192.168.1.66
s=Asterisk PBX 11.7.0~dfsg-1ubuntu1
c=IN IP4 192.168.1.66
t=0 0
m=audio 15546 RTP/AVP 0 3 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
*Nov 4 08:27:45.771: //-1/xxxxxxxxxxxx/SIP/Error/sipSPILocateInviteDialogCCB:
Ip Trust List Authentication failed for Incoming Request, method = INVITE