<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 15, 2022 at 1:59 PM 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_-4420240437966360142WordSection1">
<p class="MsoNormal">Thank you George.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Good idea on the passthrough profile.  <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Is there a way to set the GEOLOC_PROFILE values from the AMI Originate command?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I tried the following, but it doesn’t like the GEOLOC_PROFILE values in the variable parameter.  If there is a way to do this, the passthrough would solve the problem of Geo Location information settings needing to be provided by a third-party
 application.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Action: Originate<u></u><u></u></p>
<p class="MsoNormal">Channel: PJSIP/<a href="mailto:1234@192.168.33.31" target="_blank">1234@192.168.33.31</a><u></u><u></u></p>
<p class="MsoNormal">Exten: createcall<u></u><u></u></p>
<p class="MsoNormal">Context: mycontext<u></u><u></u></p>
<p class="MsoNormal">Priority: 1<u></u><u></u></p>
<p class="MsoNormal">Timeout: 60000<u></u><u></u></p>
<p class="MsoNormal">CallerID: John Smith <8005551234><u></u><u></u></p>
<p class="MsoNormal">Variable: GEOLOC_PROFILE(format)=civicAddress,GEOLOC_PROFILE(method)=Manual,GEOLOC_PROFILE(location_info)<b>==</b>"country=US,A1=Florida,A3=Orlando,HNO=100,RD=Main,STS=Street",CALLERID(num-pres)=allowed_passed_screen<u></u><u></u></p>
<p class="MsoNormal">Async: true<u></u><u></u></p>
<p class="MsoNormal"><u></u> </p></div></div></blockquote><div><br></div><div>You've got 2 equals signs when you set location_info :).</div><div>I just tried </div><div>GEOLOC_PROFILE(format)=civicAddress,GEOLOC_PROFILE(location_info)="country=US,A3=\"New York\"",GEOLOC_PROFILE(pidf_element)=device<br></div><div>and it worked.<br></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_-4420240437966360142WordSection1"><p class="MsoNormal"><u></u></p>
<p class="MsoNormal">I believe this portion believe indicates Asterisk treats the GEOLOC_PROFILE(xxx) as GEOLOCPROFILESTATUS variable name.</p></div></div></blockquote><div><br></div><div>GEOLOCPROFILESTATUS is the variable GEOLOC_PROFILE sets to indicate</div><div>success or failure.  The value of "0" indicates success.  What was the actual result in the channel?</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_-4420240437966360142WordSection1"><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[08/15 13:41:41.609] DEBUG[42424] manager.c: Examining AMI event:<u></u><u></u></p>
<p class="MsoNormal">Event: VarSet^M<u></u><u></u></p>
<p class="MsoNormal">Privilege: dialplan,all^M<u></u><u></u></p>
<p class="MsoNormal">Channel: PJSIP/192.168.33.31-00000000^M<u></u><u></u></p>
<p class="MsoNormal">ChannelState: 0^M<u></u><u></u></p>
<p class="MsoNormal">ChannelStateDesc: Down^M<u></u><u></u></p>
<p class="MsoNormal">CallerIDNum: <unknown>^M<u></u><u></u></p>
<p class="MsoNormal">CallerIDName: <unknown>^M<u></u><u></u></p>
<p class="MsoNormal">ConnectedLineNum: <unknown>^M<u></u><u></u></p>
<p class="MsoNormal">ConnectedLineName: <unknown>^M<u></u><u></u></p>
<p class="MsoNormal">Language: en^M<u></u><u></u></p>
<p class="MsoNormal">AccountCode: 20^M<u></u><u></u></p>
<p class="MsoNormal">Context: IS^M<u></u><u></u></p>
<p class="MsoNormal">Exten: s^M<u></u><u></u></p>
<p class="MsoNormal">Priority: 1^M<u></u><u></u></p>
<p class="MsoNormal">Uniqueid: 1660588901.0^M<u></u><u></u></p>
<p class="MsoNormal">Linkedid: 1660588901.0^M<u></u><u></u></p>
<p class="MsoNormal">Variable: GEOLOCPROFILESTATUS^M<u></u><u></u></p>
<p class="MsoNormal">Value: 0^M<u></u><u></u></p>
<p class="MsoNormal">^M<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>