[asterisk-bugs] [JIRA] (ASTERISK-28563) Additional configuration [extName](+) not always working

Michael Maier (JIRA) noreply at issues.asterisk.org
Thu Oct 3 11:14:48 CDT 2019


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

Michael Maier commented on ASTERISK-28563:
------------------------------------------

That's another example:
{noformat}
cat pjsip.conf 
;--------------------------------------------------------------------------------;
;          Do NOT edit this file as it is auto-generated by FreePBX.             ;
;--------------------------------------------------------------------------------;
; For information on adding additional paramaters to this file, please visit the ;
; FreePBX.org wiki page, or ask on IRC. This file was created by the new FreePBX ;
; BMO - Big Module Object. Any similarity in naming with BMO from Adventure Time ;
; is totally deliberate.                                                         ;
;--------------------------------------------------------------------------------;
#include pjsip_custom.conf
#include pjsip.transports.conf
#include pjsip.transports_custom_post.conf
#include pjsip.endpoint.conf
#include pjsip.endpoint_custom_post.conf
#include pjsip.aor.conf
#include pjsip.aor_custom_post.conf
#include pjsip.auth.conf
#include pjsip.auth_custom_post.conf
#include pjsip.registration.conf
#include pjsip.registration_custom_post.conf
#include pjsip.identify.conf
#include pjsip.identify_custom_post.conf


[global]
type=global
user_agent=FPBX-14.0.11(16.5.1)
endpoint_identifier_order=ip,username,anonymous,header,auth_username
#include pjsip_custom_post.conf


cat pjsip.registration.conf
;--------------------------------------------------------------------------------;
;          Do NOT edit this file as it is auto-generated by FreePBX.             ;
;--------------------------------------------------------------------------------;
; For information on adding additional paramaters to this file, please visit the ;
; FreePBX.org wiki page, or ask on IRC. This file was created by the new FreePBX ;
; BMO - Big Module Object. Any similarity in naming with BMO from Adventure Time ;
; is totally deliberate.                                                         ;
;--------------------------------------------------------------------------------;
#include pjsip.registration_custom.conf

[trunk1]
type=registration
transport=0.0.0.0-tls
outbound_auth=trunk1
retry_interval=60
fatal_retry_interval=0
forbidden_retry_interval=10
max_retries=10000
expiration=3600
line=yes
endpoint=trunk1
auth_rejection_permanent=yes
contact_user=...
server_uri=sip:...
client_uri=sip:...



myfw*CLI> pjsip show registration trunk1

[...]

 ParameterName            : ParameterValue
 ==============================================================
 auth_rejection_permanent : true
 [...]
 endpoint                 : trunk1
 expiration               : 3600
 fatal_retry_interval     : 0
 forbidden_retry_interval : 10
 line                     : true
 max_retries              : 10000
 outbound_auth            : trunk1
 outbound_proxy           : 
 retry_interval           : 60
 ^^^^^^^^^^^^^^
 [...]


cat pjsip.registration_custom_post.conf
[trunk1](+)
retry_interval=80

myfw*CLI> core reload

myfw*CLI> pjsip show registration easybellPJSIP 

[...]

 ParameterName            : ParameterValue
 ==============================================================
 auth_rejection_permanent : true
 [...]
 endpoint                 : trunk1
 expiration               : 3600
 fatal_retry_interval     : 0
 forbidden_retry_interval : 10
 line                     : true
 max_retries              : 10000
 outbound_auth            : trunk1
 outbound_proxy           : 
 retry_interval           : 60
 ^^^^^^^^^^^^^^
 [...]
{noformat}

In this special case, I'm getting the error on core reload:
{noformat}
config_options.c:780 aco_process_var: Could not find option suitable for category 'trunk1' named 'retry_interval' at line 2 of /etc/asterisk/pjsip.registration_custom_post.conf
{noformat}

> Additional configuration [extName](+) not always working
> --------------------------------------------------------
>
>                 Key: ASTERISK-28563
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28563
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Configuration
>    Affects Versions: 16.5.0
>         Environment: CentOS 7
>            Reporter: Michael Maier
>            Severity: Minor
>              Labels: pjsip
>
> There is a problem regarding the configuration options, provided by FreePBX, which should be supported by asterisk. I'm referring to the possibility, to add additional options not supported by FreePBX using special config files like pjsip.registration_custom_post.conf or pjsip.aor_custom_post.conf and pjsip.endpoint_custom_post.conf or pjsip.transports_custom_post.conf. The last two files are working pretty fine as expected, but the first two just don't work.
> I'm configuring in pjsip.registration_custom_post.conf for example:
> {noformat}
> [extName](+)
> key=value
> {noformat}
> Asterisk reads it (asterisk complains if it doesn't know the key), but asterisk doesn't apply the provided value for a known key - it's always the default value.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list