Moblie

Thursday, February 4, 2010

Voice Translation Rule of Gateway Router

voice translation-rule 1
rule 1 reject /9545352231/ *** number match call ***
rule 2 reject /9548183131/
rule 3 reject /5619224640/

******************** Another Method **********************
voice translation-rule 2
rule 1 /^\(561\)922\([3,6]...\)$/ /\1237\2/ type any national plan any isdn
(*** Extention 922 number Translate with 237 *** )
rule 2 /^\(561\)922\(44..\)$/ /\1237\2/ type any national plan any isdn
rule 3 /^\(561\)922\(4[^5,^6]..\)$/ /\1237\2/ type any national plan any isdn


************************* Rule Apply ********************

voice translation-profile TranslateOutgoing
translate calling 2

Enable h 323 for Voice

voice service voip
h323
!
voice class h323 1
h225 timeout tcp establish 3

Clock Sync With ISP For Voice

clock timezone EST -5
clock summer-time DST recurring
network-clock-participate wic 0
voice-card 0

Wednesday, February 3, 2010

BGP Path Selection

As Cisco define . .

1. If the path specifies a next hop that is inaccessible, drop the update.
2. Prefer the path with the largest weight.
3. If the weights are the same, prefer the path with the largest local preference.
4. If the local preferences are the same, prefer the path that was originated by BGP running on this router.
5. If no route was originated, prefer the route that has the shortest AS_path.
6. If all paths have the same AS_path length, prefer the path with the lowest origin type (where IGP is lower than EGP, and EGP is lower than incomplete).
7. If the origin codes are the same, prefer the path with the lowest MED attribute.
8. If the paths have the same MED, prefer the external path over the internal path.
9. If the paths are still the same, prefer the path through the closest IGP neighbor.
10. Prefer the path with the lowest IP address, as specified by the BGP router ID.



                      BGP Path Selection LIST

Voice MGCP Gateway configuration

ip domain name GMAN.com
!
multilink bundle-name authenticated
!
isdn switch-type primary-4ess
voice-card 0
dspfarm
!
!
application
global
service alternate default
!
!
archive
log config
hidekeys
!
!
Controller T1 0/0/0
framing esf
linecode b8zs
pri-group timeslots 1-24 service mgcp
!
controller T1 0/0/1
framing esf linecode b8zs
!
translation-rule 1
!
interface GigabitEthernet0/0
Description **** P2P Link ******
ip address 10.71.16.X 255.255.255.252
duplex full
speed 100
media-type rj45
!
interface GigabitEthernet0/1
Description *** Loacal LAN ***
ip address 10.20.30.x 255.255.255.0
duplex auto
speed auto
media-type rj45
!
interface Serial0/0/0:23
Description **** Voice Card ****
no ip address
encapsulation hdlc
isdn switch-type primary-4ess
isdn incoming-voice voice
isdn map address . plan isdn type national
isdn bind-l3 ccm-manager
no cdp enable
!
router ospf 427
log-adjacency-changes
network 10.20.30.x 0.0.0.255 area 0
network 10.71.16.x 0.0.0.3 area 0
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 10.20.30.x
!
!
ip http server
no ip http secure-server
!
!
control-plane
!
voice-port 0/0/0:23
ccm-manager fallback-mgcp
ccm-manager redundant-host 10.23.220.x **** Seconadry Call manager address ***
ccm-manager mgcp
ccm-manager music-on-hold
ccm-manager config server 10.23.219.x 10.23.220.x *** Pri Call manager & Sec address ***
ccm-manager config
!
mgcpmgcp call-agent 10.23.219.x 2427 service-type mgcp version 0.1
mgcp rtp unreachable timeout 1000 action notify
mgcp modem passthrough voip mode nse
mgcp package-capability rtp-package
mgcp package-capability sst-package
mgcp package-capability pre-package
no mgcp package-capability res-package
no mgcp timer receive-rtcp
mgcp sdp simple
mgcp rtp payload-type g726r16 static
mgcp bind control source-interface GigabitEthernet0/1
mgcp bind media source-interface GigabitEthernet0/1
!
mgcp profile default
!
dial-peer voice 888 pots
service mgcpapp
port 0/0/0:23
!
dial-peer voice 200 pots
destination-pattern 9T
incoming called-number
port 0/0/0:23
!
!
gatekeeper shutdown