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

Alexandre Vezina (JIRA) noreply at issues.asterisk.org
Wed Mar 13 10:53:01 CDT 2013


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

Alexandre Vezina commented on ASTERISK-21225:
---------------------------------------------

I always have this:

chan_sip.c:27492:4: error: expected identifier or ‘(’ before ‘else’
chan_sip.c:27517:4: error: expected identifier or ‘(’ before ‘else’
chan_sip.c:27521:4: error: expected identifier or ‘(’ before ‘else’
chan_sip.c:27528:4: error: expected identifier or ‘(’ before ‘else’
chan_sip.c:27531:4: error: expected identifier or ‘(’ before ‘else’
chan_sip.c:27539:4: error: expected identifier or ‘(’ before ‘else’
chan_sip.c:27543:4: error: expected identifier or ‘(’ before ‘else’
chan_sip.c:27551:4: error: expected identifier or ‘(’ before ‘else’
chan_sip.c:27554:4: error: expected identifier or ‘(’ before ‘else’
chan_sip.c:27557:4: error: expected identifier or ‘(’ before ‘else’
chan_sip.c:27577:4: error: expected identifier or ‘(’ before ‘else’
chan_sip.c:27580:4: error: expected identifier or ‘(’ before ‘else’
chan_sip.c:27583:4: error: expected identifier or ‘(’ before ‘else’
chan_sip.c:27586:2: error: expected identifier or ‘(’ before ‘return’
chan_sip.c:27587:1: error: expected identifier or ‘(’ before ‘}’ token

At line 27484, the if block starts with an "else if". 
                
> 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_1.8_v2.diff, asterisk-21225-handle-options-default-prob_1.8_v2.diff, asterisk-21225-handle-options-default-prob_v3.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