diff --git a/admin.php b/admin.php
index 8eef8b3..226cd7b 100644
--- a/admin.php
+++ b/admin.php
@@ -92,6 +92,18 @@ function fixbutton(array $params, $label="update") {
$out .= "
";
}
}
+ if($label == 'update'){
+ if($params['fix']){
+ if($params['fix'] == 'inbound_webhook_url'){
+ $params['fix'] = 'register_' . $params['fix'];
+ }
+ $label = explode('_',$params['fix']);
+ if($params['fix'] == 'register_inbound_webhook_url'){
+ $label[3] ='';
+ }
+ $label = implode(' ', $label);
+ }
+ }
$out .= "";
$out .= "";
return $out;
@@ -157,9 +169,8 @@ function fixbutton(array $params, $label="update") {
if($inboundRouting->callbackUrl != $desiredWebhookURL) {
$problems[] = "webhook URL is wrong: ".$inboundRouting->callbackUrl."
should be ".$desiredWebhookURL."
";
}
-
- if ($inboundRouting->clientSecret != $_SESSION['webtexting']['acceleratenetworks_inbound_token']['text']) {
- $problems[] = "client secret incorrect";
+ if($inboundRouting->clientSecret != $_SESSION['webtexting']['acceleratenetworks_inbound_token']['text']){
+ $problems[] = "client secret incorrect. FusionPBX Client Secret: ". $inboundRouting->clientSecret . " FusionPBX Session Secret: ".$_SESSION['webtexting']['acceleratenetworks_inbound_token']['text'];
}
if ($inboundRouting->asDialed != $sms_number) {