[asterisk-bugs] [JIRA] (ASTERISK-21225) Setting nat=force_rport in [general] sip.conf will never work

Michael L. Young (JIRA) noreply at issues.asterisk.org
Sat Mar 9 23:05:01 CST 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-21225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204075#comment-204075 ] 

Michael L. Young edited comment on ASTERISK-21225 at 3/9/13 11:04 PM:
----------------------------------------------------------------------

Okay.  Looks like this patch should take care of it... also, I think we are taking care of the directmedia problem you were having as well with this patch.

Let me know if that solves it.  Also, just an FYI... I did some cleanup to the NAT settings and dealing with realtime peers as well.  That patch is in the 11 branch and is not in 11.2.1.  The patch on ASTERISK-20904 (https://issues.asterisk.org/jira/secure/attachment/46557/asterisk-20904-nat-auto-and-rt-peersv2.diff) has those changes.
                
      was (Author: elguero):
    Okay.  Looks like this patch should take care of it... also, I think we are taking care of the directmedia problem you were having as well with this patch.

Let me know if that solves it.  Also, just an FYI... I did some cleanup to the NAT settings and dealing with realtime peers as well.  Those patches are in the 11 branch and is not in 11.2.1.  The patch on ASTERISK-20904 (https://issues.asterisk.org/jira/secure/attachment/46557/asterisk-20904-nat-auto-and-rt-peersv2.diff) has those changes.
                  
> Setting nat=force_rport in [general] sip.conf will never work
> -------------------------------------------------------------
>
>                 Key: ASTERISK-21225
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21225
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General
>    Affects Versions: 11.2.1
>            Reporter: Alexandre Vezina
>            Assignee: Alexandre Vezina
>            Severity: Minor
>         Attachments: asterisk-21225-handle-options-default-prob_v2.diff
>
>
> I noticed that it was impossible to set nat=force_rport in the general section of sip.conf. It actually has no effect when issuing cli command "sip show settings" (result is Force rport: Auto (No).
> The function to reload configurations in chan_sip.c sets the flag SIP_PAGE3_NAT_AUTO_RPORT in the global flags and the function sip_parse_nat_option in config_parser.c will only add the flag SIP_NAT_FORCE_RPORT if SIP_PAGE3_NAT_AUTO_RPORT is not present.
> So, it seems impossible to raise the flag SIP_NAT_FORCE_RPORT in the [general] section of sip.conf.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list