Solved

Registering problem for Cisco 7942 with Asterisk

Posted on 2011-03-17
19
3,558 Views
1 Endorsement
Last Modified: 2013-11-12
I have my Cisco 7942 loaded with my XML configuration file but it couldn't register the line.

When I open the console on the Asterisk, the phone IP doesn't appear in the server and I believe the phone don't go to my Asterisk for registration. Have any idea what's missing in my configuration file. I'm using firmware SIP42.9-0-3.

Great THanks

1
Comment
Question by:AXISHK
  • 10
  • 8
19 Comments
 
LVL 32

Expert Comment

by:DrDamnit
ID: 35174265
Please post your sip.conf and your Cisco phone configs.
0
 

Author Comment

by:AXISHK
ID: 35177709
Only report of locale error when loading the XML configuration.

The panel displays "Registering" and keep loading for around 10min. Afterwards, the message dispear but the line doesn't register.

Will there be the firmware version ? The firmware is marked as 7942G but actually, my phone model is 7942. However, only 7942G firmware is availabe in the Cisco web.

Any advise is apprecitead.

http://www.cisco.com/cisco/software/release.html?mdfid=281346593&flowid=5266&softwareid=282074288&release=9.1(1)SR1&relind=AVAILABLE&rellifecycle=&reltype=latest


Thanks

SEP108CCF74A9C8.cnf.xml
0
 
LVL 32

Expert Comment

by:DrDamnit
ID: 35178285
Still need sip.conf.
0
 

Author Comment

by:AXISHK
ID: 35178388
Here is the file. tks
sip.conf.txt
0
 
LVL 32

Expert Comment

by:DrDamnit
ID: 35181655
You're using FreePBX, so I need screen shots of the sip account for the Cisco account. (sip.conf just shows me includes).
0
 

Author Comment

by:AXISHK
ID: 35186484
0
 
LVL 32

Expert Comment

by:DrDamnit
ID: 35188262
Your sip configs and Cisco configs appear to match.

Here's the next step:

To better assist you, I need to see what is going on. Please use the following procedure to create a log file of the Asterisk CLI:

1. Open the CLI using this:

       asterisk -rvvvvvv | tee /var/log/asterisk.log

This puts the a debug log into the file /var/log/asterisk.log

2. Reproduce the problem.
3. Make calls
4. Exit the CLI after you get the error.
5. Post the log here (as "code" or as an attachment).
0
 

Author Comment

by:AXISHK
ID: 35189654
I have monitor the asterisk log before and actually, the inital registration has never go to Asterisk. I have also try ot disabled the firewall in Centos but it doesn't help any.

When I ssh to the Cisco phone, the following is observed :

3298: NOT 09:58:53.190892 JVM: SIPCC-SIP_REG_STATE: 1/51, sip_reg_sm_process_event: SIP_REG_STATE_IDLE <- E_SIP_REG_TMR_EXPIRE
3299: ERR 09:58:53.191566 JVM: ccsip_register_send_msg: Error: cc_cfg_table is null.
3300: NOT 09:58:53.192175 JVM: SIPCC-UI_API: 1/0, ui_set_sip_registration_state: 0
3301: NOT 09:59:53.190899 JVM: SIPCC-SIP_REG_STATE: 1/51, sip_reg_sm_process_event: SIP_REG_STATE_IDLE <- E_SIP_REG_TMR_EXPIRE
3302: ERR 09:59:53.191608 JVM: ccsip_register_send_msg: Error: cc_cfg_table is null.

So, it seems that Cisco phone has never inital a registration to Asterisk. I really don't have any idea on that. Any advise is appreciated.

Thanks
0
 
LVL 32

Expert Comment

by:DrDamnit
ID: 35189765
Did you set core debug on as well as sip set debug on in the CLI?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:AXISHK
ID: 35189861
Here is the command I run on Asterik

asterisk –vvvcgr
sip set debug

Is that enought ?

Thanks

0
 
LVL 32

Expert Comment

by:DrDamnit
ID: 35191124
Should be. And with debug on, there is still not attempt to connect from the phone?
0
 

Author Comment

by:AXISHK
ID: 35194675
Yes, pretty sure. No registration from phone ...

