[asterisk-bugs] [Asterisk 0012761]: [patch] chan_sip: build_contact() does not put alternate port setting in Contact header

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Oct 21 18:34:48 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12761 
====================================================================== 
Reported By:                asbestoshead
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   12761
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     confirmed
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 118255 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-05-30 03:04 CDT
Last Modified:              2008-10-21 18:34 CDT
====================================================================== 
Summary:                    [patch] chan_sip: build_contact() does not put
alternate port setting in Contact header
Description: 
build_contact() looks at the *other* end's port to decide whether there's a
non-standard port in use. If my end has bindport=5062 but the peer has
port=5060, when I send an invite to the peer, my Contact header doesn't
have ":5062".

initreqprep() has the same problem when setting the From: header.

chan_sip in Asterisk trunk and 1.6.0-beta8 (but not 1.4.19) have this
problem.

I have a trivial patch for this against Moy's mfcr2 branch off trunk, but
I can't find the link to sign the contributor's agreement. The patch also
applies to 1.6.0beta8, although I haven't tested it there...
====================================================================== 

---------------------------------------------------------------------- 
 (0094112) putnopvut (administrator) - 2008-10-21 18:34
 http://bugs.digium.com/view.php?id=12761#c94112 
---------------------------------------------------------------------- 
The patch seems fine by me, since it is inconsistent if the socket's port
is the near or far end's port. The patch is almost certainly out of date
considering the age of this issue, but I'll take it upon myself to get it
up to date.

Thanks for the patch and sorry it took so long to get around to looking at
this. I think this qualifies as one of those bugs that just sort of got
lost in the pile. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-21 18:34 putnopvut      Note Added: 0094112                          
======================================================================




More information about the asterisk-bugs mailing list