Running VOIP on Cisco Router

Written on January 1, 2008 – 1:32 am | by Yanurmal |

In this sample config we will create a voip communication over cisco router.

Cisco VOIP

Requirement:
- 2 units Cisco router with 1 VIC2FXS and 1 WAN interface
- WAN link
- 1 Analog Phone Handset (2 wire) each site
- IOS voice support
- Phone numbering plan, eg. 1001 and 2001

SITE A

hostname RouterA
!
enable password 123
!
interface FastEthernet 0
 no description
 no ip address
 shutdown
!
interface Serial 0
 no shutdown
 description connected to RouterB
 ip address 10.10.10.1 255.255.255.252
 encapsulation hdlc
 ip rtp header-compression
!
voice-port 1/0
 no shutdown
 description connected to Phone (1001)
 comfort-noise
 cptone US
 signal loopStart
!
voice-port 1/1
 no shutdown
 no description
!
dial-peer voice 1 pots
 port 1/0
 destination-pattern 1001
!
dial-peer voice 3 voip
 codec g729r8
 ip precedence 5
 session target ipv4:10.10.10.2
 vad
 destination-pattern 2001
!
ip route 0.0.0.0 0.0.0.0 10.10.10.2
!
line console 0
 exec-timeout 0 0
 password 123
 login
!
line vty 0 4
 password 123
 login
!
end

===

SITE B

hostname RouterB
!
enable password 123
!
interface FastEthernet 0
 no description
 no ip address
 shutdown
!
interface Serial 0
 no shutdown
 description connected to RouterA
 ip address 10.10.10.2 255.255.255.252
 encapsulation hdlc
 ip rtp header-compression
!
voice-port 1/0
 no shutdown
 description connected to Phone_1 (2001)
 comfort-noise
 cptone US
 signal loopStart
!
voice-port 1/1
 no shutdown
 no description
!
dial-peer voice 1 pots
 port 1/0
 destination-pattern 2001
!
dial-peer voice 3 voip
 codec g729r8
 ip precedence 5
 session target ipv4:10.10.10.1
 vad
 destination-pattern 1001
!
ip route 0.0.0.0 0.0.0.0 10.10.10.1
!
line console 0
 exec-timeout 0 0
 password 123
 login
!
line vty 0 4
 password 123
 login
!
end

Popularity: 48%

Share This Post

Related Posts

You must be logged in to post a comment.

Ads

Find entries :