使用 configure pool 命令配置 SIP 池。
configure pool 命令接受以下字段:
default_server_pool – 5060
lb_algorithm_hash – LB_ALGORITHM_CONSISTENT_HASH_CALLID
health_monitor_ref – 在上一节中配置的运行状况监控器 System-Sip-Custom
服务器
ip
以下是配置 SIP 特定池的 CLI 示例:
[admin:10-X-X-X]: > configure pool sip_pool [admin:10-X-X-X]: pool> default_server_port 5060 [admin:10-X-X-X]: pool> servers New object being created [admin:10-X-X-X]: pool:servers> ip 10.2.2.2 [admin:10-X-X-X]: pool:servers> exit [admin:10-X-X-X]: pool> lb_algorithm LB_ALGORITHM_CONSISTENT_HASH [admin:10-X-X-X]: pool> lb_algorithm_hash LB_ALGORITHM_CONSISTENT_HASH_CALLID [admin:10-X-X-X]: pool> health_monitor_refs System-Sip-custom [admin:10-X-X-X]: pool> save
+---------------------------------------+-------------------------------------------+ | Field | Value | +---------------------------------------+-------------------------------------------+ | uuid | pool-c9786d78-66a2-4d89-9218-7140c009c68d | | name | sip_pool | | default_server_port | 5060 | | graceful_disable_timeout | 1 min | | connection_ramp_duration | 10 min | | max_concurrent_connections_per_server | 0 | | health_monitor_refs[1] | System-Sip_Custom | | servers[1] | | | ip | 10.2.2.2 | | hostname | 10.2.2.2 | | enabled | True | | ratio | 1 | | verify_network | False | | discovered_networks[1] | | | network_ref | NA | | subnet[1] | 10.140.12.1/32 | | resolve_server_by_dns | False | | static | False | | rewrite_host_header | False | | server_count | 1 | | lb_algorithm | LB_ALGORITHM_CONSISTENT_HASH | | lb_algorithm_hash | LB_ALGORITHM_CONSISTENT_HASH_CALLID | | inline_health_monitor | True | | use_service_port | False | | capacity_estimation | False | | server_auto_scale | False | | vrf_ref | global | | fewest_tasks_feedback_delay | 10 sec | | enabled | True | | request_queue_enabled | False | | request_queue_depth | 128 | | host_check_enabled | False | | sni_enabled | True | | rewrite_host_header_to_sni | False | | rewrite_host_header_to_server_name | False | | lb_algorithm_core_nonaffinity | 2 | | lookup_server_by_name | False | | tenant_ref | admin | | cloud_ref | Default-Cloud | +---------------------------------------+-------------------------------------------+