Update device_edit.php
This commit is contained in:
@@ -626,14 +626,25 @@
|
|||||||
$mode = '4';
|
$mode = '4';
|
||||||
}
|
}
|
||||||
|
|
||||||
//build the xml
|
//get the device line settings
|
||||||
$row = $device_lines[0];
|
$row = $device_lines[0];
|
||||||
|
|
||||||
|
//set the outbound proxy settings
|
||||||
|
if (strlen($row['outbound_proxy_primary']) == 0) {
|
||||||
|
$outbound_proxy_primary = $row['server_address'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$outbound_proxy_primary = $row['outbound_proxy_primary'];
|
||||||
|
}
|
||||||
|
$outbound_proxy_secondary = $row['outbound_proxy_secondary'];
|
||||||
|
|
||||||
|
//build the xml
|
||||||
$xml = "<?xml version='1.0' encoding='utf-8'?>";
|
$xml = "<?xml version='1.0' encoding='utf-8'?>";
|
||||||
$xml .= "<AccountConfig version='1'>";
|
$xml .= "<AccountConfig version='1'>";
|
||||||
$xml .= "<Account>";
|
$xml .= "<Account>";
|
||||||
$xml .= "<RegisterServer>".$row['server_address']."</RegisterServer>";
|
$xml .= "<RegisterServer>".$row['server_address']."</RegisterServer>";
|
||||||
$xml .= "<OutboundServer>".$row['outbound_proxy_primary'].":".$row['sip_port']."</OutboundServer>";
|
$xml .= "<OutboundServer>".$outbound_proxy_primary.":".$row['sip_port']."</OutboundServer>";
|
||||||
$xml .= "<SecOutboundServer>".$row['outbound_proxy_secondary'].":".$row['sip_port']."</SecOutboundServer>";
|
$xml .= "<SecOutboundServer>".$outbound_proxy_secondary.":".$row['sip_port']."</SecOutboundServer>";
|
||||||
$xml .= "<UserID>".$row['user_id']."</UserID>";
|
$xml .= "<UserID>".$row['user_id']."</UserID>";
|
||||||
$xml .= "<AuthID>".$row['auth_id']."</AuthID>";
|
$xml .= "<AuthID>".$row['auth_id']."</AuthID>";
|
||||||
$xml .= "<AuthPass>".$row['password']."</AuthPass>";
|
$xml .= "<AuthPass>".$row['password']."</AuthPass>";
|
||||||
|
|||||||
Reference in New Issue
Block a user