- Joined
- Sep 28, 2011
- Messages
- 139
- Reaction score
- 6
OK, bare with me as this will be hard to explain...
What I'm trying to do is provision each and every phone in our company to utilize 2 separate extensions. However, Instead of creating a custom template for each and every phone, I would like to create a single template for all the phones and somehow utilize/modify the built in 3CX variables to populate the second extension.
For example, all the the phones/extensions are setup accordingly:
Phone 1
[E1] 112
[E2] 212
Phone 2
[E1] 119
[E2] 219
In the provisioning template, extension 1 is dynamically populated by this entry:
<Auth_ID_1_ group="Ext_1/Subscriber_Information">%%extension_auth_id%%</Auth_ID_1_>
Ideally, I would like modify the %%extension_auth_id%% variable to somehow use it for extension 2 also.
i.e.
<Auth_ID_2_ group="Ext_2/Subscriber_Information">(%%extension_auth_id%%)+100</Auth_ID_2_>
or
<Auth_ID_2_ group="Ext_2/Subscriber_Information">1 & RIGHT(2,%%extension_auth_id%%)</Auth_ID_2_>
Is it possible?
I'm not familiar with the 3CX scripting language, so I have no idea if it can handle basic mathematical functions or not.
What I'm trying to do is provision each and every phone in our company to utilize 2 separate extensions. However, Instead of creating a custom template for each and every phone, I would like to create a single template for all the phones and somehow utilize/modify the built in 3CX variables to populate the second extension.
For example, all the the phones/extensions are setup accordingly:
Phone 1
[E1] 112
[E2] 212
Phone 2
[E1] 119
[E2] 219
In the provisioning template, extension 1 is dynamically populated by this entry:
<Auth_ID_1_ group="Ext_1/Subscriber_Information">%%extension_auth_id%%</Auth_ID_1_>
Ideally, I would like modify the %%extension_auth_id%% variable to somehow use it for extension 2 also.
i.e.
<Auth_ID_2_ group="Ext_2/Subscriber_Information">(%%extension_auth_id%%)+100</Auth_ID_2_>
or
<Auth_ID_2_ group="Ext_2/Subscriber_Information">1 & RIGHT(2,%%extension_auth_id%%)</Auth_ID_2_>
Is it possible?
I'm not familiar with the 3CX scripting language, so I have no idea if it can handle basic mathematical functions or not.