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

mounaf ahmad (JIRA) noreply at issues.asterisk.org
Thu Sep 1 06:52:02 CDT 2016


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

mounaf ahmad commented on ASTERISK-21225:
-----------------------------------------

hi every body
i have the same problem 
the option: nat= force_rport doesn't behave as supposed.
i hope  this patch solve this issue.

can any one show me how to apply those .diff files in my asterisk sever?

the asterisk version is 11, i installed it to my machine by compiling the source code.

i really looking for your helps
best regards.


> [patch] 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: Michael L. Young
>            Severity: Minor
>      Target Release: 1.8.23.0, 11.5.0
>
>         Attachments: asterisk-21225-handle-options-default-prob_1.8_v4.diff, asterisk-21225-handle-options-default-prob_v4.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 was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list