mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix Config URLs for unconfigured Grandstream Phones
Fix config URL so that the phones don't get an invalid URL when $domain_name is unset. They would previously receive `/app/provision` with no domain/ip included, which makes the phone unable to provision again once they have been added to the Devices page without manually re-setting the config URL or factory defaulting the device. The alternative solution is that the PHP code could always ensure that the $domain_name variable is set even if the device doesn't exist. My suggestion is to see if it can be set to the same domain/IP as the original provision request from this unconfigured device
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -2921,7 +2921,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -4168,7 +4168,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -690,7 +690,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
<!-- HTTP/HTTPS User Name -->
|
||||
|
||||
@@ -743,7 +743,7 @@ E0Fw0O5Kx31JPa+aSBLDMZAG1+SZ/zfxRYQe7VH8p1g=
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
<!-- Config HTTP/HTTPS User Name -->
|
||||
|
||||
@@ -2451,7 +2451,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -2545,7 +2545,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -3277,7 +3277,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -4483,7 +4483,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -5430,7 +5430,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -6381,7 +6381,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -5746,7 +5746,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -940,7 +940,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -814,7 +814,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -1186,7 +1186,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -1186,7 +1186,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -1569,7 +1569,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -1376,7 +1376,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -2073,7 +2073,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
<!-- Config HTTP/HTTPS User Name -->
|
||||
|
||||
@@ -6039,7 +6039,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -2809,7 +2809,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -1925,7 +1925,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -6305,7 +6305,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -6305,7 +6305,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -6305,7 +6305,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -6305,7 +6305,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -6305,7 +6305,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -2714,7 +2714,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -3016,7 +3016,7 @@ Account 5 Codec Settings
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -3226,7 +3226,7 @@ Account 5 Codec Settings
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -1385,7 +1385,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -1268,7 +1268,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -767,7 +767,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -4820,7 +4820,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -3225,7 +3225,7 @@ Account 5 Codec Settings
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -580,7 +580,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -2235,7 +2235,7 @@
|
||||
<P237></P237>
|
||||
{elseif isset($grandstream_config_server_path)}
|
||||
<P237>{$grandstream_config_server_path}</P237>
|
||||
{else}
|
||||
{elseif isset($domain_name)}
|
||||
<P237>{$domain_name}{$project_path}/app/provision</P237>
|
||||
{/if}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user