<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:tax="http://schemas.microsoft.com/sharepoint/taxonomy/soap/" xmlns:tns="http://schemas.microsoft.com/sharepoint/soap/recordsrepository/" xmlns:spsup="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texto de globo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextodegloboCar
        {mso-style-name:"Texto de globo Car";
        mso-style-priority:99;
        mso-style-link:"Texto de globo";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi everyone!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I'm developing a web management app that integrates with Asterisk and makes use of the Sorcery API to create and store PJSIP objects.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I'm finding some issues creating objects with yes/no attributes. See the following example, creating an AOR with 'remove_existing=yes':<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>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<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Reply from Asterisk is successful and attributes seem to be set properly:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>< HTTP/1.1 200 OK<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>< Server: Asterisk<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>< Date: Thu, 13 Feb 2020 08:32:47 GMT<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>< Cache-Control: no-cache, no-store<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>< Content-type: application/json<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>< Content-Length: 828<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><<o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>[<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  ...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>    "attribute": "max_contacts",<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>    "value": "1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  },<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  ...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>    "attribute": "remove_existing",<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>    "value": "true"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  },<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  ...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>But when checking via cli for said new aor, remove_existing is false:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US> </span>Aor:  test_aor       <o:p></o:p></p><p class=MsoNormal>                                        <o:p></o:p></p><p class=MsoNormal> ParameterName        : ParameterValue<o:p></o:p></p><p class=MsoNormal><span lang=EN-US> =====================================<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> authenticate_qualify : false<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> contact              :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> default_expiration   : 3600<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> mailboxes            :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> max_contacts         : 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> maximum_expiration   : 7200<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> minimum_expiration   : 60<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> outbound_proxy       :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> qualify_frequency    : 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> qualify_timeout      : 3.000000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> remove_existing      : <span style='color:red'>false</span><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> support_path         : false<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> voicemail_extension  :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>My current environment is:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>- CentOS Linux release 7.7.1908 (Core)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>- Asterisk 17.1.0 <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>- mysql  Ver 15.1 Distrib 5.5.64-MariaDB<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I wonder if someone has faced a similar issue. Any help would be much appreciated.<o:p></o:p></span></p><p class=MsoNormal>Thanks for your support.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td style='padding:0cm 0cm 0cm 0cm'><p class=MsoNormal style='line-height:115%'><b><span style='font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:black;mso-fareast-language:ES'>Andrés Alonso</span></b><span style='mso-fareast-language:ES'><br></span><b><span style='font-size:8.5pt;line-height:115%;font-family:"Arial","sans-serif";color:black;mso-fareast-language:ES'>Ingeniero de Software I+D</span></b><b><span style='font-size:8.5pt;line-height:115%;font-family:"Arial","sans-serif";color:black;mso-fareast-language:ES'><o:p></o:p></span></b></p><p class=MsoNormal style='line-height:115%'><span style='font-size:8.5pt;line-height:115%;font-family:"Arial","sans-serif";color:black;mso-fareast-language:ES'>Departamento de Tecnología</span><span style='font-size:8.5pt;line-height:115%;font-family:"Arial","sans-serif";color:black;mso-fareast-language:ES'> <br></span><span style='mso-fareast-language:ES'><br></span><span style='mso-fareast-language:ES'><a href="mailto:nombre.apellido@alisys.net"><span style='font-size:8.5pt;line-height:115%;font-family:"Arial","sans-serif";color:blue'>andres.alonso@alisys.net</span></a></span><span style='color:black;mso-fareast-language:ES'>  </span><span style='font-size:8.5pt;line-height:115%;font-family:"Arial","sans-serif";color:#333333;mso-fareast-language:ES'><br></span><span style='font-size:8.5pt;line-height:115%;font-family:"Arial","sans-serif";color:#333333;mso-fareast-language:ES'>(+34) 984057559</span><span style='font-size:8.5pt;line-height:115%;font-family:"Arial","sans-serif";color:#333333;mso-fareast-language:ES'>  </span><span style='font-size:12.0pt;line-height:115%;mso-fareast-language:ES'><o:p></o:p></span></p></td></tr><tr><td style='padding:0cm 0cm 0cm 0cm'></td></tr><tr><td style='padding:0cm 0cm 0cm 0cm'><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 align=left width=198 style='width:148.5pt;margin-bottom:7.75pt'><tr><td width=50 valign=bottom style='width:37.5pt;padding:0cm 0cm 0cm 0cm'><p class=MsoNormal style='line-height:115%'><a href="http://www.alisys.net/" target="_blank"><span style='color:blue;mso-fareast-language:ES;text-decoration:none'><img border=0 width=74 height=31 id="Imagen_x0020_8" src="cid:image001.jpg@01D5E257.E3C135A0" alt="cid:image002.jpg@01CFF42A.0F9D6210"></span></a><span style='mso-fareast-language:ES'><a href="http://www.alisys.net/" target="_blank"><span style='font-size:8.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#0065CC'>www.alisys.net </span></a></span><span style='font-size:12.0pt;line-height:115%;mso-fareast-language:ES'><o:p></o:p></span></p></td><td width=15 valign=bottom style='width:11.25pt;padding:0cm 0cm 0cm 0cm'></td><td width=50 valign=bottom style='width:37.5pt;padding:0cm 0cm 0cm 0cm'></td></tr></table></td></tr><tr><td style='padding:0cm 0cm 0cm 0cm'><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 align=left width=155 style='width:116.25pt;margin-bottom:7.75pt'><tr><td width=20 valign=bottom style='width:15.0pt;padding:0cm 0cm 0cm 0cm'><p class=MsoNormal style='line-height:115%'><a href="https://twitter.com/alisys" target="_blank"><span style='color:blue;mso-fareast-language:ES;text-decoration:none'><img border=0 width=17 height=17 id="Imagen_x0020_5" src="cid:image002.jpg@01D5E257.E3C135A0" alt=Twitter></span></a><span style='font-size:12.0pt;line-height:115%;mso-fareast-language:ES'><o:p></o:p></span></p></td><td width=76 valign=bottom style='width:57.0pt;padding:0cm 0cm 0cm 0cm'><p class=MsoNormal style='line-height:115%'><a href="http://www.linkedin.com/company/alisys" target="_blank"><span style='color:blue;mso-fareast-language:ES;text-decoration:none'><img border=0 width=17 height=17 id="Imagen_x0020_4" src="cid:image003.jpg@01D5E257.E3C135A0" alt=Linkedin></span></a><span style='font-size:12.0pt;line-height:115%;mso-fareast-language:ES'><o:p></o:p></span></p></td><td width=20 valign=bottom style='width:15.0pt;padding:0cm 0cm 0cm 0cm'></td><td width=20 valign=bottom style='width:15.0pt;padding:0cm 0cm 0cm 0cm'></td></tr></table></td></tr><tr><td style='padding:0cm 0cm 0cm 0cm'><p class=MsoNormal style='line-height:115%'><span style='color:black;mso-fareast-language:ES'><img border=0 width=600 height=8 id="Imagen_x0020_1" src="cid:image004.gif@01D5E257.E3C135A0" alt=separador></span><span style='font-size:12.0pt;line-height:115%;mso-fareast-language:ES'><o:p></o:p></span></p></td></tr><tr><td style='padding:0cm 0cm 0cm 0cm'><p class=MsoNormal style='text-align:justify;line-height:115%'><a name="OLE_LINK1"><span style='font-size:7.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#666666'>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<o:p></o:p></span></a></p><p class=MsoNormal style='line-height:115%'><span style='font-size:7.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#666666'><o:p> </o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='font-size:7.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#666666;mso-fareast-language:ES'>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 </span><a href="mailto:legal@alisys.net"><span style='font-size:7.0pt;line-height:115%;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:ES'>legal@alisys.net</span></a><span style='font-size:7.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#666666;mso-fareast-language:ES'>. Le informamos asimismo que ALISYS ha nombrado un Delegado de Protección de Datos, cuyos datos de contacto son </span><a href="mailto:dpd@alisys.net"><span style='font-size:7.0pt;line-height:115%;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:ES'>dpd@alisys.net</span></a><span style='font-size:7.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#666666;mso-fareast-language:ES'> y de que Vd. tiene derecho a presentar una reclamación ante la Agencia Española de Protección de Datos.</span><span style='font-size:12.0pt;line-height:115%;mso-fareast-language:ES'><o:p></o:p></span></p></td></tr></table><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:10.0pt;line-height:115%'><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>