Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

BLF in templatefile

Discussion in '3CX Phone System - General' started by jochanan, Mar 15, 2012.

Thread Status:
Not open for further replies.
  1. jochanan

    Joined:
    May 12, 2011
    Messages:
    12
    Likes Received:
    0
    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.
     

    Attached Files:

  2. jochanan

    Joined:
    May 12, 2011
    Messages:
    12
    Likes Received:
    0
    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.
     
Thread Status:
Not open for further replies.