xcke’s blog

CCIE# Journey

Archive for the ‘Voice’ Category

Thursday
Oct 30,2008

Csináltam egy kis tesztet az ISDN PRI trunk hívásirány korlátozásával kapcsolatban. Hát igen, ez kicsit beteges teszt…bridge loop, routing loop, call setup loop… :) )

A teszt rendszer:

 

1.      trunk-group erőforrás menedzsment.

 

A feature segítségével lehetséges korlátozni a hívástípusokat az ISDN PRI controller interfészen. További információk erről itt.

A konfiguráció:

 

trunk group  call_out_backup

 max-calls voice 25 direction in

 max-calls voice 30 direction out

 

controller E1 0/3/0

 pri-group timeslots 1-31

 trunk-group call_out_backup timeslots 1-31

(more…)

Popularity: 39% [?]

Sunday
Sep 21,2008

Az egyik Voice gatewayen a tárgyban említett feature-t kell megoldanom, tehát ne forduljon elő az, hogy annyi bejövő hívás van a T-Com ISDN PRI linken, hogy kihívni már nem lehet. Valahogy tehát el kell érni azt, hogy az E1 30 csatornájából 5db csak kimenő hívásra legyen alkalmas.

Amennyiben a hívás Voip irányba menne tovább, lehetne szabályozni azt a dial-peer-en a max-conn paranccsal. A hívások egy része azonban itt PBX irányba megy tovább.Cisco DOC olvasások után végül rájöttem, hogy elméletben ezt így kell megcsinálni: trunk-group. Ezt a konfigot amúgy még nem tudtam kipróbálni, de software szinten jónak tűnik.

trunk-group dial_out

 max-calls voice 5 direction out

 max-calls voice 0 direction in

trunk-group dial-in

 max-calls voice 25 direction in

 max-calls voice 25 direction out

controller E1 0/3/0

 description TO_PSTN

 trunk-group dial_in timeslots 1-25

 trunk-group dial_out timeslots 26-31

interface Serial0/3/0:15

  no ip address

  encapsulation hdlc

  isdn switch-type primary-net5

  isdn overlap-receiving

  isdn incoming-voice voice

  isdn send-alerting

  isdn sending-complete

  no cdp enable

Ezzel tehát definiáltuk a trunk csoportokat, azokon korlátoztunk hívás típus számot. A pots dial-peer-eken most nem voice portra, hanem trunk-group-ra hivatkozunk, így:

dial-peer voice 10 pots

 trunkgroup dial_in

 destination-pattern [1-9]….

 forward-digits all

dial-peer voice 20 pots

 trunkgroup dial_out

 destination-pattern [1-9]….

 precedence 5

 forward-digits all

A fenti két dial-peer a T-Com irányba indított hívásokra illeszkedik például. Normál esetben ugyanúgy az egyes időréstől kezdve használjuk a csatornákat kimenő és bejövő hívások esetén is. Azonban ha mind a 25 időrés foglalt bejövő hívások miatt, a felső 5 fentartott időrést tudjuk használni kimenő hívásra. A második dial-peer-nek a prioritása amúgy alacsonyabb (precedence 5 ) mint az első.

A megoldást élesben Hétfőn tudom kipróbálni, ha valaki esetleg tudja, hogy ez működik-e, bátran írja meg commentbe.

Popularity: 32% [?]

Time-Based call number translation

Tuesday
Sep 9,2008

Végre el jött az idő, amikor EEM-t kell / lehet használni valós környezetben. A feladat az volt, hogy bizonyos számokat munkaidőn kívül más számra kell fordítani mint nap közben a Voice GW-en. Ezt a következő IOS parancsokkal tudjuk megtenni:

Az alap translation rule, ezt kellene megváltoztatni, hogy munkaidőn kívül más legyen.

 

voice translation-rule 1
 rule 2 /^000$/ /050004/
 rule 3 /^001$/ /050005/
 rule 5 /^020$/ /050004/
Létrehozunk egy Event Manager Applet-et, mely hétfőtől csütörtökig 16.32 -kor fog lefutni. Action <id> cli command parancsokkal megadjuk, hogy milyen parancsokat hajtson végre az applet:
 
event manager applet rulechange_este_h-cs 
 event timer cron name rulechange_este_h-cs cron-entry "31 16 * * 1-4"
 action 1.0 cli command "enable"
 action 1.5 cli command "config terminal"
 action 2.0 cli command "voice translation-rule 1"
 action 3.0 cli command "rule 2 /^000$/ /051200/"
 action 4.0 cli command "rule 3 /^001$/ /051200/"
 action 5.0 cli command "rule 5 /^020$/ /051200/"
Pénteken elöbb van vége a munkaidőnek, ezért erre kell egy külön applet:
event manager applet rulechange_este_p 
 event timer cron name rulechange_este_p cron-entry "1 16 * * 5"
 action 1.0 cli command "enable"
 action 1.5 cli command "config terminal"
 action 2.0 cli command "voice translation-rule 1"
 action 3.0 cli command "rule 2 /^000$/ /051200/"
 action 4.0 cli command "rule 3 /^001$/ /051200/"
 action 5.0 cli command "rule 5 /^020$/ /051200/"
Minden reggel 8 óra 2 perckor vissza állítjuk az esti állapotot napközbeni állapotra.
event manager applet rulechange_reggel 
 event timer cron name rulechange_reggel cron-entry "1 8 * * 1-5"
 action 1.0 cli command "enable"
 action 1.5 cli command "config terminal"
 action 2.0 cli command "voice translation-rule 1"
 action 3.0 cli command "rule 2 /^000$/ /050004/"
 action 4.0 cli command "rule 3 /^001$/ /050005/"
 action 5.0 cli command "rule 5 /^020$/ /050004/"
Hogy hol lehet erre szükség? Például ha van egy Callcenter, és azt szeretnénk elérni, hogy ha éjjel hívják fel akkor más IVR-re kapcsolja a Cisco 2811 a hívásokat mint napközben.
 

 

 

Popularity: 28% [?]

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