SoFunction
Updated on 2025-04-11

Cisco 3640 VoIP Configuration Instance

Below is the VOIP configuration of Cisco 3640. The structure is to use VOIP in Taipei and Shanghai, followed by Alcatel's PBX, which has many things to pay attention to.

Taipei configuration code:

Taipei#sh runBuilding configuration...Current configuration:!version 12.0service timestamps debug uptime (set the Debug tracking log displays its time) service timestamps log uptime (set the time to display when looking at the Log) no service password-encryption (password not encrypted)!hostname Taipei (hostname)!enable secret 5 $1$R.66$z.BUjhNsJcIr8KCcS9uxG.!!!!!!voice-card 1 (definition voice card 1)!voice-card 3 (definition voice card 3)!ip subnet-zerono ip domain-lookup!isdn  voice-call-failure 0!!!!!controller E1 1/0 (configure E1 voice card) framing NO-CRC4ds0-group 0 timeslots 1-15,17-31 type e&m-wink-start (define the voice card type as E&M card) cas-custom 0!controller E1 3/0 (configure E1 voice card) framing NO-CRC4ds0-group 0 timeslots 1-15,17-31 type e&m-wink-start (define the voice card type as E&M card) cas-custom 0!!!interface BRI0/0no ip addressno ip  directed-broadcastshutdownisdn guard-timer 0 on-expiry accept!interface FastEthernet0/0no ip addressno ip directed-broadcastshutdownduplex autospeed auto! interface Serial0/0description "Link to MainLand_ShangHai by NCIC lease line"ip address 192.168.1.1 255.255.255.252no ip directed-broadcastno ip mroute-cacheno fair-queue!interface Serial0/1no ip addressno ip  directed-broadcastshutdownclockrate 2000000!ip classlessno ip http server!!voice-port 1/0:0 (configure the analog voice port) compand-type a-law!voice-port 3/0:0 (configure the analog voice port) compand-type a-law!dial-peer voice 1 voip (define dial peer to voice) destination-pattern +445... (assign the phone number to the dial peer, where. is a wildcard) session target ipv4:192.168.1.2 (define the Voip route, as the peer's IP address) req-qos guaranteed-delay  (Guaranteed for voice data stream RVSP, where Guaranteed-dealy can be used to ensure delays of the entire network) ip precedence 5 (IP priority, 5 is the key)!dial-peer voice 2 pots (define dial peer to voice physical port) destination-pattern +3... (define phone number starting with 3) port 1/0:0 (define voice port)!dial-peer voice 3 pots (define dial peer to voice physical port) destination-pattern +3... (define phone number starting with 3) port 3/0:0 (define voice port)!!line con 0 (set login) transport input noneline aux 0line vty 0 4 (allow Telnet) password  cisco (password is Cisco) login!endTaipei#


Shanghai Yifang's 3640 configuration code:

ShangHai#sh runBuilding configuration...Current configuration:!version 12.0service timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname ShangHai!enable secret 5 $1$dB/c$tnrMU9IxFCJdix5ssHAdH/!!!!!voice-card 1!voice-card 2!ip subnet-zerono ip domain-lookup!isdn voice-call-failure 0!!!!controller E1 1/0framing NO-CRC4ds0-group 0 timeslots 1-15,17-31 type e&m-immediate-startcas-custom 0!    controller E1 2/0framing Nds0-group 0 timeslots 1-15,17-31 type e&m-immediate-startcas-custom 0!!!interface BRI0/0no ip addressno ip directed-broadcastencapsulation pppisdn guard-timer 0 on-expiry acceptppp multilink!interface FastEthernet0/0no ip addressno ip directed-broadcastshutdownduplex autospeed auto!interface Serial0/0no ip addressno ip directed-broadcastno ip mroute-cacheshutdownno fair-queueclockrate 2000000!interface Serial0/1ip address 192.168.1.2 255.255.255.252no ip directed-broadcast!ip classless!no ip http server!!voice-port 1/0:0compand-type a-law!voice-port 2/0:0compand-type a-law!dial-peer voice 20 voipdestination-pattern +3...session target ipv4:192.168.1.1req-qos guaranteed-delayip precedence 5!dial-peer voice 10 potsdestination-pattern +448...port 1/0:0!dial-peer voice 30 voipdestination-pattern +4...session target ipv4:192.168.1.1req-qos guaranteed-delayip precedence 5!dial-peer voice 40 potsdestination-pattern +449...port 2/0:0!!line con 0transport input noneline aux 0line vty 0 4password ciscologin!endShangHai#
Article entry: csh     Editor in charge: csh