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

2022-08-16 Thread George Joseph
On Mon, Aug 15, 2022 at 3:07 PM Dan Cropp  wrote:

> George,
>
>
>
> Is it possible to set the GEOLOC_PROFILE fields similar to the way
> PJSIP_HEADER(add, …) works?
>

I can try but unlike the HEADER functions, the profile has multiple levels
of name/value pairs so it might take a bit of work and testing.   Let me
finish the other things first then I'll evaluate this.


>
>
> Asking, because we already use the PJSIP_HEADER(add, xxx) from AMI
> Originate to add PJSIP headers to the outbound originate.
>
>
>
>
>
> Action: Originate
>
> ActionID: S62
>
> Channel: PJSIP/1234@192.168.12.34
>
> Exten: createcall
>
> Context: mycontext
>
> Priority: 1
>
> Timeout: 6
>
> CallerID: John Smith <8005551212>
>
> Variable:
> PJSIP_HEADER(add,abc)=123,CALLERID(num-pres)=allowed_passed_screen
>
> Async: true
>
> Codecs: ulaw
>
>
>
> Dan
>
>
>
>
>
>
>
> *From:* Dan Cropp
> *Sent:* Monday, August 15, 2022 2:00 PM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion <
> asterisk-users@lists.digium.com>
> *Subject:* RE: [External] [asterisk-users] Geo location 18.14.0-rc1
> question
>
>
>
> Thank you George.
>
>
>
> Good idea on the passthrough profile.
>
>
>
> Is there a way to set the GEOLOC_PROFILE values from the AMI Originate
> command?
>
>
>
> 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.
>
>
>
> Action: Originate
>
> Channel: PJSIP/1234@192.168.33.31
>
> Exten: createcall
>
> Context: mycontext
>
> Priority: 1
>
> Timeout: 6
>
> CallerID: John Smith <8005551234>
>
> Variable:
> GEOLOC_PROFILE(format)=civicAddress,GEOLOC_PROFILE(method)=Manual,GEOLOC_PROFILE(location_info)=="country=US,A1=Florida,A3=Orlando,HNO=100,RD=Main,STS=Street",CALLERID(num-pres)=allowed_passed_screen
>
> Async: true
>
>
>
> I believe this portion believe indicates Asterisk treats the
> GEOLOC_PROFILE(xxx) as GEOLOCPROFILESTATUS variable name.
>
>
>
> [08/15 13:41:41.609] DEBUG[42424] manager.c: Examining AMI event:
>
> Event: VarSet^M
>
> Privilege: dialplan,all^M
>
> Channel: PJSIP/192.168.33.31-^M
>
> ChannelState: 0^M
>
> ChannelStateDesc: Down^M
>
> CallerIDNum: ^M
>
> CallerIDName: ^M
>
> ConnectedLineNum: ^M
>
> ConnectedLineName: ^M
>
> Language: en^M
>
> AccountCode: 20^M
>
> Context: IS^M
>
> Exten: s^M
>
> Priority: 1^M
>
> Uniqueid: 1660588901.0^M
>
> Linkedid: 1660588901.0^M
>
> Variable: GEOLOCPROFILESTATUS^M
>
> Value: 0^M
>
> ^M
>
>
>
> Dan
> --
> _
> -- 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
-- 
_
-- 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

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

2022-08-16 Thread George Joseph
On Mon, Aug 15, 2022 at 1:59 PM Dan Cropp  wrote:

> Thank you George.
>
>
>
> Good idea on the passthrough profile.
>
>
>
> Is there a way to set the GEOLOC_PROFILE values from the AMI Originate
> command?
>
>
>
> 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.
>
>
>
> Action: Originate
>
> Channel: PJSIP/1234@192.168.33.31
>
> Exten: createcall
>
> Context: mycontext
>
> Priority: 1
>
> Timeout: 6
>
> CallerID: John Smith <8005551234>
>
> Variable:
> GEOLOC_PROFILE(format)=civicAddress,GEOLOC_PROFILE(method)=Manual,GEOLOC_PROFILE(location_info)
> *==*
> "country=US,A1=Florida,A3=Orlando,HNO=100,RD=Main,STS=Street",CALLERID(num-pres)=allowed_passed_screen
>
> Async: true
>
>
>

