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

Digium Subversion (JIRA) noreply at issues.asterisk.org
Thu Nov 29 15:52:45 CST 2012


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

Digium Subversion closed ASTERISK-20724.
----------------------------------------

    Resolution: Fixed
    
> 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
>         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