[asterisk-bugs] [Asterisk 0013634]: Asterisk fills "via" header not correctly.

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Dec 15 23:00:01 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13634 
====================================================================== 
Reported By:                performer
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13634
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
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:42 CDT
Last Modified:              2008-12-15 23:00 CST
====================================================================== 
Summary:                    Asterisk fills "via" header not correctly.
Description: 
Some provider couldn't send responses to Asterisk because information in
"via" header has port "0".

My solution:
diff chan_sip.c.bak chan_sip.c
2628c2628
<                       ntohs(p->ourip.sin_port), p->branch, rport);
---
>                       ntohs(p->socket.port), p->branch, rport);

====================================================================== 

---------------------------------------------------------------------- 
 (0096433) performer (reporter) - 2008-12-15 23:00
 http://bugs.digium.com/view.php?id=13634#c96433 
---------------------------------------------------------------------- 
Problem happens when other side uses Communigate Pro that looks to Via
header when routing. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-15 23:00 performer      Note Added: 0096433                          
======================================================================




More information about the asterisk-bugs mailing list