/rtp

Resource URI

/rtp

HTTP GET

Retrieves a network interface name that is used by media engine RTP and a list of available interface names and IP addresses.

GET /rtp

Method

Response Payload

JSON

{
  "ifname": "eth0",
  "mode": "native",
  "rtp_ipaddr_mode": "", /*msml mode only */
  "rtp_ipaddr1": "",     /*msml mode only */
  "rtp_ipaddr2": "",     /*msml mode only */
  "rtp_ipaddr3": "",     /*msml mode only */
  "rtp_ipaddr4": "",     /*msml mode only */
  "ifnames": [
    "eth0","eth1"
  ],
  "ifaddrs": [
    "10.20.129.19","10.20.129.20"
  ]
}

HTTP PUT

PUT /rtp

Method Request Payload Response Payload
JSON

{
  "ifname": "eth1",
}

{
  "ifname": "eth0",
  "mode": "native",
  "rtp_ipaddr_mode": "", /*msml mode only */
  "rtp_ipaddr1": "",     /*msml mode only */
  "rtp_ipaddr2": "",     /*msml mode only */
  "rtp_ipaddr3": "",     /*msml mode only */
  "rtp_ipaddr4": "",     /*msml mode only */
  "ifnames": [
    "eth0","eth1"
  ],
  "ifaddrs": [
    "10.20.129.19","10.20.129.20"
  ]
}