config.cfg на [more]
!
version 8.238
!
hostname AP200
!
dhcp-list 0 type server
dhcp-list 0 address server interface ether0.0
dhcp-list 0 option dhcp-lease-time 600
!
dhcp-list 1 type server
dhcp-list 1 address server 10.1.1.2 10.1.1.126 255.255.255.128
!
!
ip-share enable
ip-share interface net-side ether0.0
ip-share interface local-side ether1.0
!
interface ether0.0
ip address 192.168.0.246 255.255.255.0
!
interface ether1.0
no ip address
!
snmp name AP200B
!
no arp reset
!
route 0.0.0.0 0.0.0.0 192.168.0.254
!
ntp refresh 5
ntp offset 05:00
ntp server 192.168.0.245
!
dnshost nameserver 192.186.0.1
!
service ntp
!
!
!
!
!
! 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
busyout monitor gatekeeper
no busyout monitor callagent
busyout monitor voip-interface
!
!
! Voice port configuration.
!
! FXS
voice-port 0/0
connection plar 130
!
!
! FXS
voice-port 0/1
!
!
!
!
! Pots peer configuration.
!
dial-peer voice 1 pots
destination-pattern 130
port 0/0
user-password password
!
!
!
! Voip peer configuration.
!
dial-peer voice 2 voip
destination-pattern 130
port 0/0
session-protocol sip
session target 192.168.0.245
dtmf-relay h245-alphanumeric
!
!
!
!
! Gateway configuration.
!
gateway
h323-id voip.192.168.0.246
!
!
! SIP UA configuration.
!
sip-ua
sip-server 192.168.0.245
register e164
!
!
! MGCP configuration.
!
mgcp
codec g711ulaw
!
!
! Tones
!
!
!
!
[/more]
user на Asterisk [more]
[130]
deny=0.0.0.0/0.0.0.0
disallow=all
type=friend
secret=password
qualify=yes
port=5060
pickupgroup=
permit=192.168.0.0/255.255.0.0
nat=yes
mailbox=130@device
host=dynamic
dtmfmode=inband
dial=SIP/130
context=from-internal
canreinvite=no
callgroup=
callerid=device <130>
allow=g723
accountcode=
call-limit=50
[/more]
Помогите подружить, внутренний номер на первом порту нужен 130, на второй пока не нужен... в будущем посмотрю по аналогии
Проблема в следущем: звоню с номера 116 на номер 130, звонки проходят! звоню с номера 130 звонки никуда не проходят, чего с ним за это можно сделать?
!
version 8.238
!
hostname AP200
!
dhcp-list 0 type server
dhcp-list 0 address server interface ether0.0
dhcp-list 0 option dhcp-lease-time 600
!
dhcp-list 1 type server
dhcp-list 1 address server 10.1.1.2 10.1.1.126 255.255.255.128
!
!
ip-share enable
ip-share interface net-side ether0.0
ip-share interface local-side ether1.0
!
interface ether0.0
ip address 192.168.0.246 255.255.255.0
!
interface ether1.0
no ip address
!
snmp name AP200B
!
no arp reset
!
route 0.0.0.0 0.0.0.0 192.168.0.254
!
ntp refresh 5
ntp offset 05:00
ntp server 192.168.0.245
!
dnshost nameserver 192.186.0.1
!
service ntp
!
!
!
!
!
! 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
busyout monitor gatekeeper
no busyout monitor callagent
busyout monitor voip-interface
!
!
! Voice port configuration.
!
! FXS
voice-port 0/0
connection plar 130
!
!
! FXS
voice-port 0/1
!
!
!
!
! Pots peer configuration.
!
dial-peer voice 1 pots
destination-pattern 130
port 0/0
user-password password
!
!
!
! Voip peer configuration.
!
dial-peer voice 2 voip
destination-pattern 130
port 0/0
session-protocol sip
session target 192.168.0.245
dtmf-relay h245-alphanumeric
!
!
!
!
! Gateway configuration.
!
gateway
h323-id voip.192.168.0.246
!
!
! SIP UA configuration.
!
sip-ua
sip-server 192.168.0.245
register e164
!
!
! MGCP configuration.
!
mgcp
codec g711ulaw
!
!
! Tones
!
!
!
!
[/more]
user на Asterisk [more]
[130]
deny=0.0.0.0/0.0.0.0
disallow=all
type=friend
secret=password
qualify=yes
port=5060
pickupgroup=
permit=192.168.0.0/255.255.0.0
nat=yes
mailbox=130@device
host=dynamic
dtmfmode=inband
dial=SIP/130
context=from-internal
canreinvite=no
callgroup=
callerid=device <130>
allow=g723
accountcode=
call-limit=50
[/more]
Помогите подружить, внутренний номер на первом порту нужен 130, на второй пока не нужен... в будущем посмотрю по аналогии
Проблема в следущем: звоню с номера 116 на номер 130, звонки проходят! звоню с номера 130 звонки никуда не проходят, чего с ним за это можно сделать?