[asterisk-bugs] [JIRA] (ASTERISK-20724) Fix natdetected flag being set when VIA doesn't include port in address

Matt Jordan (JIRA) noreply at issues.asterisk.org
Mon Jan 14 13:57:46 CST 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan updated ASTERISK-20724:
-----------------------------------

    Target Release Version/s: 11.2.0
                              10.12.0-digiumphones
                              10.12.0
                              1.8.20.0
    
> Fix natdetected flag being set when VIA doesn't include port in address
> -----------------------------------------------------------------------
>
>                 Key: ASTERISK-20724
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20724
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General
>    Affects Versions: 11.0.1
>            Reporter: Michael L. Young
>            Assignee: Michael L. Young
>      Target Release: 1.8.20.0, 10.12.0, 10.12.0-digiumphones, 11.2.0
>
>         Attachments: asterisk-20724-set-port-v2.diff
>
>
> While troubleshooting another issue, came across this message in the debug log:
> {noformat}
> [2012-11-25 19:07:25] DEBUG[13375][C-00000007]: chan_sip.c:17910 check_via: NAT detected for 216.115.69.144:0 / 216.115.69.144:5060
> Sending to 216.115.69.144:5060 (NAT)
> {noformat}
> Upon looking at the code in check_via, I discovered that if the port is not set on the address in the VIA header, the default SIP port is not being set on the tmp ast_sockaddr used to check if the requesting UA might be behind NAT.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list