Reply To: Endpoint Manager Custom Options

VitalPBX Community Support Wish List Endpoint Manager Custom Options Reply To: Endpoint Manager Custom Options

    code
    Participant
    Up
    1
    Down
    I created a quick workaround to parse the XML file generated by your provisioning script and search and replace that p code.

     

    Here is a copy to help anyone else.

    created new dir in wwwroot of vital (configtest) and point dhcp opt 66 to that dir

    in that dir created two files

    index.php

    <!--?php header('Content-type: text/plain'); $oldpage = file_get_contents("http://{your ip addr}/xepm-provision/" . basename($_SERVER['REQUEST_URI'])); echo (str_replace("0","1",$oldpage)); ?>

     

    then .htaccess to redirect all requests to this dir to the index file.

    Options +FollowSymLinks -MultiViews

    RewriteEngine On
    RewriteBase /configtest/

    RewriteRule index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [L]

     

    feel free to modify to your needs.

    Currenty just enables the auto answer by call info on grandstreams (tested with 2160/40)

     

    • This reply was modified 2 months ago by code.
    • This reply was modified 2 months ago by code.
    0