Incorrect location on all phones...

Status
Not open for further replies.

narrington

Trial User
Joined
Mar 14, 2019
Messages
44
Reaction score
8
Running 16.0.910 (enterprise) with 22 phones in total. all phones are Grandstream most are GXP-2170s but we do have a couple 2140s and a GAC (conference phone with a custom template). Of these phones 7 are remote (4 on SBCs and 3 connecting over VPN)...

ALL of the phones have the correct time, but show (in the weather app) that they are in Seattle (a time zone away from us). considering the time on the phones is correct, people haven't complained too loudly, but there is a bit of a snicker about the fact I cant get these lines to show our actual City!

Where do these phones get their location data if not from the phone switch itself?

I already tried setting a custom template changing the city code options, but the test phone I'm working with is connected via SBC and I literally cant use a custom template over SBC (the phone remains "new" no matter what I do, unless I go in and manually add the SIP account, but it never pulls the config file when I manually add the account to the phone which makes the custom template useless!)...

I'm starting to look pretty stupid here...
 
Not a solution, but I have the exact same issue. All GXP2170 and GXP2135 phones. They aren't a full timezone off, but are far enough to annoy the clients. Look forward to any solutions or suggestions.
 
I would think that the weather feature is going to be unique to each phone. Some people want local weather, and some want another city. Probably not set in the template, but a feature that is changed through the menu on the phone itself. If that is the case, then it probably won't change if the phone does an update..
 
If that is the case, then it probably won't change if the phone does an update..
Yes, it WILL override on update because it's in the template to set it to "automatic". The simple thing is to set it from the phone itself and use a custom template with these settings commented out. This way, the phone won't update those settings on reprovision.
 
  • Like
Reactions: AWS2P
I would think that the weather feature is going to be unique to each phone. Some people want local weather, and some want another city. Probably not set in the template, but a feature that is changed through the menu on the phone itself. If that is the case, then it probably won't change if the phone does an update..
Heres the template options in question:

Code:
<!--############################################################################# -->
    <!--#  Settings/Web Service -->
    <!--############################################################################# -->
    <!-- Weather Update -->

    <!-- Use Auto Location Service. 0 - No, 1 - Yes. Default is 1 -->
    <!-- Number: 0, 1 -->
    <!-- Mandatory -->
    <P8338>1</P8338>

    <!-- Enable weather update. 0 - No, 1 - Yes. Default is 1 -->
    <!-- Number: 0, 1 -->
    <!-- Mandatory -->
    <P1402>1</P1402>

    <!-- City Code -->
    <!-- 0 - Self-Defined City Code, 1 - Automatic. Default is 1 -->
    <!-- Number: 0, 1 -->
    <!-- Mandatory -->
    <P1405>0</P1405>

    <!-- Self-Defined City Code -->
    <!-- String -->
    <P1377>[citycode]</P1377>

    <!-- Update Interval (in minutes). Default is 15 -->
    <!-- Number: 5 - 360 -->
    <!-- Mandatory -->
    <P1378>15</P1378>

    <!-- Degree Unit. auto - Automatic, f - Fahrenheit, c - Celsius. Default is auto -->
    <!-- String: auto, f, c -->
    <!-- Mandatory -->
    <P1379>auto</P1379>

    <!-- Currency Update -->
    <!-- Enable Currency update. 0 - No, 1 - Yes. Default is 1 -->
    <!-- Number: 0, 1 -->
    <!-- Mandatory -->
    <P1404>1</P1404>

    <!-- Currency Code -->
    <!-- String -->
    <!-- Mandatory -->
    <P1381>EUR/USD;GBP/USD;CAD/USD;AUD/USD;CNY/USD;JPY/USD</P1381>
The simple thing is to set it from the phone itself and use a custom template with these settings commented out. This way, the phone won't update those settings on reprovision.
I can confirm, this DOES work. But again, I have trouble with custom templates.
1> they don't like applying over SBCs. I was able to force it, but I had to add the sip account to the phone manually, reboot and THEN it would provision correctly... kind of frustrating that, but it's a seperate issue to this.
2> custom templates appear in red in the phones section... which is pretty dang frustrating.

in researching this issue, I think it's grandstream with the issue and not so much 3cx... as I said, the weather option isnt linked to the timezone with is correct... that means the phone is gathering this info from something OTHER than the switch...
 
Heres the template options in question:

Code:
<!--############################################################################# -->
    <!--#  Settings/Web Service -->
    <!--############################################################################# -->
    <!-- Weather Update -->

    <!-- Use Auto Location Service. 0 - No, 1 - Yes. Default is 1 -->
    <!-- Number: 0, 1 -->
    <!-- Mandatory -->
    <P8338>1</P8338>

    <!-- Enable weather update. 0 - No, 1 - Yes. Default is 1 -->
    <!-- Number: 0, 1 -->
    <!-- Mandatory -->
    <P1402>1</P1402>

    <!-- City Code -->
    <!-- 0 - Self-Defined City Code, 1 - Automatic. Default is 1 -->
    <!-- Number: 0, 1 -->
    <!-- Mandatory -->
    <P1405>0</P1405>

    <!-- Self-Defined City Code -->
    <!-- String -->
    <P1377>[citycode]</P1377>

    <!-- Update Interval (in minutes). Default is 15 -->
    <!-- Number: 5 - 360 -->
    <!-- Mandatory -->
    <P1378>15</P1378>

    <!-- Degree Unit. auto - Automatic, f - Fahrenheit, c - Celsius. Default is auto -->
    <!-- String: auto, f, c -->
    <!-- Mandatory -->
    <P1379>auto</P1379>

    <!-- Currency Update -->
    <!-- Enable Currency update. 0 - No, 1 - Yes. Default is 1 -->
    <!-- Number: 0, 1 -->
    <!-- Mandatory -->
    <P1404>1</P1404>

    <!-- Currency Code -->
    <!-- String -->
    <!-- Mandatory -->
    <P1381>EUR/USD;GBP/USD;CAD/USD;AUD/USD;CNY/USD;JPY/USD</P1381>

I can confirm, this DOES work. But again, I have trouble with custom templates.
1> they don't like applying over SBCs. I was able to force it, but I had to add the sip account to the phone manually, reboot and THEN it would provision correctly... kind of frustrating that, but it's a seperate issue to this.
2> custom templates appear in red in the phones section... which is pretty dang frustrating.

in researching this issue, I think it's grandstream with the issue and not so much 3cx... as I said, the weather option isnt linked to the timezone with is correct... that means the phone is gathering this info from something OTHER than the switch...
Issue #1 is probably for another reason. I use 4 custom templates over SBC and it all works great.

Issue #2 I agree 100%. It's just annoying.

Grandstream fixed the "issue" a few firmwares ago but it was never really fixed. I still have to use custom templates to either not provision those settings or to set them to something else. Annoying but no choice. The weather is based off the public IP of the phone, but it's never good.
 
Issue #1 is probably for another reason. I use 4 custom templates over SBC and it all works great.

Issue #2 I agree 100%. It's just annoying.

Grandstream fixed the "issue" a few firmwares ago but it was never really fixed. I still have to use custom templates to either not provision those settings or to set them to something else. Annoying but no choice. The weather is based off the public IP of the phone, but it's never good.

You know? it would be nice if we could modify the stock templates, or if 3cx would at least change them when crap like this happens... if they just changed the template to set the city code to "self defined" and comment out the actual city code (so it doesn't change on config pushes) then this all would be moot!

Sure I gotta go through and change a bunch of city codes on the phones by hand, but frankly it's a service 3CX doesn't support internally anyway!
 
In my opinion, (for what it's worth) something like weather, or any other customizable "web service", should really be the responsibility of the end user to set and change, from the phones menu, as they see fit, not something that is locked into the set by the template.
 
Last edited:
  • Like
Reactions: Evolute IT
On the phones not getting configs over SBC -
  1. Is the provisioning tab set to '3cx SBC'?
  2. Do you see an RPS command go out when you save the extension in the activity log?

If #2 is not happening, then it won't get the template. And simply setting the credentials manually will not get the template - as that is done under Maintenance tab - Upgrade - Config section.
 
  • Like
Reactions: Evolute IT
On the phones not getting configs over SBC -
  1. Is the provisioning tab set to '3cx SBC'?

Yes.

  1. Do you see an RPS command go out when you save the extension in the activity log?
If #2 is not happening, then it won't get the template.

I do not see an RPS command in the activity log, so I assume this is the issue...

...simply setting the credentials manually will not get the template - as that is done under Maintenance tab - Upgrade - Config section.

but it does... Basically, when I setup a new phone behind an SBC, I have to assign the phone to an extension, then on the phone I have to set the sip credentials for account #1. then reboot the phone. as soon as the phone comes back up, it changes from "new" in phones (in the admin console) to a normally provisioned phone.

from here I can delete the phone, then add it again under the extension using the phones Mac and custom template, but the phone settings, blf, location, or logo (thanks again ;D) will never update. HOWEVER! if I leave the phone on the stock template, the blf, and logo info WILL update normally, but the location is still messed up--again, not a 3cx problem except that I wish the stock template would offer the option to manually set the location, or maybe not set it at all so I can set it on the phone.
 
Status
Not open for further replies.

Forum statistics

Threads
111,934
Messages
589,818
Members
164,811
Latest member
aurorasigntrtechitnet