Yealink Forums
Provisioning - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: General topics (/forumdisplay.php?fid=15)
+--- Thread: Provisioning (/showthread.php?tid=40970)



Provisioning - Chadsuperb - 06-30-2017 08:24 PM

When you provision a phone does it delete out all the user settings? Is there a way to update a template without deleting user settings?

Nevermind. I figured it out. I have to comment out lines I don't want provisioned. So my next question is what does the following do in the template because it is obviously always going to the Else statement and clearing out the settings.
{IF blf3}
linekey.5.line = %%Line%%
linekey.5.value = %%blf3%%
linekey.5.pickup_value = %%PickupValue%%
linekey.5.type = %%DKtype%%
linekey.5.label = %%blffirstname3%% %%blflastname3%%
linekey.5.extension = %%PickupValue%%
{ELSE}
linekey.5.type = 0
{ENDIF}


RE: Provisioning - Phonism - 07-05-2017 05:32 PM

(06-30-2017 08:24 PM)Chadsuperb Wrote:  When you provision a phone does it delete out all the user settings? Is there a way to update a template without deleting user settings?

Nevermind. I figured it out. I have to comment out lines I don't want provisioned. So my next question is what does the following do in the template because it is obviously always going to the Else statement and clearing out the settings.
{IF blf3}
linekey.5.line = %%Line%%
linekey.5.value = %%blf3%%
linekey.5.pickup_value = %%PickupValue%%
linekey.5.type = %%DKtype%%
linekey.5.label = %%blffirstname3%% %%blflastname3%%
linekey.5.extension = %%PickupValue%%
{ELSE}
linekey.5.type = 0
{ENDIF}

Interesting, I've never seen IF statements in a config file before.

It looks like IF THEN and ELSE statements are not valid. Take a look at this thread from 2014, someone else had the same issue with the template provided by 3CX. They resolved it by removing all IF THEN and ELSE statements.

http://forum.yealink.com/forum/showthread.php?mode=linear&tid=2573&pid=#pid

Hope this helps.

- Daniel @ Phonism


RE: Provisioning - complex1 - 07-05-2017 08:55 PM

(07-05-2017 05:32 PM)Phonism Wrote:  
(06-30-2017 08:24 PM)Chadsuperb Wrote:  When you provision a phone does it delete out all the user settings? Is there a way to update a template without deleting user settings?

Nevermind. I figured it out. I have to comment out lines I don't want provisioned. So my next question is what does the following do in the template because it is obviously always going to the Else statement and clearing out the settings.
{IF blf3}
linekey.5.line = %%Line%%
linekey.5.value = %%blf3%%
linekey.5.pickup_value = %%PickupValue%%
linekey.5.type = %%DKtype%%
linekey.5.label = %%blffirstname3%% %%blflastname3%%
linekey.5.extension = %%PickupValue%%
{ELSE}
linekey.5.type = 0
{ENDIF}

Interesting, I've never seen IF statements in a config file before.

It looks like IF THEN and ELSE statements are not valid. Take a look at this thread from 2014, someone else had the same issue with the template provided by 3CX. They resolved it by removing all IF THEN and ELSE statements.

http://forum.yealink.com/forum/showthread.php?mode=linear&tid=2573&pid=#pid

Hope this helps.

- Daniel @ Phonism

@Phonism,

I don’t know why you referring to a 3 years old thread, but the templates 3CX use today the command sequence IF, ELSE and ENDIF are still valid.
Please familiar yourself with these templates. Never too old to learn something. Wink
3CX templates... I use them daily.


RE: Provisioning - Chadsuperb - 07-06-2017 01:42 PM

(07-05-2017 08:55 PM)complex1 Wrote:  
(07-05-2017 05:32 PM)Phonism Wrote:  
(06-30-2017 08:24 PM)Chadsuperb Wrote:  When you provision a phone does it delete out all the user settings? Is there a way to update a template without deleting user settings?

Nevermind. I figured it out. I have to comment out lines I don't want provisioned. So my next question is what does the following do in the template because it is obviously always going to the Else statement and clearing out the settings.
{IF blf3}
linekey.5.line = %%Line%%
linekey.5.value = %%blf3%%
linekey.5.pickup_value = %%PickupValue%%
linekey.5.type = %%DKtype%%
linekey.5.label = %%blffirstname3%% %%blflastname3%%
linekey.5.extension = %%PickupValue%%
{ELSE}
linekey.5.type = 0
{ENDIF}

Interesting, I've never seen IF statements in a config file before.

It looks like IF THEN and ELSE statements are not valid. Take a look at this thread from 2014, someone else had the same issue with the template provided by 3CX. They resolved it by removing all IF THEN and ELSE statements.

http://forum.yealink.com/forum/showthread.php?mode=linear&tid=2573&pid=#pid

Hope this helps.

- Daniel @ Phonism

@Phonism,

I don’t know why you referring to a 3 years old thread, but the templates 3CX use today the command sequence IF, ELSE and ENDIF are still valid.
Please familiar yourself with these templates. Never too old to learn something. Wink
3CX templates... I use them daily.

Thanks for pointing out that it's an old thread and If statements are relevant. However, you did nothing to answer the question. What is if BLF? I thought it meant if a BLF was assigned use the programmed info if nothing then turn it off/NA. So what does blf check for and what does %% do?


RE: Provisioning - complex1 - 07-06-2017 03:37 PM

Please do not edit or modify the 3CX templates, except if you exactly know that you are doing. If not, leave them as default.

Here are some links to 3CX website where you can read about BLF key and how you can program them from 3CX PBX.
https://www.3cx.com/pbx/blf-function-keys/
https://www.3cx.com/docs/manual/extension-management/#h.6cmfwhvfhdo0

Keep in mind the 3CX templates are created and supported by 3CX and not by Yealink.
If you want to know how the template work, put your question at 3CX forums.

Hope this will help.