xcke’s blog

CCIE# Journey

Archive for the ‘ISDN’ 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: 37% [?]

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: 34% [?]

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: 39% [?]

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: 41% [?]

Voice GW Teszt

Monday
Dec 3,2007

Az elmúlt héten volt egy voice-os projectem, és az ott szerzett tapasztalatokat szeretném most leírni. A bank VoIP-t szeretne bevezetni, és azt teszteltük hogy egy Bosch alközpont, egy Cisco 2800 Voice Gateway, és egy Cisco CallManager 6 hogyan tud együtt működni, illetve mely funkciók működnek egy ilyen környezetben. A teszt:

A 2800-as beállítása:
Először is meg kell adni az E1/T1 kártya típusát:

card type e1 0 0

A router-n csak ezután lesz látható a controller interface. (nálunk csak 16 időrésre volt elgendő DSP erőforrás):

controller E1 0/0/0
pri-group timeslots 1-16
description Bosh_pbx

A voice port beállítása:

voice-port 0/0/0:15
cptone HU
timeouts initial 1

Az ethernet interface beállítása, a router-nek el kell érnie a CM6-t IP-n.

interface FastEthernet0/0
description LAN
ip address x.x.x.x 255.255.255.0
duplex full
speed 100
ip route 0.0.0.0 0.0.0.0 x.x.x.x

A PRI vonatkozó beállítások (ISDN-QSIG)

interface Serial0/0/0:15
no ip address
isdn switch-type primary-qsig #és nem primary-net5:)
isdn overlap-receiving #a számjegyek nem csak en-block jöhetnek, lásd ref.
isdn incoming-voice voice
isdn send-alerting
isdn sending-complete
isdn outgoing display-ie
isdn outgoing ie caller-number
isdn outgoing ie caller-subaddr
no cdp enable

A dial peerek megadása, ezek fogják a hangot a megfelelő irányba route-olni.
Minden 0-val kezdődő hívott számot az ISDN-en átadunk a Bosch-nak (ő adja tovább a hívást a T-Com-nak):

dial-peer voice 21 pots
tone ringback alert-no-PI
destination-pattern 0.T
progress_ind setup enable 3
progress_ind disconnect enable 8
direct-inward-dial
port 0/0/0:15
forward-digits all

Minden 4xxx -es számot a CM6-nak adunk át h323-n.

dial-peer voice 10 voip
tone ringback alert-no-PI
destination-pattern 4…
voice-class codec 1
session target ipv4:128.1.2.9
dtmf-relay h245-alphanumeric
no vad

Minden 7xxx -es számot ugyancsak a Bosch-ra irányítunk, ezek a Bosch alközpont mellékei.

dial-peer voice 20 pots
destination-pattern 7…
progress_ind setup enable 3
progress_ind progress enable 8
progress_ind disconnect enable 8
port 0/0/0:15
forward-digits all

Köszönet Paca-nak a konfigért:)

Popularity: 38% [?]

Tools


Get your own Box.net widget and share anywhere!

stat


Stat

Support



Events


Feeds


Highest Rated


Now Reading


Archives