Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

sip error on IOS 12.4(25d)

Hi,

im trying to make calls on my 3700 router with 12.4(25d). I can register into my sip provider but when i call into the router with my external DID, i get this error in my debug cccsip message:  400 Bad Request - Invalid Host. I searched for this error and i got to this:

http://www.cisco.com/en/US/docs/ios/voice/command/reference/vr_p2.html#wp1111046

Basically saying i need to add my hostname into my config to prevent this error during the intitial invite message.

usage:

      sip-ua

permit hostname dns: domain name

According to the docs, this should be available as of 12.4(9) however, my ios 12.4(25d), doesnt accept this as a valid command. So im wondering if any body knows that if this command has been replaced by something else or if there is any other way to prevent the 400 Bad Request - Invalid Host during the intital sip invite. Thanks in advance for the help.

Everyone's tags (6)
1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Gold

sip error on IOS 12.4(25d)

I afraid that small business router (not a true Cisco) is not doing the task correctly, as it doesn't translate the public address:

INVITE sip:6474788692@24.246.78.233:64270 SIP/2.0

It should replace it with the private IP.

14 REPLIES
Hall of Fame Super Gold

sip error on IOS 12.4(25d)

I never know about the need to configura that command. Can you post the complete trace with public IPs and numbers masked. Please do not use attachments.

New Member

sip error on IOS 12.4(25d)

*Mar  1 00:09:11.015: %SYS-5-CONFIG_I: Configured from console by console[OK]

Router#

*Mar  1 00:09:17.639: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Received:

INVITE sip:6474788692@24.246.78.233:64270 SIP/2.0

Via: SIP/2.0/UDP 174.137.63.206:5060;branch=z9hG4bK45022c7e;rport

From: "6477242754" <6477242754>;tag=as0edb1212

To: <6474788692>

Contact: <6477242754>

Call-ID: 6f84457e1ba32bc7533912de6b2b9068@174.137.63.206

CSeq: 102 INVITE

User-Agent: VoIPMS/SERAST

Max-Forwards: 70

Remote-Party-ID: "6477242754" <6477242754>;privacy=off;screen=no

Date: Mon, 16 Jan 2012 17:56:22 GMT

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY

Supported: replaces

Content-Type: application/sdp

Content-Length: 291

v=0

o=root 15898 15898 IN IP4 174.137.63.206

s=session

c=IN IP4 174.137.63.206

t=0 0

m=audio 12000 RTP/AVP 0 18 101

a=rtpmap:0 PCMU/8000

a=rtpmap:18 G729/8000

a=fmtp:18 annexb=no

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-16

a=silenceSupp:off - - - -

a=ptime:20

a=sendrecv

*Mar  1 00:09:17.651: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Sent:

SIP/2.0 400 Bad Request - 'Invalid IP Address'

Via: SIP/2.0/UDP 174.137.63.206:5060;branch=z9hG4bK45022c7e;rport

From: "6477242754" <6477242754>;tag=as0edb1212

To: <6474788692>;tag=88254-1CCB

Date: Fri, 01 Mar 2002 00:09:17 GMT

Call-ID: 6f84457e1ba32bc7533912de6b2b9068@174.137.63.206

Server: Cisco-SIPGateway/IOS-12.x

CSeq: 102 INVITE

Allow-Events: telephone-event

Content-Length: 0

*Mar  1 00:09:17.691: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Received:

ACK sip:6474788692@24.246.78.233:64270 SIP/2.0

Via: SIP/2.0/UDP 174.137.63.206:5060;branch=z9hG4bK45022c7e;rport

From: "6477242754" <6477242754>;tag=as0edb1212

To: <6474788692>;tag=88254-1CCB

Contact: <6477242754>

Call-ID: 6f84457e1ba32bc7533912de6b2b9068@174.137.63.206

CSeq: 102 ACK

User-Agent: VoIPMS/SERAST

Max-Forwards: 70

Remote-Party-ID: "6477242754" <6477242754>;privacy=off;screen=no

Content-Length: 0

New Member

sip error on IOS 12.4(25d)

24.246.78.233 is my public ip

the router ip is 192.168.1.195

And as you see this the error indacated i nthe permit command. Its dtrange im getting it and the command been removed. Thnanks.

New Member

sip error on IOS 12.4(25d)

and here is my sip-ua registration log

*Mar  1 00:13:44.107: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Sent:

REGISTER sip:174.137.63.206:5060 SIP/2.0

Via: SIP/2.0/UDP  192.168.1.195:5060;branch=z9hG4bKE17F7

From: "123558_1" <123558_1>;tag=C91C4-1E20

To: "123558_1" <123558_1>

Date: Fri, 01 Mar 2002 00:13:44 GMT

Call-ID: 5AC6AC1B-2BDF11D6-80058EE3-621364BF

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

Max-Forwards: 70

Timestamp: 1014941624

CSeq: 6 REGISTER

Contact: <123558_1>

Expires: 180

Authorization: Digest username="123558_1",realm="toronto2.voip.ms",uri="sip:174.137.63.206:5060",response="6b00e2b5bd7e18b6a99c9624eb102ed6",nonce="5b1bc350",algorithm=MD5

Content-Length: 0

*Mar  1 00:13:44.295: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Received:

SIP/2.0 200 OK

Via: SIP/2.0/UDP  192.168.1.195:5060;branch=z9hG4bKE17F7;received=24.246.78.233

From: "123558_1" <123558_1>;tag=C91C4-1E20

To: "123558_1" <123558_1>;tag=as47b424de

Call-ID: 5AC6AC1B-2BDF11D6-80058EE3-621364BF

CSeq: 6 REGISTER

User-Agent: VoIPMS/SERAST

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY

