[asterisk-bugs] [JIRA] (ASTERISK-30260) Creating registration using ARI push fails on boolean fields of the reatime backend

Thomas Guebels (JIRA) noreply at issues.asterisk.org
Mon Oct 10 05:12:08 CDT 2022


Thomas Guebels created ASTERISK-30260:
-----------------------------------------

             Summary: Creating registration using ARI push fails on boolean fields of the reatime backend
                 Key: ASTERISK-30260
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30260
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_pjsip_outbound_registration
    Affects Versions: 18.14.0
            Reporter: Thomas Guebels


When creating an outbound registration using ARI push and using the realtime backend, some fields defined as OPT_BOOL_T in Sorcery make the database query fail.

It seems there is a mismatch between the realtime database schema being ENUM(yes,no) and the Sorcery object definition.

realtime ps_registrations:
auth_rejection_permanent    | enum('yes','no') 
support_path                | enum('yes','no') 
line                        | enum('yes','no')

res_pjsip_outbound_registration:
ast_sorcery_object_field_register(ast_sip_get_sorcery(), "registration", "auth_rejection_permanent", "yes", OPT_BOOL_T, 1, FLDSET(struct sip_outbound_registration, auth_rejection_permanent));
ast_sorcery_object_field_register(ast_sip_get_sorcery(), "registration", "support_path", "no", OPT_BOOL_T, 1, FLDSET(struct sip_outbound_registration, support_path));
ast_sorcery_object_field_register(ast_sip_get_sorcery(), "registration", "line", "no", OPT_BOOL_T, 1, FLDSET(struct sip_outbound_registration, line));





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



More information about the asterisk-bugs mailing list