<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 16, 2022 at 8:58 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 class="msg2949289445811324807">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="gmail-m_2949289445811324807WordSection1">
<p class="MsoNormal">Thank you George.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">As you pointed out, my mistake of the double equal sign caused the problem.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Using the passthrough profile and in the AMI Originate setting the Variable: GEOLOC_PROFILE(name) is exactly what we need.<u></u><u></u></p>
<p class="MsoNormal">My software will receive the GEO settings from third party software.<u></u><u></u></p>
<p class="MsoNormal">If third party passed a field/value that doesn’t match the Asterisk defaults, our software will add the GEOLOC_PROFILE(name) to the Originate Variable field.<u></u><u></u></p>
<p class="MsoNormal">Then I send the Originate packet to Asterisk via AMI.<u></u><u></u></p>
<p class="MsoNormal"><u></u> </p></div></div></div></blockquote><div>Good news!</div><div><br></div><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 class="msg2949289445811324807"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="gmail-m_2949289445811324807WordSection1"><p class="MsoNormal"><u></u></p>
<p class="MsoNormal">Thank you for all your work on this!!!</p></div></div></div></blockquote><div><br></div><div>Thanks for testing and your suggestions!!!</div><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 class="msg2949289445811324807"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="gmail-m_2949289445811324807WordSection1"><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>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b>From:</b> asterisk-users <<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>>
<b>On Behalf Of </b>George Joseph<br>
<b>Sent:</b> Tuesday, August 16, 2022 7:49 AM<br>
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion <<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a>><br>
<b>Subject:</b> Re: [External] [asterisk-users] [External] Geo location 18.14.0-rc1 question<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Aug 15, 2022 at 1:59 PM Dan Cropp <<a href="mailto:dan@amtelco.com" target="_blank">dan@amtelco.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<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><u></u></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">You've got 2 equals signs when you set location_info :).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I just tried <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">GEOLOC_PROFILE(format)=civicAddress,GEOLOC_PROFILE(location_info)="country=US,A3=\"New York\"",GEOLOC_PROFILE(pidf_element)=device<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">and it worked.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">I believe this portion believe indicates Asterisk treats the GEOLOC_PROFILE(xxx) as GEOLOCPROFILESTATUS variable name.<u></u><u></u></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">GEOLOCPROFILESTATUS is the variable GEOLOC_PROFILE sets to indicate<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">success or failure. The value of "0" indicates success. What was the actual result in the channel?<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<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>
<p class="MsoNormal">-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">
http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" 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" 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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</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></div></blockquote></div></div>