GET RTP setting's Page
GET
1) Info of RTP Settings page from the Admin
> Settings
> SIP
> Audio
rest/system/config
Success (200 OK)
Example:
Request:
curl -u username:password GET -D - http://192.168.1.194:8080/rest/system/config
{ reboot_event: "", reboot_action: "", dtmf_gain: "512", terminate_dtmf: "false", tone_gain: "256", tone_thres: "50", tone_repeat: "5", affinity_mask: "", mos_threshold: "30", email_cpu_limit: "false", email_trunk_change: "false", email_license_expire: "false", email_regstatus: "false", email_restart_system: "false", email_new_recording: "false", email_coline_allocation: "false", email_trunk_failover: "false", email_emergency_call: "false", email_rtp_timeout: "false", email_call_timeout: "false", email_address_change: "false", email_bye_no_media: "false", email_cpu_report: "false", email_blacklist_ip: "false", email_page_failure: "false", email_low_credit: "false", email_trunk_calls: "true", blacklist_expires: "3600", blacklist_attempts: "10", blacklist_period: "1000", ignore_wrong_domain: "false", blacklist_user_agent: "friendly-scanner sipcli", version: "5.1.0 y534", code_ipadr: "", code_restore: "", code_fabtest: "", code_version: "*#8377466#", sys_name: "", max_loop: "10", extended_status: "", trunk_reinvite: "false", ip_http_port: "8080", ip_https_port: "443", ip_sip_udp_port: "5060", ip_sip_tcp_port: "5060", ip_sip_tls_port: "5061", ip_snmp_port: "161", ip_snmp_community: "public", ip_tftp_port: "69", ip_ldap_port: "2345", ip_ldaps_port: "2346", ip_replacement_list: "", ip_routing_list: "", ip_public_ip_service_url: "", ip_public_ip_interval: "300", ip_dhcp_monitor: "67", tls_rc4: "true", tls_min_version: "tls10", tls_max_version: "tls12", dtls_min_version: "", dtls_max_version: "", siptrans: "", c2d_root: "", max_udp_invite: "10", tftp_write: "false", tftp_log: "true", port_begin: "49152", port_end: "64512", port_bind4: "", port_bind6: "", ip_manual_ip1: "", ip_manual_ip2: "", http_tls_web: "false", http_content: "system", http_rate: "50", http_threads: "500", sip_rate: "20", sip_threads: "500", pw_user: "admin", pw_trusted: "127.0.0.1 [::1]", random: "gVjIwkY6cGqfBxw5zmujTA==", password_policy: "none", password_history: "4", password_duration: "", recovery_duration: "3600", allow_empty_passwords: "true", rest_show_passwords: "false", session_timeout: "3600", timeout_connected: "120", timeout_hold: "3600", timeout_conference: "3600", allow_pass_through: "true", cookie_duration: "2592000", seize_timeout: "60", tcpcon_web: "10", tcpcon_sip: "256", soap_trusted_ip: "localhost", csta_trusted_ip: "", snmp_trusted_ip: "", cdr_keep: "30d", cdr_list_size: "100", max_cdr_num: "100000", button_speed_on_idle: "false", button_speed_on_busy: "false", conf_terminate: "*9", conf_list: "*0", conf_mute: "*1", conf_unmute: "*2", conf_muteall: "*7", conf_unmuteall: "*8", min_expires: "60", max_expires: "360", sub_expires: "3600", save_registration: "false", cdr_email_size: "1000", symmetrical_rtp: "true", ring180: "false", packet_size: "20", rtcp_loss_rle: "false", rtcp_dup_rle: "false", rtcp_rcpt_times: "false", rtcp_rcvr_rtt: "true", rtcp_stat_summary: "false", rtcp_voip_metrics: "true", always_send_ptime: "false", max_regs: "5", max_web_requests: "500", short_header: "false", support_update: "false", search_audio: "false", ext_field: "", codec_preference: "8 0 2 3 9 18", codec_lock: "true", mcast_addresses: "", mcast_ttl: "", max_calls: "250", max_tar: "10485760", nat_udp: "30", nat_tcp2: "60", web_timeout: "60", soap_cdr_adr: "webcdr://192.168.1.194/cdr-collector", soap_cdr_username: "", soap_mailbox_file: "", report_domains: "", language_audio: "it", language_tones: "uk", language_web: "en", pnp_description: "pnp.xml", pnp_duration: "30", pnp_after: "5", pnp_open_on_creation: "true", ring_description: "ringtones.xml", dialplan_description: "dialplans.xml", multicast: "true", loop_detection: "true", offer_sdes: "true", mwi_notify: "false", max_call_duration: "43200", max_rec_duration: "14400", ani_dom_admin: "true", trunk_dom_admin: "true", dp_dom_admin: "true", ac_dom_admin: "true", perm_sip_pass: "true", multiple_hot_destking: "false", register_via_count: "true", send_recording: "true", bandwidth: "", cellphone_timeout: "20", camp_enabled: "true", conf_expiry: "86400", provision_domain_name: "false", presence_auth_token: "", email_from: "sc", email_user: "sc@vodia.com", email_smtp: "smtp.gmail.com:465", smtp_starttls: "tls", email_global: "false", email_domain: "", email_certs: "false", cdr_url_global: "true", fresh_url: "", fresh_token: "", fresh_invoice_number: "yymmcccccc", fresh_use_json: "false", usr_change_watch: "true", usr_change_sippass: "false", usr_change_webpass: "false", usr_change_iac: "true", usr_change_cfnat: "true", usr_change_mbe: "true", usr_change_tumpu: "true", usr_change_mnom: "true", usr_change_mea: "true", usr_change_sammbe: "true", usr_change_asam: "true", usr_change_adrbook: "true", crm_server_adr: "", max_tcp_length: "16777216", sdp_savp: "true", web_client_delay: "60", max_ring_duration: "60", extension_status_url: "", aoc_policy: "flat", cdav_scope: "", cdav_clientid: "", cdav_clientsecret: "", cdav_redirect: "", cdr_call_quality_report: "false", hosted_email_address: "", override_thread_limit: "false", syslog_server_ip: "" }
Response | Code | Description |
---|---|---|
Success | 200 | OK |
Invalid ID supplied | 400 | Only authenticated Admins can access the data |
Permission Denied | 403 | Forbidden |
Not Found | 404 | The id of the User was not found or there are errors in the URL. |
UPDATE RTP setting's page
post
/rest/system/config
Example:
Request:
curl -u username:password -D - http://localhost:8080/rest/system/config -X POST -d "{ 'port_begin':'49177', 'port_end':'64599' 'symmetrical_rtp':'false' }"
Response for the Update request:
Response | Code | Description |
---|---|---|
Success | 200 | OK |
Invalid ID supplied | 400 | Only authenticated a Admins can access the data |
Permission Denied | 403 | Forbidden |
Not Found | 404 | The id of the User was not found or there are errors in the URL. |