Could not find option suitable for category '140' named 'rewrite_contact' at line 477 of


#1

I get the folloing in asterisk cli

[Mar 12 07:30:05] ERROR[30277]: config_options.c:779 aco_process_var: Could not find option suitable for category '140' named 'rewrite_contact' at line 477 of 
[Mar 12 07:30:05] ERROR[30277]: res_sorcery_config.c:407 sorcery_config_internal_load: Could not create an object of type 'aor' with id '140' from configuration file 'pjsip.conf'
[Mar 12 07:30:05] NOTICE[30277]: res_sorcery_config.c:418 sorcery_config_internal_load: Retaining existing configuration for object of type 'aor' with id '140'

related pjsip.conf lines

[140]
type = aor
max_contacts = 20 
qualify_frequency = 60
maximum_expiration = 1200
minimum_expiration = 60
default_expiration = 120
remove_existing = yes
rewrite_contact=yes   ;--->   line 477  <----

#2

The rewrite_contact option only exists in endpoints. It does not exist in AORs.