GroupMusicOnHoldAddInstanceRequest23
Bases: OCIRequest
Add a Music on Hold Instance to a department. The response is either SuccessResponse or ErrorResponse. The following elements are only used in AS data mode and ignored in XS data mode: - useDynamicMOHDuringCallHold
Attributes:
service_provider_id (str):
group_id (str):
department (DepartmentKey):
is_active_during_call_hold (bool):
is_active_during_call_park (bool):
is_active_during_busy_camp_on (bool):
source (MusicOnHoldSourceAdd22):
use_alternate_source_for_internal_calls (bool):
internal_source (Optional[MusicOnHoldSourceAdd22]):
use_dynamic_moh_during_call_hold (bool):
Source code in src/mercury_ocip/commands/commands.py
51584 51585 51586 51587 51588 51589 51590 51591 51592 51593 51594 51595 51596 51597 51598 51599 51600 51601 51602 51603 51604 51605 51606 51607 51608 51609 51610 51611 51612 51613 51614 51615 51616 51617 51618 51619 51620 51621 51622 51623 51624 51625 51626 51627 51628 51629 51630 51631 51632 51633 51634 51635 51636 51637 51638 51639 51640 51641 51642 51643 51644 51645 | |
Responses
Example Usage
from mercury_ocip.client import Client
from mercury_ocip.commands import GroupMusicOnHoldAddInstanceRequest23
client = Client()
command = GroupMusicOnHoldAddInstanceRequest23(
service_provider_id=...,
group_id=...,
department=...,
is_active_during_call_hold=...,
is_active_during_call_park=...,
is_active_during_busy_camp_on=...,
source=...,
use_alternate_source_for_internal_calls=...,
internal_source=...,
use_dynamic_moh_during_call_hold=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("GroupMusicOnHoldAddInstanceRequest23",
service_provider_id=...,
group_id=...,
department=...,
is_active_during_call_hold=...,
is_active_during_call_park=...,
is_active_during_busy_camp_on=...,
source=...,
use_alternate_source_for_internal_calls=...,
internal_source=...,
use_dynamic_moh_during_call_hold=...,
)
print(response)