[asterisk-bugs] [JIRA] (ASTERISK-30113) Duplicated Endpoints, AORS, Auths created by ARI

Vitezslav Novy (JIRA) noreply at issues.asterisk.org
Fri Jun 17 01:44:49 CDT 2022


Vitezslav Novy created ASTERISK-30113:
-----------------------------------------

             Summary: Duplicated Endpoints, AORS, Auths created by ARI
                 Key: ASTERISK-30113
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30113
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Core/Sorcery
    Affects Versions: 18.10.1
         Environment: Debian 11
            Reporter: Vitezslav Novy


With sorcery configuration in sorcery.conf

[res_pjsip]
endpoint=astdb,ps_endpoints
auth=astdb,ps_auths
aor=astdb,ps_aors

objects created by ARI push are shown twice in cli


Analysis:
Module res_pjsip_config_wizard registers sorcery memory wizard for endpoint, aor, auth and maybe other pjsip sorcery object types. With sorcery configuration shown above, we end with 2 sorcery wizards (astdb, memory) for these objects.
When ARI is used to create object, function ast_sorcery_create stores the object using both wizards.

Retrieval functions like ast_sorcery_retrieve_by_regex or ast_sorcery_retrieve_by_prefix fetch objects from all wizards, but there is no deduplication.

Workaround: if not needed do not load module res_pjsip_config_wizard module or delete config file pjsip_wizard.conf












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



More information about the asterisk-bugs mailing list