Total Pageviews

Saturday, November 19, 2011

Configuring SIP Phones for Making Basic Calls


Configuring SIP Phones for Making Basic Calls

The following is a configuration example for SIP phones running on Cisco Unified CME:
voice service voip
 allow-connections sip to sip
 sip
 registrar server expires max 600 min 60
!
voice class codec 1
 codec preference 1 g711ulaw
!
voice hunt-group 1 parallel
 final 8000
 list 2000,1000,2101
 timeout 20
 pilot 9000
!
voice hunt-group 2 sequential
 final 1000
 list 2000,2300
 timeout 25
 pilot 9100 secondary 9200
!
voice hunt-group 3 peer
 final 2300
 list 2100,2200,2101,2201
 timeout 15
 hops 3
 pilot 9300
 preference 5
!
voice hunt-group 4 longest-idle
 final 2000
 list 2300,2100,2201,2101,2200
 timeout 15
 hops 5
 pilot 9400 secondary 9444
 preference 5 secondary 9
!
voice register global
 mode cme
!
 external-ring bellcore-dr3
!
voice register dn 1
 number 2300
 mwi
!
voice register dn 2
 number 2200
 call-forward b2bua all 1000
 call-forward b2bua mailbox 2200
 mwi
!
voice register dn 3
 number 2201
 after-hour exempt
!
voice register dn 4
 number 2100
 call-forward b2bua busy 2000
 mwi
 
voice register dn 5
 number 2101
 mwi
 
voice register dn 76
 number 2525
 call-forward b2bua unreachable 2300
 mwi
!
voice register template 1
!
voice register template 2
 no conference enable
 voicemail 7788 timeout 5
!
voice register pool 1
 id mac 000D.ED22.EDFE
 type 7960
 number 1 dn 1
 template 1
 preference 1
 no call-waiting
 codec g711alaw
!
voice register pool 2
 id mac 000D.ED23.CBA0
 type 7960
 number 1 dn 2
 number 2 dn 2
 template 1
 preference 1
!
 dtmf-relay rtp-nte
 speed-dial 3 2001
 speed-dial 4 2201
!
voice register pool 3
 id mac 0030.94C3.053E
 type 7960
 number 1 dn 3
 number 3 dn 3
 template 2
!
voice register pool 5
 id mac 0012.019B.3FD8
 type ATA
 number 1 dn 5
 preference 1
 dtmf-relay rtp-nte
 codec g711alaw
!
voice register pool 6
 id mac 0012.019B.3E88
 type ATA
 number 1 dn 6
 number 2 dn 7
 template 2
 dtmf-relay-rtp-nte
 call-forward b2bua all 7778
!
voice register pool 7
!
voice register pool 8
 id mac 0006.D737.CC42
 type 7940
 number 1 dn 8
 template 2
 preference 1
 codec g711alaw
!
voice-port 1/0/0
!
voice-port 1/0/1
!
dial-peer voice 100 pots
 destination-pattern 2000
 port 1/0/0
!
dial-peer voice 101 pots
 destination-pattern 2010
 port 1/0/1
!
dial-peer voice 1001 voip
 preference 1
 destination-pattern 1...
 session protocol sipv2
 session target ipv4:10.15.6.13
 codec g711ulaw
!
sip-ua
 mwi-server ipv4:1.15.6.200 expires 3600 port 5060 transport udp
!
telephony-service
 load 7960-7940 P0S3-07-2-00
 max-ephones 24
 max-dn 96
 ip source-address 10.15.6.112 port 2000
 create cnf-files version-stamp Aug 24 2004 00:00:00
 max-conferences 8
 after-hours block pattern 1 1...
 after-hours day Mon 17:00 07:00

Disabling a Bulk Registration for a SIP Phone:

The following example shows that all phone numbers that match the pattern "408555.." can register with the SIP proxy server (IP address 1.5.49.240) except directory number 1, number "4085550101," for which bulk registration is disabled:
voice register global
 mode cme
 bulk 408555....
!
voice register dn 1
 number 4085550101
 no-reg
sip-ua
 registrar ipv4:1.5.49.240