×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Registering CISCO SIP Phone to CCME

Document

Sat, 02/26/2011 - 11:17
Jan 22nd, 2011
User Badges:
  • Cisco Employee,

Network topology

#############################

IP Phone  ==VLAN 422=== Router ==VLAN 426===CCME Router


Here’s “why” ,”how”, “What happens if”  to the commands used in SIP Phone Registration to CCME.


voice service voip
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip


#### SIP Phones create Voip Dial-peers. so for SIP to SIP, SIP to H323   you need to allow the connections. SCCP phones create EFXS POTS   dial-peer. By Default IP-IP call is blocked)(Random Fact).
fax protocol pass-through g711ulaw
modem passthrough nse codec g711ulaw
sip
bind control source-interface FastEthernet0/0.426
bind media source-interface FastEthernet0/0.426


### Bind Control and media to the interface with the same IP Address on   source-address x.x.x.x . Else you will run into problems when you try  to  register Phones over a Layer 3 Link.
registrar server


### Needed for phone to register

voice register global
mode cme
### Change mode to CME
source-address 14.160.126.77 port 5060
### Should be the same as bind control and media when you have InterVLAN Routing
max-dn 10
max-pool 10
authenticate register
### Needed for the phone to authenticate with username password, in intervlan registeration setup
tftp-path flash:
### All the config files for the phones will be stored here.
create profile sync 0174426467043125
### Make sure you enter this command everytime you make some changes.!!!!!! Very IMP!

voice register dn  1
number 1234
### DN for the Phone
voice register pool  1
id mac 0023.5E17.D275
### Mac Address of the Phone trying to register. Which won’t be used an   authentication method when registering in Intervlan register scenario
type 7942
### Make sure you have this in here.! Else SEP<MAC-ADDRESS>.config wouldn’t be created.
number 1 dn 1
### Assigning 1234 to line 1 on the phone
username cisco password cisco
### Credentials the phone uses when it tries to register in case of intervlan.



Relevant debugs
##########################
Received:
REGISTER sip:14.160.126.77 SIP/2.0
Via: SIP/2.0/UDP 14.160.122.228:5060;branch=z9hG4bKdf9fece6
From: <sip:[email protected]>;tag=00235e17d2750005e833caa4-06d638ae
To: <sip:[email protected]>
Call-ID: [email protected]
Max-Forwards: 70
Date: Thu, 14 Oct 2010 07:04:30 GMT
CSeq: 103 REGISTER
User-Agent: Cisco-CP7942G/8.5.2
Contact:   <sip:[email protected]:5060;transport=udp>;+sip.instance=”<urn:uuid:00000000-0000-0000-0000-00235e17d275>”;+u.sip!model.ccm.cisco.com=”434″
Supported:   replaces,join,norefersub,extended-refer,X-cisco-callinfo,X-cisco-serviceuri,X-cisco-escapecodes,X-cisco-service-control,X-cisco-srtp-fallback,X-cisco-monrec,X-cisco-config,X-cisco-sis-3.0.0,X-cisco-xsi-7.0.1
Content-Length: 0
Reason: SIP;cause=200;text=”cisco-alarm:105 Name=SEP00235E17D275 Load=SIP42.8-5-2SR1S Last=config-retry-restart”
Expires: 3600

*Oct 14 07:08:12.015: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 14.160.122.228:5060;branch=z9hG4bKdf9fece6
From: <sip:[email protected]>;tag=00235e17d2750005e833caa4-06d638ae
To: <sip:[email protected]>
Date: Thu, 14 Oct 2010 07:08:12 GMT
Call-ID: [email protected]
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 103 REGISTER
Content-Length: 0

*Oct 14 07:08:12.111: VOICE_REG_POOL: Register request for (1234) from (14.160.122.228)
*Oct 14 07:08:12.111: VOICE_REG_POOL: key(B99A11AB0176754A) added to nonce table
*Oct 14 07:08:12.111: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 14.160.122.228:5060;branch=z9hG4bKdf9fece6
From: <sip:[email protected]>;tag=00235e17d2750005e833caa4-06d638ae
To: <sip:[email protected]>;tag=EA0947C-241F
Date: Thu, 14 Oct 2010 07:08:12 GMT
Call-ID: [email protected]
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 103 REGISTER
WWW-Authenticate: Digest realm=”",nonce=”B99A11AB0176754A”,algorithm=MD5,qop=”auth”
Content-Length: 0

