Re: [External] [External] [External] [External] [External] Geo location 18.14.0-rc1 question

Dan Cropp <[email protected]>
Newsgroups gmane.comp.telephony.pbx.asterisk.user
Message-ID <CH2PR13MB362303D879F731FF5DCC399EA3679@CH2PR13MB3623.namprd13.prod.outlook.com>
Thank you Joshua

rc2 resolved the issue I was seeing.

However, it sounds like it would be best for me to configure the location_info without the leading underscore for the variable name.

Dan

From: asterisk-users <[email protected]> On Behalf Of Joshua C. Colp
Sent: Friday, August 12, 2022 8:04 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion <[email protected]>
Subject: Re: [External] [asterisk-users] [External] [External] [External] [External] Geo location 18.14.0-rc1 question

On Fri, Aug 12, 2022 at 10:01 AM George Joseph <[email protected]<mailto:[email protected]>> wrote:


On Thu, Aug 11, 2022 at 8:43 AM Dan Cropp <[email protected]<mailto:[email protected]>> wrote:
Thank you George.

I am still running on asterisk 18.14.0-rc1 and have not retrieved the patches yet.
Did this version have a bug with the variables?

It's quite possible.  RC2 was just released so you should try that.

I’m trying the location_info and variables in the AMI Originate you recommended at the end of the previous e-mail.

In case it’s not coming through correctly via e-mail, the variable names are preceeded with a single underscore in the AMI and in the location_info values.


[IS_loc_5]
type = location
format = civicAddress
location_info = country=${_MY_GEO_COUNTRY}
location_info = A1=${_MY_GEO_NATIONAL_SUBDIVISION}
location_info = A2=${_MY_GEO_NATSUB}
location_info = A3=${_MY_GEO_CITY}
location_info = HNO=${_MY_GEO_HNO}
location_info = RD=${_MY_GEO_RD}
location_info = STS=${_MY_GEO_STS}
location_info = PC=${_MY_GEO_PC}

Underscore refers to variable inheritance. For usage you don't include the underscore. I don't think the code strips out the underscore when substituting or retrieving, so it could very well end up empty during that process.

--
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com<http://www.sangoma.com> and www.asterisk.org<http://www.asterisk.org>

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.