This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // grab report from device(s) using dm_virtualip module | |
| $req = array( | |
| 'device_module' => 'dm_virtualip', | |
| 'function' => 'report', | |
| 'type' => 'loadbalancer', | |
| 'device' => $device, | |
| 'loadbalancer' => 'stingray.dev.voxel.net', | |
| 'virtualip' => '7925-4119-vserver', | |
| 'start' => $request['start'], | |
| 'end' => $request['end'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function device_is_voxserver_compat($dev, $allow_custom = false) | |
| { | |
| if($dev['devtype_group_id'] != VOXSERVERS_DEVICE_GROUP_ID) | |
| return false; | |
| if($allow_custom) | |
| return true; | |
| $dev_config_id = $dev['metadata']['voxserver_sellable_config']; | |
| //make sure $this->configs s initialize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * A soap _client_ for accessing other apis | |
| * | |
| */ | |
| namespace soap; | |
| class Soap extends \core\LibBase { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $result = $this->uber->call( | |
| 'device.module_call', | |
| array( | |
| 'device_id'=>$vip['device_id'], | |
| 'module_id'=>'virtualip', | |
| 'function'=>'edit', | |
| array( | |
| 'editclick'=>1, | |
| 'loadbalancer'=>$lb_server, | |
| 'vip'=>$vserver_name |
NewerOlder