cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2494
Views
0
Helpful
6
Replies

SIP Authirzation header missing in SIP-UA Registration

Arvand Owji
Level 1
Level 1

Hi,

When i try to do sip registration on certain ios versions, the registration fails becasue the authirzation header is never passed in to the sip server. When i do look at the sip messages in debug i see this. Some of the ios version i have problem with are 12.4(15)T14 (or anything older) and 15.1(4)M3.

*Jan 17 12:08:35.087: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Sent:

REGISTER sip:174.137.63.202:5060 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.185:5060;branch=z9hG4bKC1313

From: <sip:123558_2@174.137.63.202>;tag=2B07E8-1A2C

To: <sip:123558_2@174.137.63.202>

Date: Tue, 17 Jan 2012 12:08:35 GMT

Call-ID: C480973C-403611E1-8005FA01-4FE22F62

User-Agent: Cisco-SIPGateway/IOS-12.x

Max-Forwards: 70

Timestamp: 1326802115

CSeq: 13 REGISTER

Contact: <sip:123558_2@192.168.1.185:5060>

Expires:  200

Supported: path

Content-Length: 0

However when I try on IOS 12.4(25d), i get sip registration and when i look at the messages i see exactly what i have above with addition of a "Authirzation" header that passes my username and realm to the server. Here is the sip-ua config i use. Do i need to add soemthing else to make the versions mentioned above pass in the authirzation header? Thanks.

!

sip-ua

credentials username 123558_1 password MyPAss realm  74.63.41.218

authentication username 123558_1 password MyPAss

no remote-party-id

retry invite 4

retry response 3

retry bye 2

retry cancel 2

retry register 3

timers register 250

mwi-server dns: 74.63.41.218 expires 180 port 5060 transport udp unsolicited

registrar dns: 74.63.41.218 expires 180

sip-server dns: 74.63.41.218

host-registrar

!

!

6 Replies 6

paolo bevilacqua
Hall of Fame
Hall of Fame

The way it works, is that the router first tries registration without credential, then when it receives an authorization required message with a nonce number and other stuff, it tries again with the credentials. So one has to look at the entire trace to see what's going on.

That not to say that some IOS version may be buggy and not work at all. However, all the ones you mentioned are outdated, and should be avoided.

I added ip domain lookup abd it registered. When i look at the ios versions for 3700 series, the 12.4(25d) is listed as the latest IOS. Is there a newer one that I have missed and is compatible with 3700 series? Thanks. 

one more thing, my registration doesnt seem to stay alive for much long. It is timing out due to in activity and perhaps its my router not able to handle NAT properly. But is there any way in the GW side to send keep alives? I see there is a keepalive comamnd in SIP-UA but in 12.4(25d) this command is not present and I dont know if there is any other way to work around it...Thanks.

Actually, the most advanced IOS version you can have on a 3700 router is 12.4(15)T14.

You should be able to configure a shorter registration interval under sip-ua.

In my case i have to lower it down to 20sec or something. Would it be safe in terms of laod nad bandwidth on the GW and on the service provider side? There will be a spike in number of registration calls and for sure it has some effects, but is it a big deal? Thnaks.

Really no big deal at all.

Please remember to rate useful posts clicking on the stars below.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: