You are on page 1of 2

Now that we have the basic SIP functionality working, we need to define some phones, directory

numbers, softkey templates etc. Again, we will be using voice register commands to accomplish this.
Let’s see what we have available

router(config)#voice register ?

voice register pool


-> specify the actual phone and give it attributes
voice register dn
-> specify the DirectoryNumber and it’s attributes.

These are the 2 commands that are needed to create a phone. Let’s start with the DN so we can assign it
to the phone in the next step.

router(config)#voice register dn 1
router(config-register-dn)#number 4004
router(config-register-dn)#name Marla Singer
router(config-register-dn)#label Marla Singer x4004

So we created DN with the number 4004, CNAM name of Marla Singer and line label (displayed next to
the phone button) of Marla Singer x4004. Now on to the phone.

router(config)#voice register pool 1


router(config-register-pool)#id mac-address abcd.abcd.abcd
router(config-register-pool)#type 7961
router(config-register-pool)#number 1 dn 1
router(config-register-pool)#dtm-relay rtp-nte
router(config-register-pool)#username 4004 password 4004
router(config-register-pool)#description 2125552000

Here is the phone, unique mac-address, phone type of 7961. We mapped DN 1 to line 1 and specified
RFC2833 as the only dtmf-relay option for this phone. Since we specified authenticate register under the
global command, we need to give the phone credentials to use for authentication. Finally, the
description determines the external phone number mask and will be shown on the top right banner of
the phone.

This is enough to get basic calls going, but with G729r8 only since this is a default codec on any dial-
peer. If you want to use G711, we need to specify this in the phone setup.

router(config-register-pool)#codec g711a

Since we are assuming we are in Europe, we choose the A law variant.It’s probably more realistic that
you want to use both, g711 locally and g729 over the WAN. For this we will use our good friend voice
class codec in global configuration.

router(config)#voice class codec 1


router(config-class)#codec preference 1 g711a
router(config-class)#codec preference 2 g729r8

and now to assign it to our phone


router(config-register-pool)#no codec g711a
router(config-register-pool)#voice-class codec 1

This will enable the phone to negotiate G711a and if the other phone is not able to do that, it will try
g729r8.

Final step to get this thing going is to re-create config files. As i told you in the 1st part of this, SIP CME is
not re-creating cnf files like the SCCP CME server if necessary. So off to to go the voice register global
section

router(config-register-global)#no create profile


router(config-register-global)#create profile

To ensure all is fine- i recommend to restart your phones, too. Especially if you’re messing around with
your configs and changing things left and right.

router(config)#voice register pool 1


router(config-register-pool)#restart

You might also like