Yealink Forums
Updating T46 AutoProvisioning Template for Expansion Module - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: Auto Provisioning (/forumdisplay.php?fid=14)
+--- Thread: Updating T46 AutoProvisioning Template for Expansion Module (/showthread.php?tid=41106)



Updating T46 AutoProvisioning Template for Expansion Module - fcbayern - 08-31-2017 06:53 PM

Hi Everyone,

I am looking to update my auto provisioning template so I can use the EXP40 sidecar with my T46S.

The phone is currently running firmware 66.81.0.25.

Here is what we are currently using to distribute to the line keys

Code:
% endfor %}
{% endif %}
{% endfor %}
{% for line_key in line_keys %}
{% if line_key.line_key_type_id == 2 %}
linekey.{{ line_key_index }}.type = 16
linekey.{{ line_key_index }}.line = 1
linekey.{{ line_key_index }}.value = {{ line_key.sip_username }}
linekey.{{ line_key_index }}.label = {{ line_key.label }}
{% set line_key_index = line_key_index+1 %}

{% elseif line_key.line_key_type_id == 3 %}
linekey.{{ line_key_index }}.type = 13
linekey.{{ line_key_index }}.line = 1
linekey.{{ line_key_index }}.value = {{ line_key.data }}
linekey.{{ line_key_index }}.label = {{ line_key.label }}
{% set line_key_index = line_key_index+1 %}

{% elseif line_key.line_key_type_id == 4 %}
linekey.{{ line_key_index }}.type = 10
linekey.{{ line_key_index }}.line = 1
linekey.{{ line_key_index }}.value = {{ line_key.data }}
linekey.{{ line_key_index }}.label = {{ line_key.label }}
{% set line_key_index = line_key_index+1 %}

{% elseif line_key.line_key_type_id == 5 or line_key.line_key_type_id == 6 %}
linekey.{{ line_key_index }}.type = 16
linekey.{{ line_key_index }}.line = 1
linekey.{{ line_key_index }}.value = {{ line_key.extension_number }}
linekey.{{ line_key_index }}.label = {{ line_key.label }}
{% set line_key_index = line_key_index+1 %}

{% endif %}
{% endfor %}

I would think somehow I could add an if else statement so if more than 10 keys are used the it will use expansion_module.X.key.Y.type =

Does anyone have any ideas that may be helpful? I am spinning my wheels trying to get this to work.

Thank you


RE: Updating T46 AutoProvisioning Template for Expansion Module - Lucia_Yealink - 09-01-2017 08:14 AM

Hi Fcbayern,

For the PHP scripts, it should be configure in your server side.
Suggest to contact your PHP engineer or your IT technician to configure it for you.
I think it should be similar with the code to distribute to the line keys.

Best Regards
Lucia