On Thu, Feb 13, 2020 at 2:30 AM Andres Alonso Garcia < andres.alo...@alisys.net> wrote:
> Hi everyone! > > I'm developing a web management app that integrates with Asterisk and > makes use of the Sorcery API to create and store PJSIP objects. > > I'm finding some issues creating objects with yes/no attributes. See the > following example, creating an AOR with 'remove_existing=yes': > > > > curl -v -X PUT -u asterisk:MySuperSecretPass -H "Content-Type: > application/json" -d '{"fields": [{"attribute": "max_contacts", "value": > "1"}, {"attribute": "remove_existing", "value": "yes"}]}' http:// > <PBX_IP>:8088/ari/asterisk/config/dynamic/res_pjsip/aor/test_aor > > > > Reply from Asterisk is successful and attributes seem to be set properly: > > > > < HTTP/1.1 200 OK > > < Server: Asterisk > > < Date: Thu, 13 Feb 2020 08:32:47 GMT > > < Cache-Control: no-cache, no-store > > < Content-type: application/json > > < Content-Length: 828 > > < > > [ > > ... > > { > > "attribute": "max_contacts", > > "value": "1" > > }, > > ... > > { > > "attribute": "remove_existing", > > "value": "true" > > }, > > ... > > ] > > > > But when checking via cli for said new aor, remove_existing is false: > > > > Aor: test_aor > > > > ParameterName : ParameterValue > > ===================================== > > authenticate_qualify : false > > contact : > > default_expiration : 3600 > > mailboxes : > > max_contacts : 1 > > maximum_expiration : 7200 > > minimum_expiration : 60 > > outbound_proxy : > > qualify_frequency : 0 > > qualify_timeout : 3.000000 > > remove_existing : false > > support_path : false > > voicemail_extension : > > > > My current environment is: > > - CentOS Linux release 7.7.1908 (Core) > > - Asterisk 17.1.0 > > - mysql Ver 15.1 Distrib 5.5.64-MariaDB > > > > I wonder if someone has faced a similar issue. Any help would be much > appreciated. > > Thanks for your support. > A few things to check... Did the setting of max_contacts work? Do both values show as correct in the backend database? What are the sorcery.conf entries for res_pjsip/aor? How you have caching set in sorcery.conf can affect the CLI display. > > > > > *Andrés Alonso* > *Ingeniero de Software I+D* > > Departamento de Tecnología > > andres.alo...@alisys.net <nombre.apell...@alisys.net> > (+34) 984057559 > > [image: cid:image002.jpg@01CFF42A.0F9D6210] > <http://www.alisys.net/>www.alisys.net > > > [image: Twitter] <https://twitter.com/alisys> > > [image: Linkedin] <http://www.linkedin.com/company/alisys> > > [image: separador] > > AVISO DE CONFIDENCIALIDAD. Este mensaje de correo, sus documentos adjuntos > y la información incluida en él, está dirigida exclusivamente a los > destinatarios especificados. Puede contener información confidencial y > reservada, amparada por el secreto profesional, su utilización o > divulgación con cualquier fin está prohibida, y no necesariamente refleja > la opinión de Alisys Digital S.L.U. Si ha recibido este mensaje por error, > por favor, comuníquelo inmediatamente al remitente vía e-mail y proceda a > eliminarlo de su sistema > > > > Les informamos de que sus datos personales de contacto para el envío de > este email serán objeto de un tratamiento automatizado de datos personales > del que es responsable Alisys Digital S.L.U., con dirección en Alisys > Digital S.L.U., Espacio Utopicus, C/ Orense, 62, 28020 Madrid, cuya > finalidad es la gestión, administración, mantenimiento ((incluyendo la > realización de controles y encuestas de satisfacción), actualización de > servicios contratados y comercialización de servicios similares a los ya > contratados. Los datos serán tratados bajo la base legal de la ejecución de > un contrato (para la gestión y administración de la relación contractual) e > interés legítimo (para la comercialización de nuevos servicios, siendo el > interés legítimo del responsable el incremento de las relaciones de negocio > entre las partes). Los datos se conservarán durante el tiempo por el que se > mantenga la relación contractual. Los datos podrán ser cedidos a empresas > del grupo de ALISYS dedicadas a la prestación de servicios informáticos, > tecnológicos y de comunicaciones electrónicas, para las mismas finalidades. > No se prevén otras cesiones ni la realización de transferencias > internacionales de datos, salvo por obligación legal. Los destinatarios > podrán ejercitar sus derechos de acceso, supresión, rectificación, > oposición y limitación del tratamiento mediante el envío de una solicitud a > le...@alisys.net. Le informamos asimismo que ALISYS ha nombrado un > Delegado de Protección de Datos, cuyos datos de contacto son > d...@alisys.net y de que Vd. tiene derecho a presentar una reclamación > ante la Agencia Española de Protección de Datos. > > > > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-dev mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-dev -- George Joseph Asterisk Software Developer direct/fax +1 256 428 6012 Check us out at www.sangoma.com and www.asterisk.org [image: image.png]
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev