Grandstream template error?

Status
Not open for further replies.

saint_

Forum User
Advanced Certified
Joined
Aug 21, 2018
Messages
219
Reaction score
26
Hi all,

In our test bench , we noticed that the Grandstream phones would not lower the LCD backlick if a call was missed.
I went ahead and change the feature in the phone GUI, but of course after a reboot, the default template got re-uploaded from 3CX.
I checked in the GrandStream template, and found

<!-- Disable Missed Call Backlight. 0 - No, 1 - Yes. Default is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
<P351>%%misscallblk%%</P351>


In my world, when a value is written like this (in this case in between '%%'), it means that the value is dynamic and read from some other place.
In this case, probably from the Phone provisioning option page. The issue is that this option (Disable missed call backlight) is nowhere to be found in the provisioning page.
Therefore, I went and created a new template, and forced the value to 1.

My question -> In 3CX, when a template variable is in between %% , doesn't it mean that it reads the conf from the 3CX WWW interface ?

Thank you all.
 
  • Like
Reactions: cobaltit
Technically it means it reads it from the database, and the web ui is just where you can change the DB parameters. But otherwise it looks like you are spot on your assessment! I'd be curious whether that is actually a field in the database or it's just a null value.
 
I found extension settings in the database is under the table "extension", column pv_settings
This parameter is nowhere to be listed.

mr Technical Support, when you read this, can you please raise a bug about this template ?
Thanks :)
 
Please don't modify your database, just build your configuration link and download your cfgXXXXXXXXX.xml file to see what we actually provision:

http://10.10.0.1:5000/provisioning/randomID/cfgMACADDRESS.xml

Here is a sample from what my GXP2140 on P351

Code:
<!--
Disable Missed Call Backlight. 0 - No, 1 - Yes. Default is 0
-->
<!--  Number: 0, 1  -->
<!--  Mandatory  -->
<P351>0</P351>

As you see, we provision the default option of 0 that the manufacturer has. If you must absolutely change this you can create a custom template, but I would not recommend this, it affects support eligibility and updates of templates must be done manually in the future by you.
 
Hi @JohnS_3CX
No worries, I am not changing anything in the database.
I should have tried by calling the XML URL directly, I see it is by default at 0.

Why is the value setup as <P351>%%misscallblk%%</P351> in the grandstream default template though? I just want to understand when %%XXX%% is used as this would tell me it's a dynamic value that can be change in the UI somewhere.

If it is 0 by default, why is the value not 0 in the default template, as many other values are ?

Thank you
 
Not exactly :) When you see a variable it does not necessarily mean that you can change that specific thing in the UI. To further explain, the reason that we use it as a variable is because we provide the general option to have the backlight "Always Off" under all conditions.

In that case, we need a way to set the value to 1 so the backlight will always be off. This is visible in the rest of the template, if you search for misscallblk to see where exactly we use the specific variable.
 
  • Like
Reactions: Evolute IT
Understood. Thank you for the explanation.
Nevertheless there must be a bug in the binary, because even after factory reset, and loading a new home made template with the option setup to 1, the GXP2135 won't lower the backlight, while the GXP2170 will.

Thank you for your input about the variables.
 
Understood. Thank you for the explanation.
Nevertheless there must be a bug in the binary, because even after factory reset, and loading a new home made template with the option setup to 1, the GXP2135 won't lower the backlight, while the GXP2170 will.

Thank you for your input about the variables.

I would open a ticket with Grandstream concerning that. It might be a firmware bug.
 
Yes, will do.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,932
Messages
589,805
Members
164,804
Latest member
fcentral