SystemCountryCodeModifyRequest
Bases: OCIRequest
Modify the attributes of a country code. If becomeDefaultCountryCode is true, the country code in this request becomes the default country code for the system. The following elements are only used in AS data mode: disableNationalPrefixForOffNetCalls
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
country_code (str):
ring_period_milliseconds (Optional[int]):
off_hook_warning_timer_seconds (Optional[int]):
enable_national_prefix (Optional[bool]):
national_prefix (Optional[Nillable[str]]):
become_default_country_code (Optional[bool]):
max_call_waiting_tones (Optional[int]):
time_between_call_waiting_tones_milliseconds (Optional[int]):
disable_national_prefix_for_off_net_calls (Optional[bool]):
Source code in src/mercury_ocip/commands/commands.py
84030 84031 84032 84033 84034 84035 84036 84037 84038 84039 84040 84041 84042 84043 84044 84045 84046 84047 84048 84049 84050 84051 84052 84053 84054 84055 84056 84057 84058 84059 84060 84061 84062 84063 84064 84065 84066 84067 84068 84069 84070 84071 84072 84073 84074 84075 84076 84077 84078 84079 84080 84081 84082 84083 84084 84085 84086 84087 84088 84089 84090 84091 84092 84093 84094 84095 84096 84097 84098 84099 84100 84101 | |
Responses
Example Usage
from mercury_ocip.client import Client
from mercury_ocip.commands import SystemCountryCodeModifyRequest
client = Client()
command = SystemCountryCodeModifyRequest(
country_code=...,
ring_period_milliseconds=...,
off_hook_warning_timer_seconds=...,
enable_national_prefix=...,
national_prefix=...,
become_default_country_code=...,
max_call_waiting_tones=...,
time_between_call_waiting_tones_milliseconds=...,
disable_national_prefix_for_off_net_calls=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("SystemCountryCodeModifyRequest",
country_code=...,
ring_period_milliseconds=...,
off_hook_warning_timer_seconds=...,
enable_national_prefix=...,
national_prefix=...,
become_default_country_code=...,
max_call_waiting_tones=...,
time_between_call_waiting_tones_milliseconds=...,
disable_national_prefix_for_off_net_calls=...,
)
print(response)