• V20: 3CX Re-engineered. Get V20 for increased security, better call management, a new admin console and Windows softphone. Learn More.

3CX Windows Client Provisioning URL

Status
Not open for further replies.

telis

Bronze Partner
Advanced Certified
Joined
Aug 13, 2007
Messages
217
Reaction score
57
Hi,

For various reasons I won't go into I need to be able to generate the Provisioning URL for the 3CX Windows Client given an extension number. In the XML file this looks something like:-

<ProvLink>https://mycompany.3cx.co.uk:5001/provisioning/163dac3462/TcxProvFiles/3cxProv_123456789012_575.xml</ProvLink>

What is the number 123456789012 and how can I generate it? It seems to be often the same number but not always?
 
Hi telis,

Kindly note that this is the xml file that the system generated on V14 Phone system. The first length of this file indicated that is 3cxProvision file and followed by "_" , where the system adds the date that of the time the file was generated i.e. Year-month-date-hour-minuets-seconds_extension number.
 
So does V15 do things differently?
 
The issue is I don't when an extension was generated so I can create this URL programatically. I have found that if I use an xlst on the xml backup file I can extract the URLs. It's pretty clunky (see below).

Code:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
        <Extensions>
            <xsl:for-each select="PhoneSystem/Tenants/Tenant/DN/Extension">
                <xsl:sort select="Number"/>
                <Extension>
                    <Number>
                        <xsl:value-of select="Number"/>
                    </Number>
                    <FirstName>
                        <xsl:value-of select="FirstName"/>
                    </FirstName>
                    <LastName>
                        <xsl:value-of select="LastName"/>
                    </LastName>
                    <xsl:for-each select="Properties/DNProperty[Description='3cx provisioning file']">
                        <provlink>https://XXX.XXX.uk:5001/provisioning/xxxxxxxx/TcxProvFiles/<xsl:value-of select="Value"/>
                        </provlink>
                    </xsl:for-each>
                </Extension>
            </xsl:for-each>
        </Extensions>
    </xsl:template>
</xsl:stylesheet>

Is there any way to use the API to get the URLs instead?
 
Last edited:
Hi telis,

Kindly note that on V15 the xml provisioning file is generated on demand and is not physically located on the server for security reasons. Also you can post the above request in our "Application Integration and Automation" section of this forum so that other users may assist you to implement this. (https://www.3cx.com/community/forums/application-integration-and-automation.27/)
 
Yes, I know it's generated by the webserver on the GET request. I'll post this in the other forum.
 
Status
Not open for further replies.

Getting Started - Admin

Latest Posts

Forum statistics

Threads
141,635
Messages
749,002
Members
144,754
Latest member
deanhbs
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.