You've got 2 equals signs when you set location_info :).
I just tried
GEOLOC_PROFILE(format)=civicAddress,GEOLOC_PROFILE(location_info)="country=US,A3=\"New
York\"",GEOLOC_PROFILE(pidf_element)=device
and it worked.

I believe this portion believe indicates Asterisk treats the
> GEOLOC_PROFILE(xxx) as GEOLOCPROFILESTATUS variable name.
>

GEOLOCPROFILESTATUS is the variable GEOLOC_PROFILE sets to indicate
success or failure.  The value of "0" indicates success.  What was the
actual result in the channel?

>
>
> [08/15 13:41:41.609] DEBUG[42424] manager.c: Examining AMI event:
>
> Event: VarSet^M
>
> Privilege: dialplan,all^M
>
> Channel: PJSIP/192.168.33.31-^M
>
> ChannelState: 0^M
>
> ChannelStateDesc: Down^M
>
> CallerIDNum: ^M
>
> CallerIDName: ^M
>
> ConnectedLineNum: ^M
>
> ConnectedLineName: ^M
>
> Language: en^M
>
> AccountCode: 20^M
>
> Context: IS^M
>
> Exten: s^M
>
> Priority: 1^M
>
> Uniqueid: 1660588901.0^M
>
> Linkedid: 1660588901.0^M
>
> Variable: GEOLOCPROFILESTATUS^M
>
> Value: 0^M
>
> ^M
>
>
>
> Dan
> --
> _
> -- 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
-- 
_
-- 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

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

2022-08-15 Thread Dan Cropp
George,

Is it possible to set the GEOLOC_PROFILE fields similar to the way 
PJSIP_HEADER(add, …) works?

Asking, because we already use the PJSIP_HEADER(add, xxx) from AMI Originate to 
add PJSIP headers to the outbound originate.


Action: Originate
ActionID: S62
Channel: PJSIP/1234@192.168.12.34
Exten: createcall
Context: mycontext
Priority: 1
Timeout: 6
CallerID: John Smith <8005551212>
Variable: PJSIP_HEADER(add,abc)=123,CALLERID(num-pres)=allowed_passed_screen
Async: true
Codecs: ulaw

Dan



From: Dan Cropp
Sent: Monday, August 15, 2022 2:00 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: RE: [External] [asterisk-users] Geo location 18.14.0-rc1 question

Thank you George.

Good idea on the passthrough profile.

Is there a way to set the GEOLOC_PROFILE values from the AMI Originate command?

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.

Action: Originate
Channel: PJSIP/1234@192.168.33.31
Exten: createcall
Context: mycontext
Priority: 1
Timeout: 6
CallerID: John Smith <8005551234>
Variable: 
GEOLOC_PROFILE(format)=civicAddress,GEOLOC_PROFILE(method)=Manual,GEOLOC_PROFILE(location_info)=="country=US,A1=Florida,A3=Orlando,HNO=100,RD=Main,STS=Street",CALLERID(num-pres)=allowed_passed_screen
Async: true

I believe this portion believe indicates Asterisk treats the 
GEOLOC_PROFILE(xxx) as GEOLOCPROFILESTATUS variable name.

[08/15 13:41:41.609] DEBUG[42424] manager.c: Examining AMI event:
Event: VarSet^M
Privilege: dialplan,all^M
Channel: PJSIP/192.168.33.31-^M
ChannelState: 0^M
ChannelStateDesc: Down^M
CallerIDNum: ^M
CallerIDName: ^M
ConnectedLineNum: ^M
ConnectedLineName: ^M
Language: en^M
AccountCode: 20^M
Context: IS^M
Exten: s^M
Priority: 1^M
Uniqueid: 1660588901.0^M
Linkedid: 1660588901.0^M
Variable: GEOLOCPROFILESTATUS^M
Value: 0^M
^M

Dan
-- 
_
-- 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

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

2022-08-15 Thread Dan Cropp
Thank you George.

Good idea on the passthrough profile.

Is there a way to set the GEOLOC_PROFILE values from the AMI Originate command?

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.

Action: Originate
Channel: PJSIP/1234@192.168.33.31
Exten: createcall
Context: mycontext
Priority: 1
Timeout: 6
CallerID: John Smith <8005551234>
Variable: 
GEOLOC_PROFILE(format)=civicAddress,GEOLOC_PROFILE(method)=Manual,GEOLOC_PROFILE(location_info)=="country=US,A1=Florida,A3=Orlando,HNO=100,RD=Main,STS=Street",CALLERID(num-pres)=allowed_passed_screen
Async: true

I believe this portion believe indicates Asterisk treats the 
GEOLOC_PROFILE(xxx) as GEOLOCPROFILESTATUS variable name.

[08/15 13:41:41.609] DEBUG[42424] manager.c: Examining AMI event:
Event: VarSet^M
Privilege: dialplan,all^M
Channel: PJSIP/192.168.33.31-^M
ChannelState: 0^M
ChannelStateDesc: Down^M
CallerIDNum: ^M
CallerIDName: ^M
ConnectedLineNum: ^M
ConnectedLineName: ^M
Language: en^M
AccountCode: 20^M
Context: IS^M
Exten: s^M
Priority: 1^M
Uniqueid: 1660588901.0^M
Linkedid: 1660588901.0^M
Variable: GEOLOCPROFILESTATUS^M
Value: 0^M
^M

Dan
-- 
_
-- 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

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

2022-08-02 Thread George Joseph
On Tue, Aug 2, 2022 at 1:35 PM George Joseph  wrote:

>
>
> On Tue, Aug 2, 2022 at 1:13 PM Dan Cropp  wrote:
>
>> Is the allow_routing setting on the geolocation Wiki Profile also not
>> fully implemented?
>>
>
> Well, 99% of the code is there.  The 1% is parsing the config option.  Not
> sure how I missed that.
> I'll have a patch up first thing in the morning UTC-6.
> I'll call it "allow_use_for_routing" in profile.
>

Actually just "allow_routing_use"


