3CX Windows Client Provisioning URL

Discussion in '3CX Phone System - General' started by telis, Apr 21, 2017.

Thread Status:
Not open for further replies.
  1. telis

    telis New Member

    Joined:
    Aug 13, 2007
    Messages:
    158
    Likes Received:
    23
    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?
     
  2. telis

    telis New Member

    Joined:
    Aug 13, 2007
    Messages:
    158
    Likes Received:
    23
  3. GiannosC_3CX

    GiannosC_3CX Guest

    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.
     
  4. telis

    telis New Member

    Joined:
    Aug 13, 2007
    Messages:
    158
    Likes Received:
    23
    So does V15 do things differently?
     
  5. telis

    telis New Member

    Joined:
    Aug 13, 2007
    Messages:
    158
    Likes Received:
    23
    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?
     
    #5 telis, Apr 25, 2017
    Last edited: Apr 25, 2017
  6. GiannosC_3CX

    GiannosC_3CX Guest

    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/)
     
  7. telis

    telis New Member

    Joined:
    Aug 13, 2007
    Messages:
    158
    Likes Received:
    23
    Yes, I know it's generated by the webserver on the GET request. I'll post this in the other forum.
     
Thread Status:
Not open for further replies.