[asterisk-bugs] [Asterisk 0013633]: Asterisk won't register if SIP-port at peer differ than local (5060)
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Oct 7 00:46:18 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13633
======================================================================
Reported By: performer
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 13633
Category: Channels/chan_sip/Registration
Reproducibility: have not tried
Severity: major
Priority: normal
Status: new
Asterisk Version: 1.6.0
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-10-07 00:37 CDT
Last Modified: 2008-10-07 00:46 CDT
======================================================================
Summary: Asterisk won't register if SIP-port at peer differ
than local (5060)
Description:
The problem happens because Asterisk fills 'Contact' header in SIP-message
using remote port number instead local port number.
Example:
REGISTER sip:sip.asterisk.xxx.com:55060 SIP/2.0
Via: SIP/2.0/UDP 83.167.107.46:0;branch=z9hG4bK47cfc028
Max-Forwards: 70
From: <sip:12345678 at sip.asterisk.xxx.com>;tag=as5f389822
To: <sip:12345678 at sip.asterisk.xxx.com>
Call-ID: 099f43ef434287c457a3d793535e9df7 at yyy.ru
CSeq: 3084 REGISTER
User-Agent: SweetHome Agent
Expires: 120
Contact: <sip:s at 83.137.137.146:55060>
Event: registration
Content-Length: 0
My solution:
diff chan_sip.c.bak chan_sip.c
2628c2628
< p->socket.port = htons(r->portno);
---
> // p->socket.port = htons(r->portno);
======================================================================
----------------------------------------------------------------------
(0093265) performer (reporter) - 2008-10-07 00:46
http://bugs.digium.com/view.php?id=13633#c93265
----------------------------------------------------------------------
Sorry, reproducibility is always.
Issue History
Date Modified Username Field Change
======================================================================
2008-10-07 00:46 performer Note Added: 0093265
======================================================================
More information about the asterisk-bugs
mailing list