SOLVED: Cisco Provision Template Question - BLF usage

Status
Not open for further replies.

hweams

Joined
Nov 9, 2011
Messages
8
Reaction score
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
 
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}
 
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?
 
Re: SOLVED: Re: Cisco Provision Template Question - BLF usag

hweams said:
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?


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
 
Status
Not open for further replies.