http://www.fonality.com/trixbox/forums/trixbox-forums/trixbox-endpoints/cisco-9971-and-tftp

I have put the following in my configuration file and reload the sip configuration but it doesn't help.

We are using ATCOM phone and softphone (Eyebeam) and it works fine. Really not idea why it happen like this.....


sip.conf:
tcpenable=yes
tcpbindaddr=0.0.0.0

[<my extension no>]
transport=tcp

0
 
LVL 32

Expert Comment

by:DrDamnit
ID: 35195017
My only suggestion at this point is to make sure that you have configured the XML properly, and you need to double check all type cases. The Cisco's are case sensitive.
0
 

Author Comment

by:AXISHK
ID: 35195110
Is there a way to vertify the cnf.xml, without the Cisco Call Manager ...

Tks
0
 

Author Comment

by:AXISHK
ID: 35212404
Finally fix the XML and the registeration process could be logged in Asterisk. Seem like Asterisk don't disgard the login. Any idea ?

Thanks

------------->
--- (14 headers 0 lines) ---
Using latest REGISTER request as basis request
Sending to 192.168.1.193 : 49164 (NAT)

<--- Transmitting (NAT) to 192.168.1.193:49164 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.193:5060;branch=z9hG4bK6fdf070a;received=192.168.1.193
From: <sip:2893@192.168.1.32>;tag=108ccf74a9c80005be8aa1f2-019f374a
To: <sip:2893@192.168.1.32>
Call-ID: 108ccf74-a9c80002-8188eea8-5c56bd88@192.168.1.193
CSeq: 104 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Content-Length: 0


<------------>

<--- Transmitting (NAT) to 192.168.1.193:49164 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.193:5060;branch=z9hG4bK6fdf070a;received=192.168.1.193
From: <sip:2893@192.168.1.32>;tag=108ccf74a9c80005be8aa1f2-019f374a
To: <sip:2893@192.168.1.32>;tag=as25c37266
Call-ID: 108ccf74-a9c80002-8188eea8-5c56bd88@192.168.1.193
CSeq: 104 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="1316e00b"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog '108ccf74-a9c80002-8188eea8-5c56bd88@192.168.1.193' in 32000 ms (Method: REGISTER)

<--- SIP read from 192.168.1.193:49164 --->
REGISTER sip:192.168.1.32 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.193:5060;branch=z9hG4bK6fdf070a
From: <sip:2893@192.168.1.32>;tag=108ccf74a9c80005be8aa1f2-019f374a
To: <sip:2893@192.168.1.32>
Call-ID: 108ccf74-a9c80002-8188eea8-5c56bd88@192.168.1.193
Max-Forwards: 70
Date: Fri, 02 Nov 2007 21:56:04 GMT
CSeq: 104 REGISTER
User-Agent: Cisco-CP7942G/8.3.0
Contact: <sip:2893@192.168.1.193:5060;transport=udp>;+sip.instance="<urn:uuid:00000000-0000-0000-0000-108ccf74a9c8>";+u.sip!model.ccm.cisco.com="434"
Supported: (null),X-cisco-xsi-6.0.2
Content-Length: 0
Reason: SIP;cause=200;text="cisco-alarm:25 Name=SEP108CCF74A9C8 Load=SIP42.8-3-3SR2S Last=initialized"
Expires: 3600
0
 
LVL 32

Accepted Solution

by:
DrDamnit earned 500 total points
ID: 35212555
I don't understand this question:
"Seem like Asterisk don't disgard the login. Any idea ?"

What do you mean don't disgard? Are you saying that the phone doesn't register?

I don't think this is a complete log. You have a SIP 100 trying, followed by a SIP 401 Unauthorized, which tells the phone "I need you to authenticate", followed by a REGISTER...

There must be more.
0
 

Author Comment

by:AXISHK
ID: 35212623
Fixed the issue, turn off "nat" on the extension and everythings seem works.

Thanks.
0
 

Author Closing Comment

by:AXISHK
ID: 35237278
tks
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

How To Create Custom / Distinctive Ring Tones on Polycom Phones Purpose and Overview When creating a custom ring tone, you have simple aspirations: to make your phone cooler than everyone else's. Perhaps you need a louder ringer. Perhaps you w…
Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now