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.

SOLVED: Cisco Provision Template Question - BLF usage

Discussion in '3CX Phone System - General' started by hweams, Nov 17, 2011.

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

    Joined:
    Nov 9, 2011
    Messages:
    8
    Likes Received:
    0
    I'm relatively new to 3CX and have been trying to update our provisioning template for the Cisco phones we have (a mix of SPA504G and SPA509G). We are only using one extension on the phones and, currently, we are using the web-based configuration utility to set Line Keys 2-4 to monitor specific extensions, but showing the person's name rather than the extension number. In the template, I have been able to update the blf section toward the bottom to mimic this (see below), however, I can't figure out if it's possible to pull the First Name field from 'blf2' and above. In the example below, I would like to be able to replace the stock "BLF-%%blf5%%" with something like "%%blf5_user_first_name%%." Is this possible?

    Also, is there any documentation that lists what all of the "%%...%%" codes available for use in the templates?

    Code:
    {IF blf5}
    <Extension_6_ group="Phone/Line_Key_6">Disabled</Extension_6_>
    <Share_Call_Appearance_6_ group="Phone/Line_Key_6">private</Share_Call_Appearance_6_>
    <Extended_Function_6_ group="Phone/Line_Key_6">fnc=sd+blf+cp;sub=%%blf5%%@%%pbx_ip%%:%%param::sipport%%;nme=%%blf5%%</Extended_Function_6_>
    <Short_Name_6_ group="Phone/Line_Key_6">BLF-%%blf5%%</Short_Name_6_>
    {ELSE}
    ....
    {ENDIF}
    Thanks,
    Harry
     
  2. KilroyWasHere

    Joined:
    Mar 24, 2011
    Messages:
    24
    Likes Received:
    0
    Re: Cisco Provision Template Question - BLF usage

    Does this help?
    [From my Cisco provisioning template]

    {IF blf1}
    <Extension_3_ group="Phone/Line_Key_3">Disabled</Extension_3_>
    <Share_Call_Appearance_3_ group="Phone/Line_Key_3">private</Share_Call_Appearance_3_>
    <Extended_Function_3_ group="Phone/Line_Key_3">%%value%%sub=%%blf1%%@%%pbx_ip%%:%%param::sipport%%;nme=%%blf1%%</Extended_Function_3_>
    <Short_Name_3_ group="Phone/Line_Key_3">%%blffirstname1%% %%blflastname1%%</Short_Name_3_>
    {ELSE}
    <Extension_3_ group="Phone/Line_Key_3">1</Extension_3_>
    <Share_Call_Appearance_3_ group="Phone/Line_Key_3">private</Share_Call_Appearance_3_>
    <Extended_Function_3_ group="Phone/Line_Key_3"></Extended_Function_3_>
    <Short_Name_3_ group="Phone/Line_Key_3">%%extension_auth_id%%</Short_Name_3_>
    {ENDIF}
     
  3. hweams

    Joined:
    Nov 9, 2011
    Messages:
    8
    Likes Received:
    0
    SOLVED: Re: Cisco Provision Template Question - BLF usage

    Perfect! Thanks for the help!

    That feeds to the second part of the question: is there some reference stating what all of the templating variables are?
     
  4. nbailey

    nbailey Member

    Joined:
    Jan 31, 2011
    Messages:
    359
    Likes Received:
    0
    Re: SOLVED: Re: Cisco Provision Template Question - BLF usag


    Yes there are, the Variables are all in the templates. Or a good starting point is here:

     %%mac_address%% – mac address
     %%extension_number%% – extension no
     %%extension_auth_id%% – extension auth id
     %%extension_auth_pw%% – extension password
     %%extension_first_name%% – extension -Fisrt Name
     %%extension_last_name%% – ext Last Name
     %%pbx_ip%% – pbx ip
     %%pbx_http_port%% – is the http port
     %%vm_number%% – special menu(voice mail)
     %%pbx_sip_port%% – sip port
     %%blf{0}%% – where {0} is blf no
     %%blffirstname{0}%% – where {0} is blf no
     %%blflastname{0}%%” – where {0} is blf no
     %%blfno%% – blf no
     %%gateway_ip%% – ip of the gateway
     %%gateway_mask%% – gateway mask
     %%firmware%% – firmware file name
     %%line_int_num_%% and after under line the line number
     %%line_auth_id_%% and after under line the line no
     %%line_auth_pw_%% and after under line the line no
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.