03-29-2017, 12:27 PM
Hello,
The other day, I wondered how I could detect or more generally manage expansion modules (being able to track with module is connected to a given phone) like EXP-20.
1. More specifically, when a phone boots and asks for a config file through HTTP, it is sending in its HTTP request, some details about its hardware config.
If I'm not mistaken, it is not sending anything about the number, serial number or types of expansion modules connected to it.
Including such details would allow a provisioning server to generate a more appropriate config.
2. Looking at Action URL, I can't see anything related to an expansion module being plugged or unplugged from the phone.
3. Within phone config files, there is no conditional statement allowing sysadmins to adapt phone config to the number and types of expansion modules.
I was thinking of something like:
account.1.dtmf.type = 1
{% if expansion_module.count == 0 %}
linekey.5.type = 16
...
{% endif %}
{% if expansion_module.1.type == 'exp-20' %}
expansion_module.1.key.2.type = 16
...
{% endif %}
What do you think ?
Best regards
The other day, I wondered how I could detect or more generally manage expansion modules (being able to track with module is connected to a given phone) like EXP-20.
1. More specifically, when a phone boots and asks for a config file through HTTP, it is sending in its HTTP request, some details about its hardware config.
If I'm not mistaken, it is not sending anything about the number, serial number or types of expansion modules connected to it.
Including such details would allow a provisioning server to generate a more appropriate config.
2. Looking at Action URL, I can't see anything related to an expansion module being plugged or unplugged from the phone.
3. Within phone config files, there is no conditional statement allowing sysadmins to adapt phone config to the number and types of expansion modules.
I was thinking of something like:
account.1.dtmf.type = 1
{% if expansion_module.count == 0 %}
linekey.5.type = 16
...
{% endif %}
{% if expansion_module.1.type == 'exp-20' %}
expansion_module.1.key.2.type = 16
...
{% endif %}
What do you think ?
Best regards