Received:
REGISTER sip:14.160.126.77 SIP/2.0
Via: SIP/2.0/UDP 14.160.122.228:5060;branch=z9hG4bK0ca509fe
From: <sip:[email protected]>;tag=00235e17d2750005e833caa4-06d638ae
To: <sip:[email protected]>
Call-ID: [email protected]
Max-Forwards: 70
Date: Thu, 14 Oct 2010 07:04:30 GMT
CSeq: 104 REGISTER
User-Agent: Cisco-CP7942G/8.5.2
Contact:   <sip:[email protected]:5060;transport=udp>;+sip.instance=”<urn:uuid:00000000-0000-0000-0000-00235e17d275>”;+u.sip!model.ccm.cisco.com=”434″
Authorization: Digest   username=”cisco”,realm=”",uri=”sip:14.160.126.77″,response=”dd2a196551c5598102e71c0eac92d89a”,nonce=”B99A11AB0176754A”,cnonce=”4a16becc”,qop=auth,nc=00000001,algorithm=MD5
Supported:   replaces,join,norefersub,extended-refer,X-cisco-callinfo,X-cisco-serviceuri,X-cisco-escapecodes,X-cisco-service-control,X-cisco-srtp-fallback,X-cisco-monrec,X-cisco-config,X-cisco-sis-3.0.0,X-cisco-xsi-7.0.1
Content-Length: 0
Reason: SIP;cause=200;text=”cisco-alarm:105 Name=SEP00235E17D275 Load=SIP42.8-5-2SR1S Last=config-retry-restart”
Expires: 3600

*Oct 14 07:08:12.127: VOICE_REG_POOL: Register request for (1234) from (14.160.122.228)
*Oct 14 07:08:12.131: VOICE_REG_POOL: Contact matches pool 1 number list 1
*Oct 14 07:08:12.131: VOICE_REG_POOL: key(1234) contact(14.160.122.228) add to contact table
*Oct 14 07:08:12.131: VOICE_REG_POOL: No entry for (1234) found in contact table
*Oct 14 07:08:12.131: VOICE_REG_POOL: key(1234) contact(14.160.122.228) added to contact table
*Oct 14 07:08:12.131: VOICE_REG_POOL pool->tag(1), dn->tag(1), submask(1)

*Oct 14 07:08:12.131: VOICE_REG_POOL: Creating param container for   dial-peer 40001.VOICE_REG_POOL pool->tag(1), dn->tag(1),   submask(1)
VOICE_REG_POOL pool_tag(1), dn_tag(1)

*Oct 14 07:08:12.135: VOICE_REG_POOL: Created dial-peer entry of type 0
*Oct 14 07:08:12.135: VOICE_REG_POOL: Registration successful for 1234, registration id is 1
*Oct 14 07:08:12.143: VOICE REGISTER POOL-1 has registered. Name:SEP00235E17D275  IP:14.160.122.228  DeviceType:Phone

*Oct 14 07:08:12.143: VOICE_REG_POOL: Pool[1]: service-control (reset type: 2) message sent to sip:[email protected]

*Oct 14 07:08:12.143: VOICE_REG_POOL: Contact matches pool 1 number list 1
*Oct 14 07:08:12.183: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 14.160.122.228:5060;branch=z9hG4bK0ca509fe
From: <sip:[email protected]>;tag=00235e17d2750005e833caa4-06d638ae
To: <sip:[email protected]>;tag=EA0947C-241F
Date: Thu, 14 Oct 2010 07:08:12 GMT
Call-ID: [email protected]
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 104 REGISTER
Content-Length: 0

*Oct 14 07:08:12.187: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 14.160.122.228:5060;branch=z9hG4bK0ca509fe
From: <sip:[email protected]>;tag=00235e17d2750005e833caa4-06d638ae
To: <sip:[email protected]>;tag=EA0947C-241F
Date: Thu, 14 Oct 2010 07:08:12 GMT
Call-ID: [email protected]
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 104 REGISTER
Contact: <sip:[email protected]:5060>;expires=3600;x-cisco-newreg
Expires:  3600
Content-Length: 0


Let me know if  anything  is wrong :)

Loading.
Amit Divekar Sat, 02/26/2011 - 03:13
User Badges:
  • Cisco Employee,

Hey Divin,

              There are chances where your sip phone to CME may loop in registration here, in this scenario remove the AUTHENTICATE REGISTER COMMAND  by issuing a " NO AUTHENTICATE REGISTER" command then issue a CREATE PROFILE & the reset the phone.


That will fix this issue

dijohn Sat, 02/26/2011 - 11:17
User Badges:
  • Cisco Employee,

Look closely at the 1st REGISTER, Unauth and the next REGISTER

Actions

This Document

Related Content