<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 2, 2022 at 8:46 AM Dan Cropp <<a href="mailto:dan@amtelco.com">dan@amtelco.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="gmail-m_-4101168462991139044WordSection1">
<p class="MsoNormal">I believe I have everything configured correctly, but Asterisk is complaining about my configuration<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">It is complaining about confidence settings.  <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">From the Asterisk Geolocation Implementation Wiki, I believe I have this set correctly.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p style="margin:0in;background:white"><span style="font-size:10.5pt;font-family:Helvetica,sans-serif;color:rgb(51,51,51)">Sub-parameters:<u></u><u></u></span></p>
<ul type="disc">
<li class="MsoNormal" style="color:rgb(51,51,51);background:white">
<code><span style="font-size:10pt">value</span></code><span style="font-size:10.5pt;font-family:Helvetica,sans-serif">: A percentage indicating the confidence or "unknown".<u></u><u></u></span></li><li class="MsoNormal" style="color:rgb(51,51,51);background:white">
<code><span style="font-size:10pt">pdf</span></code><span style="font-size:10.5pt;font-family:Helvetica,sans-serif">: "unknown", "normal" or "rectangular"<br>
Example: </span><code><span style="font-size:10pt">confidence = value=80, pdf=unknown</span></code><span style="font-size:10.5pt;font-family:Helvetica,sans-serif"><br>
If no </span><code><span style="font-size:10pt">confidence</span></code><span style="font-size:10.5pt;font-family:Helvetica,sans-serif"> parameter is specified, the default is 95%.<br>
See <a href="https://wiki.asterisk.org/wiki/display/AST/Geolocation+Reference+Information#GeolocationReferenceInformation-rfc7459" target="_blank"><span style="color:rgb(25,46,132)">RFC7459</span></a> for the exact definition of this parameter.<u></u><u></u></span></li></ul>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[08/02 09:30:03.724] ERROR[682944] config_options.c: Could not find option suitable for category 'IS_loc_1' named 'confidence' at line 12 of<u></u><u></u></p>
<p class="MsoNormal">[08/02 09:30:03.724] ERROR[682944] res_sorcery_config.c: Could not create an object of type 'location' with id 'IS_loc_1' from configuration file 'geolocation.conf'<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[IS_loc_1]<u></u><u></u></p>
<p class="MsoNormal">type = location<u></u><u></u></p>
<p class="MsoNormal">format = civicAddress<u></u><u></u></p>
<p class="MsoNormal">confidence = value=95, pdf=unknown<u></u><u></u></p>
<p class="MsoNormal">location_info = country=US,A1=Wisconsin,A3=Madison<u></u><u></u></p>
<p class="MsoNormal">location_info = HNO=4800,RD=Main,STS=Drive,PC=53704</p></div></div></blockquote><div><br></div><div>Remove the confidence param for now.    I documented it before I implemented it. :)</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="gmail-m_-4101168462991139044WordSection1"><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Also seeing problems with location_refinement setting.<u></u><u></u></p>
<p class="MsoNormal">Again, I believe my setting matches what is on the Asterisk Geolocation Implementation wiki.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[08/02 09:30:03.724] ERROR[682944] config_options.c: Could not find option suitable for category 'IS_prof_20' named 'location_refinement' at line 56 of<u></u><u></u></p>
<p class="MsoNormal">[08/02 09:30:03.724] ERROR[682944] res_sorcery_config.c: Could not create an object of type 'profile' with id 'IS_prof_20' from configuration file 'geolocation.conf'<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[IS_prof_20]<u></u><u></u></p>
<p class="MsoNormal">type = profile<u></u><u></u></p>
<p class="MsoNormal">profile_action = prefer_incoming<u></u><u></u></p>
<p class="MsoNormal">pidf_element = person<u></u><u></u></p>
<p class="MsoNormal">usage_rules = retransmission_allowed=no<u></u><u></u></p>
<p class="MsoNormal">location_reference = IS_loc_22</p></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="gmail-m_-4101168462991139044WordSection1"><p class="MsoNormal">location_refinement = ROOM=292<u></u><u></u></p>
<p class="MsoNormal">location_refinement = FLR=1</p></div></div></blockquote><div><br></div><div>Pffft.  I renamed this to "location_info_refinement" to better match the "location_info" parameter in the Location object.  I forgot to rename it in the wiki documentation.  If you just change the name it should work.</div><div> </div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204,204,204);margin:0px 0px 0px 0.8ex;padding-left:1ex"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="gmail-m_-4101168462991139044WordSection1"><p class="MsoNormal"><u></u><u></u></p><br class="gmail-Apple-interchange-newline"></div></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="gmail-m_-4101168462991139044WordSection1"><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Dan<u></u><u></u></p>
</div>
</div>

-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div></div>