SystemCountryCodeAddRequest
Bases: OCIRequest
Add a country code to the system. If ringPeriodMilliseconds is not specified, a default of 6000 milliseconds is assumed. If offHookWarningTimerSeconds is not specified, a default of 30 seconds is assumed. If enableNationalPrefix is not specified, a default of false is assumed. If nationalPrefix is not specified, a default of null string is assumed. If disableNationalPrefixForOffNetCalls is not specified, a default of false is assumed. The following elements are only used in AS data mode: disableNationalPrefixForOffNetCalls. The response is either a SuccessResponse or an ErrorResponse.
Attributes:
country_code (str):
country_name (str):
ring_period_milliseconds (Optional[int]):
off_hook_warning_timer_seconds (Optional[int]):
enable_national_prefix (Optional[bool]):
national_prefix (Optional[str]):
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_fast/commands/commands.py
83940 83941 83942 83943 83944 83945 83946 83947 83948 83949 83950 83951 83952 83953 83954 83955 83956 83957 83958 83959 83960 83961 83962 83963 83964 83965 83966 83967 83968 83969 83970 83971 83972 83973 83974 83975 83976 83977 83978 83979 83980 83981 83982 83983 83984 83985 83986 83987 83988 83989 83990 83991 83992 83993 83994 83995 83996 83997 83998 83999 84000 84001 84002 84003 84004 | |
Responses
Example Usage
from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import SystemCountryCodeAddRequest
client = Client()
command = SystemCountryCodeAddRequest(
country_code=...,
country_name=...,
ring_period_milliseconds=...,
off_hook_warning_timer_seconds=...,
enable_national_prefix=...,
national_prefix=...,
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_fast.client import Client
client = Client()
response = client.raw_command("SystemCountryCodeAddRequest",
country_code=...,
country_name=...,
ring_period_milliseconds=...,
off_hook_warning_timer_seconds=...,
enable_national_prefix=...,
national_prefix=...,
max_call_waiting_tones=...,
time_between_call_waiting_tones_milliseconds=...,
disable_national_prefix_for_off_net_calls=...,
)
print(response)