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

Michael L. Young (JIRA) noreply at issues.asterisk.org
Sun Nov 25 22:29:45 CST 2012


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

Michael L. Young updated ASTERISK-20724:
----------------------------------------

    Status: Open  (was: Triage)
    
> 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
>         Attachments: asterisk-20724-set-port.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