Solved Custom template for line coverage 99 percent functional what's different?

Status
Not open for further replies.

vvoice

Gold Partner
Basic Certified
Joined
Mar 27, 2017
Messages
27
Reaction score
4
I'm pretty good at setting up custom templates and have detailed documentation on how to set second line coverage (like for a secretary to have the boss's line on his phone).
Today I'm doing this on a T46S firmware 66.83.055 on the latest 3CX 15.5.15502.6.
The second account registers on the phone, it can receive calls on the second account, everything is fine EXCEPT I can't get the line button to appear from the template. I can jump onto the phone's gui and add the line button manually, and then it does everything it's supposed to.
But I need to automate button placement from the template. Wondering if there's something different about this combination of phone and versions?

Steps taken:
Configured all the lines required to use a custom template:

<model ua="SIP-T46S" defaultlogo="yealinkt46.png" logowidth="400" logoheight="272" logobitdepth="24">Yealink T46S-yealinkt4x_custom_coverage</model>
<model name="Yealink T46S-yealinkt4x_custom_coverage" filename="y100000000028.cfg" />
.
....etc...
.
.
.
account.2.auth_name = 100
account.2.password = Gsj44rTs9A
account.2.user_name = 100
account.2.enable = 1
account.2.sip_server.1.address = %%pbx_ip%%
account.2.sip_server.1.port = %%param::sipport%%
voice_mail.number.2 = %%vm_number%%
account.2.subscribe_mwi = 0
account.2.subscribe_mwi_to_vm = 0
account.1.display_mwi.enable = 0
account.2.display_mwi.enable = 0
account.2.ringtone.ring_type = Ring5.wav

{IF ua=SIP-T29G,SIP-T46G,SIP-T46S,SIP-T54S}
.
.
.
.
#Configure Line Key5
{IF blf5}
linekey.5.line = 2
linekey.5.value = %%type%%
linekey.5.pickup_value = *20*
linekey.5.type = "%%DKtype%%
linekey.5.label = "Boss Coverage"
linekey.5.extension = 100
{ELSE}
linekey.5.type = 0
{ENDIF}

Fresh set of eyes or any ideas appreciated. As I said, call handling works but the button won't come up from the template.
 
So the easiest thing to do is to pull the config from 3CX then manually configure it and dump the config from the phone to compare
 
Yes thanks for the tip but I’ve been there. Trying to reverse engineer the manually defined button settings (via the phone web interface). Have not been successful in getting the template to push them.
 
You have to take out the "if" "else" and "endif" statements from the BLF portion for your custom config file to work properly since you are manually configuring it and don't want to depend on blf5 existing in the 3cx management console for that phone.

Also you have to manually configure all the linekey.5. values.

As with what cobaltit said, simplest to manually configure the blf key, then from the yealink phone web gui do an export config to a text file and review what it shows for blf5.
 
Removing the if/else/endif helped. Thank you. The other part of the problem was more difficult to see - it seems there were some hidden characters, maybe tabs or line feeds I'm not sure, that were interfering with some settings. I found I had to re-key some sections in order to get the phone to recognize them. Thanks again to those who helped.
 
Glad to see the issue has been resolved and thank you for updating the thread with your solution
 
Status
Not open for further replies.