Skip to content

Instantly share code, notes, and snippets.

@andrius

andrius/tests.cr Secret

Last active July 27, 2019 19:14
Show Gist options
  • Save andrius/e99178100f74e22aa52c1182ce08c1ff to your computer and use it in GitHub Desktop.
Save andrius/e99178100f74e22aa52c1182ce08c1ff to your computer and use it in GitHub Desktop.
def action_destroy_queue(name)
%({ "service": "service.asterisk.queue-operation",
"action": "queue_destroy",
"action_id": "e74196df-1785-4304-ad6e-669bf064afac:action:2"
"media_server_id": "178.128.253.74",
"workflow_id": "e74196df-1785-4304-ad6e-669bf064afac",
"tenant_id": "1e5db55a-9427-41ca-abc8-9636b55e65b9",
"id": "#{name}",
"name": "#{name}" } })
end
def action_create_queue(name)
%({ "service": "service.asterisk.queue-operation",
"action": "queue_create",
"action_id": "e74196df-1785-4304-ad6e-669bf064afac:action:2",
"workflow_id": "e74196df-1785-4304-ad6e-669bf064afac",
"tenant_id": "1e5db55a-9427-41ca-abc8-9636b55e65b9",
"id": "#{name}",
"name": "#{name}",
"musiconhold": "5315c07c-582c-430e-943e-04b6e9ee396c",
"announce": "",
"context": "",
"timeout": 0,
"monitor_join": "",
"monitor_format": "",
"queue_youarenext": "",
"queue_thereare": "",
"queue_callswaiting": "",
"queue_holdtime": "",
"queue_minutes": "",
"queue_seconds": "",
"queue_lessthan": "",
"queue_thankyou": "",
"queue_reporthold": "",
"announce_frequency": 0,
"announce_round_seconds": 0,
"announce_holdtime": "",
"retry": 0,
"wrapuptime": 0,
"maxlen": 0,
"servicelevel": 0,
"strategy": "",
"joinempty": "",
"leavewhenempty": "",
"eventmemberstatus": "",
"eventwhencalled": "",
"reportholdtime": "",
"memberdelay": 0,
"weight": 0,
"timeoutrestart": "",
"periodic_announce": "",
"periodic_announce_frequency": 0,
"ringinuse": true,
"setinterfacevar": false,
"queue_agents": [],
"queue_members": {
"6c818be9-e2b1-4db8-91c0-f0b91d6b9025": {
"endpoints": {
"bb46b209-143f-4267-aa09-b9df9dd8d30b": {
"type": "sip",
"endpoint": "john@unic172.staging"
}
}
}
} })
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment