[asterisk-bugs] [JIRA] (ASTERISK-28747) YES/NO attributes are not set properly when creating PJSIP sorcery objects via ARI

Andrés Alonso (JIRA) noreply at issues.asterisk.org
Tue Feb 18 12:03:25 CST 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249778#comment-249778 ] 

Andrés Alonso commented on ASTERISK-28747:
------------------------------------------

Sure.

{code}
| ps_aors | CREATE TABLE `ps_aors` (
  `id` varchar(40) NOT NULL,
  `contact` varchar(255) DEFAULT NULL,
  `default_expiration` int(11) DEFAULT NULL,
  `mailboxes` varchar(80) DEFAULT NULL,
  `max_contacts` int(11) DEFAULT NULL,
  `minimum_expiration` int(11) DEFAULT NULL,
  `remove_existing` enum('yes','no') DEFAULT NULL,
  `qualify_frequency` int(11) DEFAULT NULL,
  `authenticate_qualify` enum('yes','no') DEFAULT NULL,
  `maximum_expiration` int(11) DEFAULT NULL,
  `outbound_proxy` varchar(40) DEFAULT NULL,
  `support_path` enum('yes','no') DEFAULT NULL,
  `qualify_timeout` float DEFAULT NULL,
  `voicemail_extension` varchar(40) DEFAULT NULL,
  UNIQUE KEY `id` (`id`),
  KEY `ps_aors_id` (`id`),
  KEY `ps_aors_qualifyfreq_contact` (`qualify_frequency`,`contact`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
{code}

> YES/NO attributes are not set properly when creating PJSIP sorcery objects via ARI
> ----------------------------------------------------------------------------------
>
>                 Key: ASTERISK-28747
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28747
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/AstDB, Core/Sorcery, Resources/res_ari
>    Affects Versions: 17.1.0
>         Environment: - CentOS release 7.7.1908 (Core) kernel 3.10.0-1062.4.3.el7.x86_64
> - mysql  Ver 15.1 Distrib 5.5.64-MariaDB
>            Reporter: Andrés Alonso
>            Assignee: Andrés Alonso
>            Severity: Minor
>         Attachments: extconfig.conf, sorcery.conf
>
>
> When creating PJSIP object through the Sorcery API, *yes/no attributes* are not created according to the given payload data.
> For instance, creating an AOR object passing:
> * max_contacts=1
> * remove_existing=yes
> Request ends succesfully, but the resulting object has (pjsip show aor):
> * max_contacts: 1 (as expected)
> * remove_existing: *false*



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



More information about the asterisk-bugs mailing list