Supported: replaces

Expires: 180

Contact: <123558_1>;expires=180

Date: Mon, 16 Jan 2012 18:00:49 GMT

Content-Length: 0

*Mar  1 00:13:44.383: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Received:

SIP/2.0 100 Trying

Via: SIP/2.0/UDP  192.168.1.195:5060;branch=z9hG4bKE17F7;received=24.246.78.233

From: "123558_1" <123558_1>;tag=C91C4-1E20

To: "123558_1" <123558_1>

Call-ID: 5AC6AC1B-2BDF11D6-80058EE3-621364BF

CSeq: 6 REGISTER

User-Agent: VoIPMS/SERAST

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY

Supported: replaces

Contact: <123558_1>

Content-Length: 0

*Mar  1 00:13:44.387: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Received:

SIP/2.0 200 OK

Via: SIP/2.0/UDP  192.168.1.195:5060;branch=z9hG4bKE17F7;received=24.246.78.233

From: "123558_1" <123558_1>;tag=C91C4-1E20

To: "123558_1" <123558_1>;tag=as47b424de

Call-ID: 5AC6AC1B-2BDF11D6-80058EE3-621364BF

CSeq: 6 REGISTER

User-Agent: VoIPMS/SERAST

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY

Supported: replaces

Expires: 180

Contact: <123558_1>;expires=180

Date: Mon, 16 Jan 2012 18:00:49 GMT

Content-Length: 0

Hall of Fame Super Gold

Re: sip error on IOS 12.4(25d)

You are using a NAT device that does not perform SIP ALG.

Consequently, the router gives the error.

You can play around to try to avoid that, but the best solution is either give router a public address, or use a NAT device that works correly, like the Cisco ones.

New Member

sip error on IOS 12.4(25d)

oh so you are saying the problem is the internet router in front of the gw?

Hall of Fame Super Gold

Re: sip error on IOS 12.4(25d)

Yes, and indicated the recommended solutions.

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

New Member

sip error on IOS 12.4(25d)

ok, my cisco E3000 router has an option for sip alg and i enabled it but im still getting the same error:

*Mar  1 00:46:38.371: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Received:

INVITE sip:6474788692@24.246.78.233:64270 SIP/2.0

Via: SIP/2.0/UDP 174.137.63.206:5060;branch=z9hG4bK00e1283b;rport

From: "6479857249" <6479857249>;tag=as3e71241e

To: <6474788692>

Contact: <6479857249>

Call-ID: 2a25279c7fa0f89735586b3b6aa65e3b@174.137.63.206

CSeq: 102 INVITE

User-Agent: VoIPMS/SERAST

Max-Forwards: 70

Remote-Party-ID: "6479857249" <6479857249>;privacy=off;screen=no

Date: Mon, 16 Jan 2012 18:33:43 GMT

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY

Supported: replaces

Content-Type: application/sdp

Content-Length: 291

v=0

o=root 15898 15898 IN IP4 174.137.63.206

s=session

c=IN IP4 174.137.63.206

t=0 0

m=audio 17328 RTP/AVP 0 18 101

a=rtpmap:0 PCMU/8000

a=rtpmap:18 G729/8000

a=fmtp:18 annexb=no

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-16

a=silenceSupp:off - - - -

a=ptime:20

a=sendrecv

*Mar  1 00:46:38.391: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Sent:

SIP/2.0 400 Bad Request - 'Invalid IP Address'

Via: SIP/2.0/UDP 174.137.63.206:5060;branch=z9hG4bK00e1283b;rport

From: "6479857249" <6479857249>;tag=as3e71241e

To: <6474788692>;tag=2AB32C-6CB

Date: Fri, 01 Mar 2002 00:46:38 GMT

Call-ID: 2a25279c7fa0f89735586b3b6aa65e3b@174.137.63.206

Server: Cisco-SIPGateway/IOS-12.x

CSeq: 102 INVITE

Allow-Events: telephone-event

Content-Length: 0

*Mar  1 00:46:38.903: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Sent:

SIP/2.0 400 Bad Request - 'Invalid IP Address'

Via: SIP/2.0/UDP 174.137.63.206:5060;branch=z9hG4bK00e1283b;rport

From: "6479857249" <6479857249>;tag=as3e71241e

To: <6474788692>;tag=2AB32C-6CB

Call-ID: 2a25279c7fa0f89735586b3b6aa65e3b@174.137.63.206

CSeq: 102 INVITE

Content-Length: 0

Hall of Fame Super Gold

sip error on IOS 12.4(25d)

I afraid that small business router (not a true Cisco) is not doing the task correctly, as it doesn't translate the public address:

INVITE sip:6474788692@24.246.78.233:64270 SIP/2.0

It should replace it with the private IP.

New Member

sip error on IOS 12.4(25d)

what if i use sip-profile voip class? Do you think i will be able to replace/modify the invite sip header to the extent it it would work? Thanks alot for all the help.

Hall of Fame Super Gold

sip error on IOS 12.4(25d)

As indicated above already, you should solve the problem at the root instead of messing around on the gateway.

That is because when a devices misbehaves with voice, its a problem after another.

New Member

sip error on IOS 12.4(25d)

Thanks for the help Paolo.

Hall of Fame Super Gold

sip error on IOS 12.4(25d)

Thank you for the nice rating and good luck!

New Member

sip error on IOS 12.4(25d)

I worked around this by changing my sip provider. I found this new one that actually takes care of NAT on thir side and sends me message with my private ip embeded in them. teltub.com is this new provider in case somebody else wants to use it. The one that was giving me NAT problem was viop.ms. Thanks.

1300
Views
0
Helpful
14
Replies