>
>
>>
>>
>> In the code, I see geolocation_routing used instead of allow_routing.
>>
>>
>>
>> Tried both and Asterisk indicates it cannot find suitable setting so it
>> doesn’t create the profile object.
>>
>>
>>
>> Dan
>>
>>
>>
>> *From:* Dan Cropp
>> *Sent:* Tuesday, August 2, 2022 10:04 AM
>> *To:* Asterisk Users Mailing List - Non-Commercial Discussion <
>> asterisk-users@lists.digium.com>
>> *Subject:* RE: [External] [asterisk-users] Geo location 18.14.0-rc1
>> question
>>
>>
>>
>> Thank you George.
>>
>>
>>
>> *From:* asterisk-users  *On
>> Behalf Of *George Joseph
>> *Sent:* Tuesday, August 2, 2022 9:57 AM
>> *To:* Asterisk Users Mailing List - Non-Commercial Discussion <
>> asterisk-users@lists.digium.com>
>> *Subject:* Re: [External] [asterisk-users] Geo location 18.14.0-rc1
>> question
>>
>>
>>
>>
>>
>>
>>
>> On Tue, Aug 2, 2022 at 8:46 AM Dan Cropp  wrote:
>>
>> I believe I have everything configured correctly, but Asterisk is
>> complaining about my configuration
>>
>>
>>
>> It is complaining about confidence settings.
>>
>>
>>
>> From the Asterisk Geolocation Implementation Wiki, I believe I have this
>> set correctly.
>>
>>
>>
>> Sub-parameters:
>>
>>- value: A percentage indicating the confidence or "unknown".
>>- pdf: "unknown", "normal" or "rectangular"
>>Example: confidence = value=80, pdf=unknown
>>If no confidence parameter is specified, the default is 95%.
>>See RFC7459
>>
>> 
>>  for
>>the exact definition of this parameter.
>>
>>
>>
>>
>>
>> [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
>>
>> [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'
>>
>>
>>
>> [IS_loc_1]
>>
>> type = location
>>
>> format = civicAddress
>>
>> confidence = value=95, pdf=unknown
>>
>> location_info = country=US,A1=Wisconsin,A3=Madison
>>
>> location_info = HNO=4800,RD=Main,STS=Drive,PC=53704
>>
>>
>>
>> Remove the confidence param for now.I documented it before I
>> implemented it. :)
>>
>>
>>
>>
>>
>>
>>
>> Also seeing problems with location_refinement setting.
>>
>> Again, I believe my setting matches what is on the Asterisk Geolocation
>> Implementation wiki.
>>
>>
>>
>> [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
>>
>> [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'
>>
>>
>>
>> [IS_prof_20]
>>
>> type = profile
>>
>> profile_action = prefer_incoming
>>
>> pidf_element = person
>>
>> usage_rules = retransmission_allowed=no
>>
>> location_reference = IS_loc_22
>>
>> location_refinement = ROOM=292
>>
>> location_refinement = FLR=1
>>
>>
>>
>> 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.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Dan
>>
>> --
>> _
>> -- 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
>>
>> --
>> _
>> -- 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
>
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: 

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

2022-08-02 Thread George Joseph
On Tue, Aug 2, 2022 at 1:13 PM Dan Cropp  wrote:

> Is the allow_routing setting on the geolocation Wiki Profile also not
> fully implemented?
>

Well, 99% of the code is there.  The 1% is parsing the config option.  Not
sure how I missed that.
I'll have a patch up first thing in the morning UTC-6.
I'll call it "allow_use_for_routing" in profile.


>
>
> In the code, I see geolocation_routing used instead of allow_routing.
>
>
>
> Tried both and Asterisk indicates it cannot find suitable setting so it
> doesn’t create the profile object.
>
>
>
> Dan
>
>
>
> *From:* Dan Cropp
> *Sent:* Tuesday, August 2, 2022 10:04 AM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion <
> asterisk-users@lists.digium.com>
> *Subject:* RE: [External] [asterisk-users] Geo location 18.14.0-rc1
> question
>
>
>
> Thank you George.
>
>
>
> *From:* asterisk-users  *On
> Behalf Of *George Joseph
> *Sent:* Tuesday, August 2, 2022 9:57 AM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion <
> asterisk-users@lists.digium.com>
> *Subject:* Re: [External] [asterisk-users] Geo location 18.14.0-rc1
> question
>
>
>
>
>
>
>
> On Tue, Aug 2, 2022 at 8:46 AM Dan Cropp  wrote:
>
> I believe I have everything configured correctly, but Asterisk is
> complaining about my configuration
>
>
>
> It is complaining about confidence settings.
>
>
>
> From the Asterisk Geolocation Implementation Wiki, I believe I have this
> set correctly.
>
>
>
> Sub-parameters:
>
>- value: A percentage indicating the confidence or "unknown".
>- pdf: "unknown", "normal" or "rectangular"
>Example: confidence = value=80, pdf=unknown
>If no confidence parameter is specified, the default is 95%.
>See RFC7459
>
> 
>  for
>the exact definition of this parameter.
>
>
>
>
>
> [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
>
> [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'
>
>
>
> [IS_loc_1]
>
> type = location
>
> format = civicAddress
>
> confidence = value=95, pdf=unknown
>
> location_info = country=US,A1=Wisconsin,A3=Madison
>
> location_info = HNO=4800,RD=Main,STS=Drive,PC=53704
>
>
>
> Remove the confidence param for now.I documented it before I
> implemented it. :)
>
>
>
>
>
>
>
> Also seeing problems with location_refinement setting.
>
> Again, I believe my setting matches what is on the Asterisk Geolocation
> Implementation wiki.
>
>
>
> [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
>
> [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'
>
>
>
> [IS_prof_20]
>
> type = profile
>
> profile_action = prefer_incoming
>
> pidf_element = person
>
> usage_rules = retransmission_allowed=no
>
> location_reference = IS_loc_22
>
> location_refinement = ROOM=292
>
> location_refinement = FLR=1
>
>
>
> 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.
>
>
>
>
>
>
>
>
>
>
>
> Dan
>
> --
> _
> -- 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
>
> --
> _
> -- 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
-- 
_
-- 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

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

2022-08-02 Thread Dan Cropp
Is the allow_routing setting on the geolocation Wiki Profile also not fully 
implemented?

In the code, I see geolocation_routing used instead of allow_routing.

Tried both and Asterisk indicates it cannot find suitable setting so it doesn’t 
create the profile object.

Dan

From: Dan Cropp
Sent: Tuesday, August 2, 2022 10:04 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: RE: [External] [asterisk-users] Geo location 18.14.0-rc1 question

Thank you George.

From: asterisk-users 
mailto:asterisk-users-boun...@lists.digium.com>>
 On Behalf Of George Joseph
Sent: Tuesday, August 2, 2022 9:57 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion 
mailto:asterisk-users@lists.digium.com>>
Subject: Re: [External] [asterisk-users] Geo location 18.14.0-rc1 question



On Tue, Aug 2, 2022 at 8:46 AM Dan Cropp 
mailto:d...@amtelco.com>> wrote:
I believe I have everything configured correctly, but Asterisk is complaining 
about my configuration

It is complaining about confidence settings.

From the Asterisk Geolocation Implementation Wiki, I believe I have this set 
correctly.


Sub-parameters:

  *   value: A percentage indicating the confidence or "unknown".
  *   pdf: "unknown", "normal" or "rectangular"
Example: confidence = value=80, pdf=unknown
If no confidence parameter is specified, the default is 95%.
See 
RFC7459
 for the exact definition of this parameter.


[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
[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'

[IS_loc_1]
type = location
format = civicAddress
confidence = value=95, pdf=unknown
location_info = country=US,A1=Wisconsin,A3=Madison
location_info = HNO=4800,RD=Main,STS=Drive,PC=53704

Remove the confidence param for now.I documented it before I implemented 
it. :)



Also seeing problems with location_refinement setting.
Again, I believe my setting matches what is on the Asterisk Geolocation 
Implementation wiki.

[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
[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'

[IS_prof_20]
type = profile
profile_action = prefer_incoming
pidf_element = person
usage_rules = retransmission_allowed=no
location_reference = IS_loc_22
location_refinement = ROOM=292
location_refinement = FLR=1

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.





Dan
--
_
-- 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
-- 
_
-- 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

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

2022-08-02 Thread Dan Cropp
Thank you George.

From: asterisk-users  On Behalf Of 
George Joseph
Sent: Tuesday, August 2, 2022 9:57 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: Re: [External] [asterisk-users] Geo location 18.14.0-rc1 question



On Tue, Aug 2, 2022 at 8:46 AM Dan Cropp 
mailto:d...@amtelco.com>> wrote:
I believe I have everything configured correctly, but Asterisk is complaining 
about my configuration

It is complaining about confidence settings.

From the Asterisk Geolocation Implementation Wiki, I believe I have this set 
correctly.


Sub-parameters:

  *   value: A percentage indicating the confidence or "unknown".
  *   pdf: "unknown", "normal" or "rectangular"
Example: confidence = value=80, pdf=unknown
If no confidence parameter is specified, the default is 95%.
See 
RFC7459
 for the exact definition of this parameter.


[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
[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'

[IS_loc_1]
type = location
format = civicAddress
confidence = value=95, pdf=unknown
location_info = country=US,A1=Wisconsin,A3=Madison
location_info = HNO=4800,RD=Main,STS=Drive,PC=53704

Remove the confidence param for now.I documented it before I implemented 
it. :)



Also seeing problems with location_refinement setting.
Again, I believe my setting matches what is on the Asterisk Geolocation 
Implementation wiki.

[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
[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'

[IS_prof_20]
type = profile
profile_action = prefer_incoming
pidf_element = person
usage_rules = retransmission_allowed=no
location_reference = IS_loc_22
location_refinement = ROOM=292
location_refinement = FLR=1

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.





Dan
--
_
-- 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
-- 
_
-- 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