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.

Configuring busy lamp fields in custom phone template

Discussion in '3CX Phone System - General' started by splicer12, Aug 19, 2009.

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

    Joined:
    Aug 19, 2009
    Messages:
    1
    Likes Received:
    0
    Good afternoon!

    I have been setting up a phone system with 3CX Pro and a mix of Cisco 7940/7960 phones. So far the process has run smoothly, and I have even set up a phone template for the 7960 phones allowing 3cx to provision them successfully.

    What I would like to do is set up a second and third line on some of the 7960 phones. I understand that the template does not support separate authentication or names for additional lines, but I was hoping that if I made the authentication ID and password the same for both lines (simply changing extention and SIP ID) I could bypass that problem. That way, I could simply add the second extension in the BLF list for the primary extension and have it map both extensions to one phone. However, I have run into the following snag: when I try to update the provisioning for the primary extension, it gives me an "Unknown variable %%blf1%% in template" error. Below is a copy of my phone template. What am I doing wrong?
    Code:
    <?xml version="1.0"?>
    <doc xmlns:tcx="http://www.3cx.com">
      <header>
        <type>phone-template</type>
        <version>12.8</version>
        <time>2009-08-17 13:30:00</time>
        <name>Cisco 7960G</name>
        <url>http://www.cisco.com</url>
        <description>Cisco 7960G IP Phone</description>
      </header>
      <data>
        <device>
          <type>phone</type>
      
    	    <!-- Friendly Name -->
          <field name="Name">Cisco 7960G</field>
    	  
      <deviceconfig filename="SIP%%mac_address%%.cnf">
    <![CDATA[
    
    ##########################################################
    # SIP Phone.cnf
    ##########################################################
    # Phone settings
    phone_label: "%%extension_first_name%% "
    # Line 1 Settings
    line1_name: "%%extension_number%%"                     				; Line 1 Extension\User ID
    line1_displayname: "%%extension_first_name%% %%extension_last_name%%"           ; Line 1 Display Name
    line1_shortname: "Line 1"							; Line 1 Short Name
    line1_authname: "%%extension_auth_id%%"         				; Line 1 Registration Authentication
    line1_password: "%%extension_auth_pw%%"         				; Line 1 Registration Password
    proxy1_address: %%pbx_ip%%
    proxy1_port: 5060
    # Line 2 Settings
    {IF blf1}
    line2_name: "%%blf1%%"                     					; Line 2 Extension\User ID
    line2_displayname: "%%extension_first_name%% %%extension_last_name%%"           ; Line 2 Display Name
    line2_shortname: "Line 2"							; Line 2 Short Name
    line2_authname: "%%blf1%%"         						; Line 2 Registration Authentication
    line2_password: "%%extension_auth_pw%%"         				; Line 2 Registration Password
    {ELSE}
    line2_name: ""                     						; Line 2 Extension\User ID
    line2_displayname: ""         							; Line 2 Display Name
    line2_shortname: ""								; Line 2 Short Name
    line2_authname: ""         							; Line 2 Registration Authentication
    line2_password: ""     				    				; Line 2 Registration Password
    {ENDIF}
    proxy2_address: %%pbx_ip%%
    proxy2_port: 5060
    # Line 3 Settings
    {IF blf2}
    line3_name: "%%blf2%%"                          				; Line 3 Extension\User ID
    line3_displayname: "%%extension_first_name%% %%extension_last_name%%"           ; Line 3 Display Name
    line3_shortname: "Line 3"							; Line 3 Short Name
    line3_authname: "%%blf2%%"         						; Line 3 Registration Authentication
    line3_password: "%%extension_auth_pw%%"         				; Line 3 Registration Password
    {ELSE}
    line3_name: ""                     						; Line 3 Extension\User ID
    line3_displayname: ""         							; Line 3 Display Name
    line3_shortname: ""								; Line 3 Short Name
    line3_authname: ""         							; Line 3 Registration Authentication
    line3_password: ""     				    				; Line 3 Registration Password
    {ENDIF}
    proxy3_address: %%pbx_ip%%
    proxy3_port: 5060
    # Line 4 Settings
    line4_name: "" 							                ; Line 4 Extension\User ID
    line4_displayname: ""           						; Line 4 Display Name
    line4_shortname: "Line 4"							; Line 4 Short Name
    line4_authname: ""         							; Line 4 Registration Authentication
    line4_password: ""         							; Line 4 Registration Password
    proxy4_address: %%pbx_ip%%
    proxy4_port: 5060
    # Line 5 Settings
    line5_name: ""                     						; Line 5 Extension\User ID
    line5_displayname: ""           						; Line 5 Display Name
    line5_shortname: "Line 5"							; Line 5 Short Name
    line5_authname: ""         							; Line 5 Registration Authentication
    line5_password: ""         							; Line 5 Registration Password
    proxy5_address: %%pbx_ip%%
    proxy5_port: 5060
    # Line 6 Settings
    line6_name: ""                          					; Line 6 Extension\User ID
    line6_displayname: ""                   					; Line 6 Display Name
    line6_authname: ""         							; Line 6 Registration Authentication
    line6_password: ""         							; Line 6 Registration Password
    proxy6_address: %%pbx_ip%%
    proxy6_port: 5060
    ##########################################################
    
    ]]>
       </deviceconfig>
    
       </device>
    </data>   
    </doc>
     
Thread Status:
Not open for further replies.