- Manual
3 weeks 14 horas antes - Skype que permite a Asterisk
3 weeks 19 horas antes - gracias
3 weeks 5 days antes - Eso lo tenes que hacer en la
3 weeks 5 days antes - Permisos
4 weeks 11 horas antes - Mismo problema
4 weeks 16 horas antes - Consulta de Distribuidores
5 weeks 1 día antes - IAX2
5 weeks 2 days antes - duda Cisco 7911g
5 weeks 2 days antes - Enlazar dos centrales con Asterisk
5 weeks 2 days antes
Cisco VG224 con Asterisk
Posted Noviembre 21st, 2008 by manzurek
Comparto la configuración de un cisco vg224 usando el protocolo SIP para comunicarse con un servidor asterisk, no se si con MGCP se puede tener una mayor integracion, agradecere mayor informacion si alguien ya realizo alguna configuracion de esta manera
Saludos,
version 12.4
no service pad
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
no service password-encryption
!
hostname VG224
!
boot-start-marker
boot-end-marker
!
logging message-counter syslog
logging buffered 16000
enable password cisco
!
no aaa new-model
clock timezone GMT -5
!
!
ip source-route
ip cef
!
!
!
!
!
!
voice call send-alert
voice rtp send-recv
!
voice service pots
!
voice service voip
!
voice class codec 1
codec preference 1 g711ulaw
!
!
!
!
!
!
!
!
!
!
!
!
!
voice-card 0
!
!
application
service dsapp
param callWaiting TRUE
!
global
service default dsapp
!
!
!
!
!
archive
log config
hidekeys
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.202.33 255.255.255.0 ===> IP del VG224
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 192.168.202.1 ===> IP del mi router
!
ip http server
no ip http secure-server
!
!
!
control-plane
!
!
!
voice-port 2/0
mwi
timeouts call-disconnect 5
station-id name Charly
station-id number 1980
caller-id enable
!
voice-port 2/1
mwi
timeouts call-disconnect 5
station-id name Nito
station-id number 1981
caller-id enable
!
voice-port 2/2
!
voice-port 2/3
!
voice-port 2/4
!
voice-port 2/5
!
voice-port 2/6
!
voice-port 2/7
!
voice-port 2/8
!
voice-port 2/9
!
voice-port 2/10
!
voice-port 2/11
!
voice-port 2/12
!
voice-port 2/13
!
voice-port 2/14
!
voice-port 2/15
!
voice-port 2/16
!
voice-port 2/17
!
voice-port 2/18
!
voice-port 2/19
!
voice-port 2/20
!
voice-port 2/21
!
voice-port 2/22
!
voice-port 2/23
!
!
!
dial-peer voice 10 pots
destination-pattern 1980
port 2/0
authentication username 1980 password 12345 ===> Extensión 1980 creada en mi asterisk
!
dial-peer voice 11 pots
destination-pattern 1981
port 2/1
authentication username 1981 password 12345 ===> Extensión 1981 creada en mi asterisk
!
dial-peer voice 12 pots
port 2/2
!
dial-peer voice 13 pots
port 2/3
!
dial-peer voice 14 pots
port 2/4
!
dial-peer voice 15 pots
port 2/5
!
dial-peer voice 16 pots
port 2/6
!
dial-peer voice 17 pots
port 2/7
!
dial-peer voice 18 pots
port 2/8
!
dial-peer voice 19 pots
port 2/9
!
dial-peer voice 20 pots
port 2/10
!
dial-peer voice 21 pots
port 2/11
!
dial-peer voice 22 pots
port 2/12
!
dial-peer voice 23 pots
port 2/13
!
dial-peer voice 24 pots
port 2/14
!
dial-peer voice 25 pots
port 2/15
!
dial-peer voice 26 pots
port 2/16
!
dial-peer voice 27 pots
port 2/17
!
dial-peer voice 28 pots
port 2/18
!
dial-peer voice 29 pots
port 2/19
!
dial-peer voice 30 pots
port 2/20
!
dial-peer voice 31 pots
port 2/21
!
dial-peer voice 32 pots
port 2/22
!
dial-peer voice 33 pots
port 2/23
!
dial-peer voice 100 voip
destination-pattern 1...
voice-class codec 1
session protocol sipv2
session target sip-server
dtmf-relay sip-notify rtp-nte
no vad
!
sip-ua
authentication username cisco password cisco123
retry invite 3
retry response 3
retry bye 3
retry cancel 3
timers trying 1000
mwi-server ipv4:192.168.202.5 expires 3600 port 5060 transport udp
registrar ipv4:192.168.202.5:5060 expires 3600
sip-server ipv4:192.168.202.5 ==> IP Server Asterisk
!
.
Ahora creamos un Trunk SIP en nuestro asterisk
PEER
allow=ulaw
canreinvite=no
context=from-internal
disallow=all
dtmfmode=rfc2833
host=192.168.202.33
insecure=very
qualify=yes
secret=cisco123
type=peer
username=cisco
USER
allow=ulaw
canreinvite=no
context=from-internal
disallow=all
dtmfmode=rfc2833
host=192.168.202.33
qualify=yes
type=user
En el VG224 verificamos que los anexos creados esten registrados en nuestro asterisk:
VG224#show sip register status
Line peer expires(sec) registered
============ ============= ============ ===========
1980 10 33 yes
1981 11 33 yes
gracias por tu ayuda, pero sabes tengo unas falencias en el tema como que entre los axenos del vg no me suena el tono de llamado mira te voy aduntar la config haber si me puedes ayudas desde ya muxas gracias
VG224#sh run
Building configuration...
Current configuration : 2228 bytes
!
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname VG224
!
boot-start-marker
boot-end-marker
!
logging buffered 16000 debugging
enable password cisco
!
no aaa new-model
!
resource policy
!
clock timezone GMT -5
ip subnet-zero
ip cef
no ip dhcp use vrf connected
!
!
!
!
voice-card 0
!
!
voice call send-alert
voice rtp send-recv
!
voice service pots
!
voice service voip
!
voice class codec 1
codec preference 1 g711ulaw
!
!
!
!
!
!
!
!
!
archive
log config
hidekeys
!
!
!
interface FastEthernet0/0
ip address 10.10.10.15 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
ip classless
ip route 0.0.0.0 0.0.0.0 10.10.10.1
!
ip http server
!
!
!
control-plane
!
!
voice-port 2/0
mwi
timeouts call-disconnect 5
station-id name 8999
station-id number 8999
caller-id enable
!
voice-port 2/1
mwi
timeouts call-disconnect 5
station-id name 8998
station-id number 8998
caller-id enable
!
voice-port 2/2
!
voice-port 2/3
!
voice-port 2/4
!
voice-port 2/5
!
voice-port 2/6
!
voice-port 2/7
!
voice-port 2/8
!
voice-port 2/9
!
voice-port 2/10
!
voice-port 2/11
!
voice-port 2/12
!
voice-port 2/13
!
voice-port 2/14
!
voice-port 2/15
!
voice-port 2/16
!
voice-port 2/17
!
voice-port 2/18
!
voice-port 2/19
!
voice-port 2/20
!
voice-port 2/21
!
voice-port 2/22
!
voice-port 2/23
!
!
!
!
!
dial-peer voice 10 pots
destination-pattern 8999
port 2/0
authentication username 8999 password 035C02525F
!
dial-peer voice 100 voip
destination-pattern 8900
voice-class codec 1
session protocol sipv2
session target sip-server
dtmf-relay sip-notify rtp-nte
no vad
!
dial-peer voice 11 pots
destination-pattern 8998
port 2/1
authentication username 8998 password 144F4B5254
!
sip-ua
authentication username cisco password 135444425D5D217A7A747063667746504E5459
retry invite 3
retry response 3
retry bye 3
retry cancel 3
timers trying 1000
mwi-server ipv4:10.10.10.22 expires 3600 port 5060 transport udp
registrar ipv4:10.10.10.22:5060 expires 3600
sip-server ipv4:10.10.10.22
!
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end
VG224#sh sip regi
VG224#sh sip register st
VG224#sh sip register status
Line peer expires(sec) registered
============ ============= ============ ===========
8998 11 2780 yes
8999 10 2780 yes
VG224
gracias...
En esta parte solo estas permitiendo llamadas al 8900
dial-peer voice 100 voip
destination-pattern 8900
deberia ser:
destination-pattern 89..
sabes estoy intentando lo mismo que hiciste tu con el mismo vg pero no me funciona lo de la troncal , y eso de hacer la troncal en el asterisk va en el archivo sip.conf ??
gracias si puedes responder mis dudas
Hola, si, la troncal en el asterisk va en el archivo sip.conf
[ivg224]
type=user
qualify=yes
host=172.16.2.95 => ip del vg
dtmfmode=rfc2833
disallow=all
context=from-internal
canreinvite=no
allow=ulaw
[vg224]
username=cisco
type=peer
secret=cisco123
qualify=yes
insecure=very
host=172.16.2.95 => ip del vg
dtmfmode=rfc2833
disallow=all
context=from-internal
canreinvite=no
allow=ulaw
ya hice la troncal el en sip.conf asi como lo mostraste en el ejemplo de esta forma:
[gwvoz]
allow=ulaw
canreinvite=no
context=lan-phones
disallow=all
dtmfmode=rfc2833
host=10.128.8.108
insecure=very
qualify=yes
secret=12345
type=peer
username=haraujo
y que deberia poner en extension.conf para poder quitar las llamadas por esa troncal? gracias..