ChannelNewMediaGateway
Summary
Represents a base Media Gateway Channel Adapter.
- Methods
- Properties
Structure
- class ChannelNewMediaGateway
- check_status() str
Check the configuration mode of the MediaGateway
- Returns
"Normal"
if the configuration remains saved."Dynamic"
if the configuration is lost once the MediaGateway is restarted- Return type
- export_configuration(path: str, name: str) bool
Export the current configuration of the MediaGateway
- get_dest_mac() str
Method that gets the mac address of the destination
- Returns
Mac address of the destination
- Return type
- get_wakeup_line_status() str
Get the status of the Wakeup lines
- Returns
wakeup line one
low
orhigh
wakeup line two
low
orhigh
- Return type
- port_master_slave(selected_port: int32, slave_master: int32) bool
Sets Master or Slave MediaGateway ports
- reset_to_default() bool
Set the MG to default configuration
- Returns
True
if accepted,False
otherwise- Return type
- restart_device() bool
Restart the MediaGateway device
- Returns
True
if accepted,False
otherwise- Return type
- set_dynamic(conf_file: str) bool
Import a configuration file to the MediaGateway and set the status to Dynamic mode