Yealink Forums

Full Version: Provisioning
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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}
(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/showthrea...3&pid=#pid

Hope this helps.

- Daniel @ Phonism
(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/showthrea...3&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.
(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/showthrea...3&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?
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/extensio...mfwhvfhdo0

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.
Reference URL's