[Home]

Summary:ASTERISK-25393: Non-realtime and Realtime can not exist together
Reporter:Ross Beer (rossbeer)Labels:
Date Opened:2015-09-14 07:47:54Date Closed:2015-09-14 07:56:47
Priority:MajorRegression?
Status:Closed/CompleteComponents:Core/Sorcery
Versions:13.5.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Attachments:
Description:In Asterisk 13.3.2 it was possible to use static config at the same time as realtime by using the following sorcery config:

{quote}[res_pjsip] ; Realtime PJSIP configuration wizard
auth=config,pjsip.conf
auth=realtime,ps_auths

aor=config,pjsip.conf
aor=realtime,ps_aors

domain_alias=config,pjsip.conf
domain_alias=realtime,ps_domain_aliases

endpoint=config,pjsip.conf
endpoint=realtime,ps_endpoints

contact=config,pjsip.conf
contact=realtime,ps_contacts

[res_pjsip_endpoint_identifier_ip]
identify=config,pjsip.conf
identify=realtime,ps_endpoint_id_ips
{quote}

When using this in Asterisk 13.5.0, no endpoints can be located from the pjsip.conf. It does however appear that the 'identify' config is working as expected.

If I remove the sorcery mapping or go back to 13.2.3 everything works correctly.

Has the config changed per versions for this static & realtime config?
Comments:By: Asterisk Team (asteriskteam) 2015-09-14 07:47:56.913-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Joshua C. Colp (jcolp) 2015-09-14 07:56:48.018-0500

Your configuration lines are missing criteria, which means that all objects are applied against each type which can cause object creation failure. This may be fatal in later versions.

To resolve this you'll need to add criteria lines like the following:

endpoint=config,jsip.conf,criteria=type=endpoint

Where "type=" is replaced with the "type=" line used for each type.

If this does not work please reopen and attach a complete console output from Asterisk start to console.