Remove_existing ignored by pbx

Hello,
I’m trying to use the option remove_existing=yes on a pjsip trunk.

I put the following text in the file pjsip.aor_custom_post.conf
[T00XXXX] (+)
type=aor
remove_existing=yes

The problem is that it ignores it and reports an error:
[2018-02-22 09:34:00] ERROR[13585]: config_options.c:728 aco_process_var: Could not find option suitable for category ‘T00XXXX’ named ‘remove_existing’ at line 3 of /etc/asterisk/pjsip.aor_custom_post.conf
[2018-02-22 09:34:00] ERROR[13585]: res_sorcery_config.c:307 sorcery_config_internal_load: Could not create an object of type ‘endpoint’ with id ‘T00XXXX’ from configuration file ‘pjsip.conf’
[2018-02-22 09:34:00] NOTICE[13585]: res_sorcery_config.c:318 sorcery_config_internal_load: Retaining existing configuration for object of type ‘endpoint’ with id ‘T00XXXX’

If I manually change temporarely (until the next apply of freepbx) pjsip.aor.conf all works correctly:
[T00XXXX]
type=aor
qualify_frequency=60
max_contacts=1
remove_existing=yes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.