xcke’s blog

CCIE# Journey

Archive for the ‘SIP’ Category

Voice2: SIP Voice Gateway

Thursday
Jun 26,2008

Úgy néz ki mostanában csak Voice-al kell foglalkoznom. Sajnos ez a terület elég új nekem de már a CCVP slide-jait nézegetem:)  A mai feladat az volt, hogy egy Cisco 2851-es router SIP hívásokat fogadjon, és 4 darab E1-es trönkön küldje tovább azokat egy Avaya alközpontnak. Ez 120 hívást jelent, és g729 esetén 240 DSP-re van szükség. A router-ben 3 DSP slot van ami 120 híváshoz kevés lenne, ezért egy NM modult is kellett használni, melyen további 4 slot van.

A konfig (nem teljes, de a lényeges részeket kiemeltem):

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname VoiceGW001
!
boot-start-marker
boot-end-marker
!

card type e1 0 0
card type e1 1 1

logging buffered 51200 warnings
!
aaa new-model
!
!
aaa authentication login local_auth local line
!
aaa session-id common
!
resource policy
!
network-clock-participate wic 0
ip subnet-zero
!
!
ip cef
!
!
ip domain name almafa.hu
ip ssh version 2
isdn switch-type primary-net5
!
voice-card 0
 dspfarm
!
voice-card 1
 dspfarm

!
!
!
voice service voip
 sip

!
!
controller E1 0/0/0
 clock source internal
 pri-group timeslots 1-31

!
controller E1 0/0/1
 clock source internal
 pri-group timeslots 1-31

!
controller E1 1/0
 clock source internal
 pri-group timeslots 1-31

!
controller E1 1/1
 clock source internal
 pri-group timeslots 1-31

!
!
!
interface GigabitEthernet0/0
 description TO_MULTIFLEX
 ip address 10.110.110.3 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/0/0:15
 no ip address
 isdn switch-type primary-net5
 isdn overlap-receiving
 isdn protocol-emulate network
 isdn incoming-voice voice
 isdn send-alerting
 isdn sending-complete
 no cdp enable

!
interface Serial0/0/1:15
 no ip address
 isdn switch-type primary-net5
 isdn overlap-receiving
 isdn protocol-emulate network
 isdn incoming-voice voice
 isdn send-alerting
 isdn sending-complete
 no cdp enable

!
interface Serial1/0:15
 no ip address
 isdn switch-type primary-net5
 isdn overlap-receiving
 isdn protocol-emulate network
 isdn incoming-voice voice
 isdn send-alerting
 isdn sending-complete
 no cdp enable

!
interface Serial1/1:15
 no ip address
 isdn switch-type primary-net5
 isdn overlap-receiving
 isdn protocol-emulate network
 isdn incoming-voice voice
 isdn send-alerting
 isdn sending-complete
 no cdp enable

!
ip classless
!
!
no ip http server
no ip http secure-server
!
control-plane
!
!
!
voice-port 0/0/0:15
 cptone HU
!
voice-port 0/0/1:15
 cptone HU
!
voice-port 1/0:15
 cptone HU
!
voice-port 1/1:15
 cptone HU

!
!
!
!
!
dial-peer voice 10 voip
 description FROM_SIP_GW
 session protocol sipv2
 incoming called-number .T

!
dial-peer voice 20 pots
 description TRUNK_0
 destination-pattern .T
 no digit-strip
 direct-inward-dial
 port 0/0/0:15

!
dial-peer voice 30 pots
 description TRUNK_1
 destination-pattern .T
 no digit-strip
 direct-inward-dial
 port 0/0/1:15

!
dial-peer voice 40 pots
 description TRUNK_2
 destination-pattern .T
 no digit-strip
 direct-inward-dial
 port 1/0:15

!
dial-peer voice 50 pots
 description TRUNK_3
 destination-pattern .T
 no digit-strip
 direct-inward-dial
 port 1/1:15

 

Popularity: 37% [?]

Thursday
Jun 26,2008

Belefutottam egy érdekes Voice problémába. Egy Cisco 2811-es routerrel kellett megoldani DTMF-Relay funkciót. A mobil szolgáltató rtp-nte-n küldi a DTMF jelzéseket, viszont inband DTMF-ként kell tovább küldeni azokat. Ezt a következő konfiggal tudtam megcsinálni (nem valós IP címeket, és telefon számot tartalmaz) :

Nincs időm leírni hogy ez hogy működik, nézzetek utánna a referenciában szereplő linkeken.

Building configuration…

Current configuration : 3322 bytes
!
! Last configuration change at 15:55:30 UTC Tue Jun 24 2008 by evopro
! NVRAM config last updated at 16:48:27 UTC Tue Jun 24 2008 by evopro
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname voice_gw
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
dot11 syslog
!
!
ip cef
!
!
no ip domain lookup
ip domain name voice.hu
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
multilink bundle-name authenticated
!
!
voice-card 0
 dspfarm
 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
!
!
archive
 log config
  hidekeys
!
!
interface Loopback1
 description DSPFARM_CODE
 ip address 2.2.2.2 255.255.255.255

!
interface FastEthernet0/0
 ip address192.168.1.10 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/0/0
 ip address 192.168.10.1 255.255.255.252
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
dialer-list 1 protocol ip permit
!
!
control-plane
!
sccp local Loopback1
sccp ccm 2.2.2.2 identifier 1 version 4.0
sccp

!
sccp ccm group 1
 associate ccm 1 priority 1
 associate profile 1 register XCODE123456
 keepalive retries 1
 keepalive timeout 10
 switchover method immediate
 switchback method immediate

!
dspfarm profile 1 transcode
 codec g711ulaw
 codec g711alaw
 codec g729ar8
 codec g729abr8
 maximum sessions 5
 associate application SCCP

!
!
!
dial-peer voice 50 voip
 description TO_CTI_SERVER
 service session
 destination-pattern 06703351111
 session protocol sipv2
 session target ipv4:217.79.132.5
 codec g711alaw
!

dial-peer voice 40 voip
 description FROM_VODA
 service session
 session protocol sipv2
 incoming called-number 06703351111
 dtmf-relay rtp-nte
 codec g711alaw

!
!
gateway
 timer receive-rtp 1200
!
sip-ua
!
!
!
gatekeeper
 shutdown
!
!
telephony-service
 sdspfarm units 1
 sdspfarm transcode sessions 10
 sdspfarm tag 1 XCODE123456
 max-ephones 1
 max-dn 1
 ip source-address 2.2.2.2 port 2000
 max-conferences 8 gain -6
 transfer-system full-consult
 create cnf-files version-stamp 7960 Jun 24 2008 15:42:03

!
!
line con 0
line aux 0
line vty 0 4
 login local
 transport input telnet ssh
!
scheduler allocate 20000 1000
ntp clock-period 17180453
!
end
 

Referencia:

http://www.cisco.com/en/US/products/sw/voicesw/ps5640/products_configuration_example09186a008092d6b3.shtml
http://www.cisco.com/en/US/tech/tk1077/technologies_configuration_example09186a00800ffdcc.shtml#veri
http://www.cisco.com/en/US/docs/ios/12_3/vvf_c/interop/intcnf2.html#wp1004679

Popularity: 40% [?]

Tools


Get your own Box.net widget and share anywhere!

stat


Stat

Support



Events


Feeds


Highest Rated


Now Reading


Archives