• V20: 3CX Re-engineered. Get V20 for increased security, better call management, a new admin console and Windows softphone. Learn More.

BLF in templatefile

Status
Not open for further replies.

jochanan

Platinum Partner
Joined
May 12, 2011
Messages
13
Reaction score
1
Hello,

We are trying 3CX provisioning in combination with Panasonic KX-UT136. Almost everything is working (provisioning to the phone as well from 3cx) except of try setting blf from 3CX.
When I use the code "%%blf1%%" in the template of the Panasonic, I'm getting an error in 3CX as shown in the attachment.

The same code is used in other templates like Cisco and works fine. Even using code %%extension_number%% in the same option is working fine.

The code as used in a Cisco template for a BLF button:
Code:
{IF blf2}
<Extension_4_ group="Phone/Line_Key_4">Disabled</Extension_4_>
<Share_Call_Appearance_4_ group="Phone/Line_Key_4">private</Share_Call_Appearance_4_>
<Extended_Function_4_ group="Phone/Line_Key_4">%%value%%sub=%%blf2%%@%%pbx_ip%%:%%param::sipport%%;nme=%%blf2%%</Extended_Function_4_>
<Short_Name_4_ group="Phone/Line_Key_4">%%blffirstname2%% %%blflastname2%%</Short_Name_4_>
{ELSE}
<Extension_4_ group="Phone/Line_Key_4">1</Extension_4_>
<Share_Call_Appearance_4_ group="Phone/Line_Key_4">private</Share_Call_Appearance_4_>
<Extended_Function_4_ group="Phone/Line_Key_4"></Extended_Function_4_>
<Short_Name_4_ group="Phone/Line_Key_4">%%extension_auth_id%%</Short_Name_4_>
{ENDIF}

The code for the Panasonic KX-UT136 template for a BLF button:
Code:
<Button ID="1">
	<FacilityAction FLEX_BUTTON_FACILITY_ACT1="X_PANASONIC_IPTEL_CONTACT" />
	<FacilityActionArgument FLEX_BUTTON_FACILITY_ARG1="%%blf1%%" />
	<QuickDialNumber FLEX_BUTTON_QUICK_DIAL1="%%extension_number%%" />
	<ButtonMessage FLEX_BUTTON_LABEL1="%%extension_number%%" />
</Button>

Default code in the template for the button of the Panasonic:
Code:
<Button ID="1">
	<FacilityAction FLEX_BUTTON_FACILITY_ACT1="X_PANASONIC_IPTEL_CONTACT" />
	<FacilityActionArgument FLEX_BUTTON_FACILITY_ARG1="1" />
	<QuickDialNumber FLEX_BUTTON_QUICK_DIAL1="" />
	<ButtonMessage FLEX_BUTTON_LABEL1="" />
</Button>

Hope you know what the problem is.
 

Attachments

  • 3CX-blf.png
    3CX-blf.png
    4.4 KB · Views: 706
OK, we found out what the problem was:
3cx looks for the if statement "{IF blfX}". If blf was filled by 3cx, then code1 will be executed, else the button will be used as default line:
Code 1:
Code:
{IF blf1}
<Button ID="1">
   <FacilityAction FLEX_BUTTON_FACILITY_ACT1="X_PANASONIC_IPTEL_CONTACT" />
   <FacilityActionArgument FLEX_BUTTON_FACILITY_ARG1="%%blf1%%" />
   <QuickDialNumber FLEX_BUTTON_QUICK_DIAL1="%%extension_number%%" />
   <ButtonMessage FLEX_BUTTON_LABEL1="%%extension_number%%" />
</Button>
{ELSE}
...
{ENDIF}

This topic can be closed.
 
Status
Not open for further replies.
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.