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