Debian Codegraph @

ami/amimodels/actions.go

raw symbols SCIP
1 // Code generated by xmlgen. DO NOT EDIT.
2
3 package amimodels
4
5 // SKINNYdevicesAction List SKINNY devices (text format).
6 type SKINNYdevicesAction struct {
7 // ActionID ActionID for this transaction. Will be returned.
8 ActionID string
9 }
10
11 func (SKINNYdevicesAction) ActionTypeName() string {
12 return "SKINNYdevices"
13 }
14 func (a SKINNYdevicesAction) GetActionID() string {
15 return a.ActionID
16 }
17 func (a *SKINNYdevicesAction) SetActionID(actionID string) {
18 a.ActionID = actionID
19 }
20 func (cli *Client) SKINNYdevices(opts ...RequestOption) (res *Response, err error) {
21 req := &SKINNYdevicesAction{}
22 res = &Response{}
23 return res, cli.Action(req, res, opts...)
24 }
25
26 // SKINNYshowdeviceAction Show SKINNY device (text format).
27 type SKINNYshowdeviceAction struct {
28 // ActionID ActionID for this transaction. Will be returned.
29 ActionID string
30 // Device The device name you want to check.
31 Device string
32 }
33
34 func (SKINNYshowdeviceAction) ActionTypeName() string {
35 return "SKINNYshowdevice"
36 }
37 func (a SKINNYshowdeviceAction) GetActionID() string {
38 return a.ActionID
39 }
40 func (a *SKINNYshowdeviceAction) SetActionID(actionID string) {
41 a.ActionID = actionID
42 }
43 func (cli *Client) SKINNYshowdevice(device string, opts ...RequestOption) (res *Response, err error) {
44 req := &SKINNYshowdeviceAction{
45 Device: device,
46 }
47 res = &Response{}
48 return res, cli.Action(req, res, opts...)
49 }
50
51 // SKINNYlinesAction List SKINNY lines (text format).
52 type SKINNYlinesAction struct {
53 // ActionID ActionID for this transaction. Will be returned.
54 ActionID string
55 }
56
57 func (SKINNYlinesAction) ActionTypeName() string {
58 return "SKINNYlines"
59 }
60 func (a SKINNYlinesAction) GetActionID() string {
61 return a.ActionID
62 }
63 func (a *SKINNYlinesAction) SetActionID(actionID string) {
64 a.ActionID = actionID
65 }
66 func (cli *Client) SKINNYlines(opts ...RequestOption) (res *Response, err error) {
67 req := &SKINNYlinesAction{}
68 res = &Response{}
69 return res, cli.Action(req, res, opts...)
70 }
71
72 // SKINNYshowlineAction Show SKINNY line (text format).
73 type SKINNYshowlineAction struct {
74 // ActionID ActionID for this transaction. Will be returned.
75 ActionID string
76 // Line The line name you want to check.
77 Line string
78 }
79
80 func (SKINNYshowlineAction) ActionTypeName() string {
81 return "SKINNYshowline"
82 }
83 func (a SKINNYshowlineAction) GetActionID() string {
84 return a.ActionID
85 }
86 func (a *SKINNYshowlineAction) SetActionID(actionID string) {
87 a.ActionID = actionID
88 }
89 func (cli *Client) SKINNYshowline(line string, opts ...RequestOption) (res *Response, err error) {
90 req := &SKINNYshowlineAction{
91 Line: line,
92 }
93 res = &Response{}
94 return res, cli.Action(req, res, opts...)
95 }
96
97 // IAXpeersAction List IAX peers.
98 type IAXpeersAction struct {
99 // ActionID ActionID for this transaction. Will be returned.
100 ActionID string
101 }
102
103 func (IAXpeersAction) ActionTypeName() string {
104 return "IAXpeers"
105 }
106 func (a IAXpeersAction) GetActionID() string {
107 return a.ActionID
108 }
109 func (a *IAXpeersAction) SetActionID(actionID string) {
110 a.ActionID = actionID
111 }
112 func (cli *Client) IAXpeers(opts ...RequestOption) (res *Response, err error) {
113 req := &IAXpeersAction{}
114 res = &Response{}
115 return res, cli.Action(req, res, opts...)
116 }
117
118 // IAXpeerlistAction List IAX Peers.
119 type IAXpeerlistAction struct {
120 // ActionID ActionID for this transaction. Will be returned.
121 ActionID string
122 }
123
124 func (IAXpeerlistAction) ActionTypeName() string {
125 return "IAXpeerlist"
126 }
127 func (a IAXpeerlistAction) GetActionID() string {
128 return a.ActionID
129 }
130 func (a *IAXpeerlistAction) SetActionID(actionID string) {
131 a.ActionID = actionID
132 }
133 func (cli *Client) IAXpeerlist(opts ...RequestOption) (res *Response, err error) {
134 req := &IAXpeerlistAction{}
135 res = &Response{}
136 return res, cli.Action(req, res, opts...)
137 }
138
139 // IAXnetstatsAction Show IAX Netstats.
140 type IAXnetstatsAction struct {
141 // ActionID ActionID for this transaction. Will be returned.
142 ActionID string
143 }
144
145 func (IAXnetstatsAction) ActionTypeName() string {
146 return "IAXnetstats"
147 }
148 func (a IAXnetstatsAction) GetActionID() string {
149 return a.ActionID
150 }
151 func (a *IAXnetstatsAction) SetActionID(actionID string) {
152 a.ActionID = actionID
153 }
154 func (cli *Client) IAXnetstats(opts ...RequestOption) (res *Response, err error) {
155 req := &IAXnetstatsAction{}
156 res = &Response{}
157 return res, cli.Action(req, res, opts...)
158 }
159
160 // IAXregistryAction Show IAX registrations.
161 type IAXregistryAction struct {
162 // ActionID ActionID for this transaction. Will be returned.
163 ActionID string
164 }
165
166 func (IAXregistryAction) ActionTypeName() string {
167 return "IAXregistry"
168 }
169 func (a IAXregistryAction) GetActionID() string {
170 return a.ActionID
171 }
172 func (a *IAXregistryAction) SetActionID(actionID string) {
173 a.ActionID = actionID
174 }
175 func (cli *Client) IAXregistry(opts ...RequestOption) (res *Response, err error) {
176 req := &IAXregistryAction{}
177 res = &Response{}
178 return res, cli.Action(req, res, opts...)
179 }
180
181 // DAHDITransferAction Transfer DAHDI Channel.
182 type DAHDITransferAction struct {
183 // ActionID ActionID for this transaction. Will be returned.
184 ActionID string
185 // DAHDIChannel DAHDI channel number to transfer.
186 DAHDIChannel string
187 }
188
189 func (DAHDITransferAction) ActionTypeName() string {
190 return "DAHDITransfer"
191 }
192 func (a DAHDITransferAction) GetActionID() string {
193 return a.ActionID
194 }
195 func (a *DAHDITransferAction) SetActionID(actionID string) {
196 a.ActionID = actionID
197 }
198 func (cli *Client) DAHDITransfer(dAHDIChannel string, opts ...RequestOption) (res *Response, err error) {
199 req := &DAHDITransferAction{
200 DAHDIChannel: dAHDIChannel,
201 }
202 res = &Response{}
203 return res, cli.Action(req, res, opts...)
204 }
205
206 // DAHDIHangupAction Hangup DAHDI Channel.
207 type DAHDIHangupAction struct {
208 // ActionID ActionID for this transaction. Will be returned.
209 ActionID string
210 // DAHDIChannel DAHDI channel number to hangup.
211 DAHDIChannel string
212 }
213
214 func (DAHDIHangupAction) ActionTypeName() string {
215 return "DAHDIHangup"
216 }
217 func (a DAHDIHangupAction) GetActionID() string {
218 return a.ActionID
219 }
220 func (a *DAHDIHangupAction) SetActionID(actionID string) {
221 a.ActionID = actionID
222 }
223 func (cli *Client) DAHDIHangup(dAHDIChannel string, opts ...RequestOption) (res *Response, err error) {
224 req := &DAHDIHangupAction{
225 DAHDIChannel: dAHDIChannel,
226 }
227 res = &Response{}
228 return res, cli.Action(req, res, opts...)
229 }
230
231 // DAHDIDialOffhookAction Dial over DAHDI channel while offhook.
232 type DAHDIDialOffhookAction struct {
233 // ActionID ActionID for this transaction. Will be returned.
234 ActionID string
235 // DAHDIChannel DAHDI channel number to dial digits.
236 DAHDIChannel string
237 // Number Digits to dial.
238 Number string
239 }
240
241 func (DAHDIDialOffhookAction) ActionTypeName() string {
242 return "DAHDIDialOffhook"
243 }
244 func (a DAHDIDialOffhookAction) GetActionID() string {
245 return a.ActionID
246 }
247 func (a *DAHDIDialOffhookAction) SetActionID(actionID string) {
248 a.ActionID = actionID
249 }
250 func (cli *Client) DAHDIDialOffhook(dAHDIChannel string, number string, opts ...RequestOption) (res *Response, err error) {
251 req := &DAHDIDialOffhookAction{
252 DAHDIChannel: dAHDIChannel,
253 Number: number,
254 }
255 res = &Response{}
256 return res, cli.Action(req, res, opts...)
257 }
258
259 // DAHDIDNDonAction Toggle DAHDI channel Do Not Disturb status ON.
260 type DAHDIDNDonAction struct {
261 // ActionID ActionID for this transaction. Will be returned.
262 ActionID string
263 // DAHDIChannel DAHDI channel number to set DND on.
264 DAHDIChannel string
265 }
266
267 func (DAHDIDNDonAction) ActionTypeName() string {
268 return "DAHDIDNDon"
269 }
270 func (a DAHDIDNDonAction) GetActionID() string {
271 return a.ActionID
272 }
273 func (a *DAHDIDNDonAction) SetActionID(actionID string) {
274 a.ActionID = actionID
275 }
276 func (cli *Client) DAHDIDNDon(dAHDIChannel string, opts ...RequestOption) (res *Response, err error) {
277 req := &DAHDIDNDonAction{
278 DAHDIChannel: dAHDIChannel,
279 }
280 res = &Response{}
281 return res, cli.Action(req, res, opts...)
282 }
283
284 // DAHDIDNDoffAction Toggle DAHDI channel Do Not Disturb status OFF.
285 type DAHDIDNDoffAction struct {
286 // ActionID ActionID for this transaction. Will be returned.
287 ActionID string
288 // DAHDIChannel DAHDI channel number to set DND off.
289 DAHDIChannel string
290 }
291
292 func (DAHDIDNDoffAction) ActionTypeName() string {
293 return "DAHDIDNDoff"
294 }
295 func (a DAHDIDNDoffAction) GetActionID() string {
296 return a.ActionID
297 }
298 func (a *DAHDIDNDoffAction) SetActionID(actionID string) {
299 a.ActionID = actionID
300 }
301 func (cli *Client) DAHDIDNDoff(dAHDIChannel string, opts ...RequestOption) (res *Response, err error) {
302 req := &DAHDIDNDoffAction{
303 DAHDIChannel: dAHDIChannel,
304 }
305 res = &Response{}
306 return res, cli.Action(req, res, opts...)
307 }
308
309 // DAHDIShowChannelsAction Show status of DAHDI channels.
310 type DAHDIShowChannelsAction struct {
311 // ActionID ActionID for this transaction. Will be returned.
312 ActionID string
313 // DAHDIChannel Specify the specific channel number to show. Show all channels if zero or not present.
314 DAHDIChannel string
315 }
316
317 func (DAHDIShowChannelsAction) ActionTypeName() string {
318 return "DAHDIShowChannels"
319 }
320 func (a DAHDIShowChannelsAction) GetActionID() string {
321 return a.ActionID
322 }
323 func (a *DAHDIShowChannelsAction) SetActionID(actionID string) {
324 a.ActionID = actionID
325 }
326 func (cli *Client) DAHDIShowChannels(opts ...RequestOption) (res *Response, err error) {
327 req := &DAHDIShowChannelsAction{}
328 res = &Response{}
329 return res, cli.Action(req, res, opts...)
330 }
331
332 // DAHDIRestartAction Fully Restart DAHDI channels (terminates calls).
333 type DAHDIRestartAction struct {
334 // ActionID ActionID for this transaction. Will be returned.
335 ActionID string
336 }
337
338 func (DAHDIRestartAction) ActionTypeName() string {
339 return "DAHDIRestart"
340 }
341 func (a DAHDIRestartAction) GetActionID() string {
342 return a.ActionID
343 }
344 func (a *DAHDIRestartAction) SetActionID(actionID string) {
345 a.ActionID = actionID
346 }
347 func (cli *Client) DAHDIRestart(opts ...RequestOption) (res *Response, err error) {
348 req := &DAHDIRestartAction{}
349 res = &Response{}
350 return res, cli.Action(req, res, opts...)
351 }
352
353 // PRIShowSpansAction Show status of PRI spans.
354 type PRIShowSpansAction struct {
355 // ActionID ActionID for this transaction. Will be returned.
356 ActionID string
357 // Span Specify the specific span to show. Show all spans if zero or not present.
358 Span string
359 }
360
361 func (PRIShowSpansAction) ActionTypeName() string {
362 return "PRIShowSpans"
363 }
364 func (a PRIShowSpansAction) GetActionID() string {
365 return a.ActionID
366 }
367 func (a *PRIShowSpansAction) SetActionID(actionID string) {
368 a.ActionID = actionID
369 }
370 func (cli *Client) PRIShowSpans(opts ...RequestOption) (res *Response, err error) {
371 req := &PRIShowSpansAction{}
372 res = &Response{}
373 return res, cli.Action(req, res, opts...)
374 }
375
376 // PRIDebugSetAction Set PRI debug levels for a span
377 type PRIDebugSetAction struct {
378 // ActionID ActionID for this transaction. Will be returned.
379 ActionID string
380 // Span Which span to affect.
381 Span string
382 // Level What debug level to set. May be a numerical value or a text value from the list below
383 Level string
384 }
385
386 func (PRIDebugSetAction) ActionTypeName() string {
387 return "PRIDebugSet"
388 }
389 func (a PRIDebugSetAction) GetActionID() string {
390 return a.ActionID
391 }
392 func (a *PRIDebugSetAction) SetActionID(actionID string) {
393 a.ActionID = actionID
394 }
395 func (cli *Client) PRIDebugSet(span string, level string, opts ...RequestOption) (res *Response, err error) {
396 req := &PRIDebugSetAction{
397 Span: span,
398 Level: level,
399 }
400 res = &Response{}
401 return res, cli.Action(req, res, opts...)
402 }
403
404 // PRIDebugFileSetAction Set the file used for PRI debug message output
405 type PRIDebugFileSetAction struct {
406 // ActionID ActionID for this transaction. Will be returned.
407 ActionID string
408 // File Path of file to write debug output.
409 File string
410 }
411
412 func (PRIDebugFileSetAction) ActionTypeName() string {
413 return "PRIDebugFileSet"
414 }
415 func (a PRIDebugFileSetAction) GetActionID() string {
416 return a.ActionID
417 }
418 func (a *PRIDebugFileSetAction) SetActionID(actionID string) {
419 a.ActionID = actionID
420 }
421 func (cli *Client) PRIDebugFileSet(file string, opts ...RequestOption) (res *Response, err error) {
422 req := &PRIDebugFileSetAction{
423 File: file,
424 }
425 res = &Response{}
426 return res, cli.Action(req, res, opts...)
427 }
428
429 // PRIDebugFileUnsetAction Disables file output for PRI debug messages
430 type PRIDebugFileUnsetAction struct {
431 // ActionID ActionID for this transaction. Will be returned.
432 ActionID string
433 }
434
435 func (PRIDebugFileUnsetAction) ActionTypeName() string {
436 return "PRIDebugFileUnset"
437 }
438 func (a PRIDebugFileUnsetAction) GetActionID() string {
439 return a.ActionID
440 }
441 func (a *PRIDebugFileUnsetAction) SetActionID(actionID string) {
442 a.ActionID = actionID
443 }
444 func (cli *Client) PRIDebugFileUnset(opts ...RequestOption) (res *Response, err error) {
445 req := &PRIDebugFileUnsetAction{}
446 res = &Response{}
447 return res, cli.Action(req, res, opts...)
448 }
449
450 // SIPpeersAction List SIP peers (text format).
451 type SIPpeersAction struct {
452 // ActionID ActionID for this transaction. Will be returned.
453 ActionID string
454 }
455
456 func (SIPpeersAction) ActionTypeName() string {
457 return "SIPpeers"
458 }
459 func (a SIPpeersAction) GetActionID() string {
460 return a.ActionID
461 }
462 func (a *SIPpeersAction) SetActionID(actionID string) {
463 a.ActionID = actionID
464 }
465 func (cli *Client) SIPpeers(opts ...RequestOption) (res *Response, err error) {
466 req := &SIPpeersAction{}
467 res = &Response{}
468 return res, cli.Action(req, res, opts...)
469 }
470
471 // SIPshowpeerAction show SIP peer (text format).
472 type SIPshowpeerAction struct {
473 // ActionID ActionID for this transaction. Will be returned.
474 ActionID string
475 // Peer The peer name you want to check.
476 Peer string
477 }
478
479 func (SIPshowpeerAction) ActionTypeName() string {
480 return "SIPshowpeer"
481 }
482 func (a SIPshowpeerAction) GetActionID() string {
483 return a.ActionID
484 }
485 func (a *SIPshowpeerAction) SetActionID(actionID string) {
486 a.ActionID = actionID
487 }
488 func (cli *Client) SIPshowpeer(peer string, opts ...RequestOption) (res *Response, err error) {
489 req := &SIPshowpeerAction{
490 Peer: peer,
491 }
492 res = &Response{}
493 return res, cli.Action(req, res, opts...)
494 }
495
496 // SIPqualifypeerAction Qualify SIP peers.
497 type SIPqualifypeerAction struct {
498 // ActionID ActionID for this transaction. Will be returned.
499 ActionID string
500 // Peer The peer name you want to qualify.
501 Peer string
502 }
503
504 func (SIPqualifypeerAction) ActionTypeName() string {
505 return "SIPqualifypeer"
506 }
507 func (a SIPqualifypeerAction) GetActionID() string {
508 return a.ActionID
509 }
510 func (a *SIPqualifypeerAction) SetActionID(actionID string) {
511 a.ActionID = actionID
512 }
513 func (cli *Client) SIPqualifypeer(peer string, opts ...RequestOption) (res *Response, err error) {
514 req := &SIPqualifypeerAction{
515 Peer: peer,
516 }
517 res = &Response{}
518 return res, cli.Action(req, res, opts...)
519 }
520
521 // SIPshowregistryAction Show SIP registrations (text format).
522 type SIPshowregistryAction struct {
523 // ActionID ActionID for this transaction. Will be returned.
524 ActionID string
525 }
526
527 func (SIPshowregistryAction) ActionTypeName() string {
528 return "SIPshowregistry"
529 }
530 func (a SIPshowregistryAction) GetActionID() string {
531 return a.ActionID
532 }
533 func (a *SIPshowregistryAction) SetActionID(actionID string) {
534 a.ActionID = actionID
535 }
536 func (cli *Client) SIPshowregistry(opts ...RequestOption) (res *Response, err error) {
537 req := &SIPshowregistryAction{}
538 res = &Response{}
539 return res, cli.Action(req, res, opts...)
540 }
541
542 // SIPnotifyAction Send a SIP notify.
543 type SIPnotifyAction struct {
544 // ActionID ActionID for this transaction. Will be returned.
545 ActionID string
546 // Channel Peer to receive the notify.
547 Channel string
548 // Variable At least one variable pair must be specified. name = value
549 Variable string
550 // CallID When specified, SIP notity will be sent as a part of an existing dialog.
551 CallID string
552 }
553
554 func (SIPnotifyAction) ActionTypeName() string {
555 return "SIPnotify"
556 }
557 func (a SIPnotifyAction) GetActionID() string {
558 return a.ActionID
559 }
560 func (a *SIPnotifyAction) SetActionID(actionID string) {
561 a.ActionID = actionID
562 }
563 func (cli *Client) SIPnotify(channel string, variable string, opts ...RequestOption) (res *Response, err error) {
564 req := &SIPnotifyAction{
565 Channel: channel,
566 Variable: variable,
567 }
568 res = &Response{}
569 return res, cli.Action(req, res, opts...)
570 }
571
572 // SIPpeerstatusAction Show the status of one or all of the sip peers.
573 type SIPpeerstatusAction struct {
574 // ActionID ActionID for this transaction. Will be returned.
575 ActionID string
576 // Peer The peer name you want to check.
577 Peer string
578 }
579
580 func (SIPpeerstatusAction) ActionTypeName() string {
581 return "SIPpeerstatus"
582 }
583 func (a SIPpeerstatusAction) GetActionID() string {
584 return a.ActionID
585 }
586 func (a *SIPpeerstatusAction) SetActionID(actionID string) {
587 a.ActionID = actionID
588 }
589 func (cli *Client) SIPpeerstatus(opts ...RequestOption) (res *Response, err error) {
590 req := &SIPpeerstatusAction{}
591 res = &Response{}
592 return res, cli.Action(req, res, opts...)
593 }
594
595 // DialplanExtensionAddAction Add an extension to the dialplan
596 type DialplanExtensionAddAction struct {
597 // ActionID ActionID for this transaction. Will be returned.
598 ActionID string
599 // Context Context where the extension will be created. The context will be created if it does not already exist.
600 Context string
601 // Extension Name of the extension that will be created (may include callerid match by separating with '/')
602 Extension string
603 // Priority Priority being added to this extension. Must be either `hint` or a numerical value.
604 Priority int
605 // Application The application to use for this extension at the requested priority
606 Application string
607 // ApplicationData Arguments to the application.
608 ApplicationData string
609 // Replace If set to 'yes', '1', 'true' or any of the other values we evaluate as true, then if an extension already exists at the requested context, extension, and priority it will be overwritten. Otherwise, the existing extension will remain and the action will fail.
610 Replace string
611 }
612
613 func (DialplanExtensionAddAction) ActionTypeName() string {
614 return "DialplanExtensionAdd"
615 }
616 func (a DialplanExtensionAddAction) GetActionID() string {
617 return a.ActionID
618 }
619 func (a *DialplanExtensionAddAction) SetActionID(actionID string) {
620 a.ActionID = actionID
621 }
622 func (cli *Client) DialplanExtensionAdd(context string, extension string, priority int, application string, opts ...RequestOption) (res *Response, err error) {
623 req := &DialplanExtensionAddAction{
624 Context: context,
625 Extension: extension,
626 Priority: priority,
627 Application: application,
628 }
629 res = &Response{}
630 return res, cli.Action(req, res, opts...)
631 }
632
633 // DialplanExtensionRemoveAction Remove an extension from the dialplan
634 type DialplanExtensionRemoveAction struct {
635 // ActionID ActionID for this transaction. Will be returned.
636 ActionID string
637 // Context Context of the extension being removed
638 Context string
639 // Extension Name of the extension being removed (may include callerid match by separating with '/')
640 Extension string
641 // Priority If provided, only remove this priority from the extension instead of all priorities in the extension.
642 Priority int
643 }
644
645 func (DialplanExtensionRemoveAction) ActionTypeName() string {
646 return "DialplanExtensionRemove"
647 }
648 func (a DialplanExtensionRemoveAction) GetActionID() string {
649 return a.ActionID
650 }
651 func (a *DialplanExtensionRemoveAction) SetActionID(actionID string) {
652 a.ActionID = actionID
653 }
654 func (cli *Client) DialplanExtensionRemove(context string, extension string, opts ...RequestOption) (res *Response, err error) {
655 req := &DialplanExtensionRemoveAction{
656 Context: context,
657 Extension: extension,
658 }
659 res = &Response{}
660 return res, cli.Action(req, res, opts...)
661 }
662
663 // VoicemailUsersListAction List All Voicemail User Information.
664 type VoicemailUsersListAction struct {
665 // ActionID ActionID for this transaction. Will be returned.
666 ActionID string
667 }
668
669 func (VoicemailUsersListAction) ActionTypeName() string {
670 return "VoicemailUsersList"
671 }
672 func (a VoicemailUsersListAction) GetActionID() string {
673 return a.ActionID
674 }
675 func (a *VoicemailUsersListAction) SetActionID(actionID string) {
676 a.ActionID = actionID
677 }
678 func (cli *Client) VoicemailUsersList(opts ...RequestOption) (res *Response, err error) {
679 req := &VoicemailUsersListAction{}
680 res = &Response{}
681 return res, cli.Action(req, res, opts...)
682 }
683
684 // VoicemailUserStatusAction Show the status of given voicemail user's info.
685 type VoicemailUserStatusAction struct {
686 // ActionID ActionID for this transaction. Will be returned.
687 ActionID string
688 // Context The context you want to check.
689 Context string
690 // Mailbox The mailbox you want to check.
691 Mailbox string
692 }
693
694 func (VoicemailUserStatusAction) ActionTypeName() string {
695 return "VoicemailUserStatus"
696 }
697 func (a VoicemailUserStatusAction) GetActionID() string {
698 return a.ActionID
699 }
700 func (a *VoicemailUserStatusAction) SetActionID(actionID string) {
701 a.ActionID = actionID
702 }
703 func (cli *Client) VoicemailUserStatus(context string, mailbox string, opts ...RequestOption) (res *Response, err error) {
704 req := &VoicemailUserStatusAction{
705 Context: context,
706 Mailbox: mailbox,
707 }
708 res = &Response{}
709 return res, cli.Action(req, res, opts...)
710 }
711
712 // VoicemailRefreshAction Tell Asterisk to poll mailboxes for a change
713 type VoicemailRefreshAction struct {
714 // ActionID ActionID for this transaction. Will be returned.
715 ActionID string
716 Context string
717 Mailbox string
718 }
719
720 func (VoicemailRefreshAction) ActionTypeName() string {
721 return "VoicemailRefresh"
722 }
723 func (a VoicemailRefreshAction) GetActionID() string {
724 return a.ActionID
725 }
726 func (a *VoicemailRefreshAction) SetActionID(actionID string) {
727 a.ActionID = actionID
728 }
729 func (cli *Client) VoicemailRefresh(opts ...RequestOption) (res *Response, err error) {
730 req := &VoicemailRefreshAction{}
731 res = &Response{}
732 return res, cli.Action(req, res, opts...)
733 }
734
735 // AgentsAction Lists agents and their status.
736 type AgentsAction struct {
737 // ActionID ActionID for this transaction. Will be returned.
738 ActionID string
739 }
740
741 func (AgentsAction) ActionTypeName() string {
742 return "Agents"
743 }
744 func (a AgentsAction) GetActionID() string {
745 return a.ActionID
746 }
747 func (a *AgentsAction) SetActionID(actionID string) {
748 a.ActionID = actionID
749 }
750 func (cli *Client) Agents(opts ...RequestOption) (res *Response, err error) {
751 req := &AgentsAction{}
752 res = &Response{}
753 return res, cli.Action(req, res, opts...)
754 }
755
756 // AgentLogoffAction Sets an agent as no longer logged in.
757 type AgentLogoffAction struct {
758 // ActionID ActionID for this transaction. Will be returned.
759 ActionID string
760 // Agent Agent ID of the agent to log off.
761 Agent string
762 // Soft Set to `true` to not hangup existing calls.
763 Soft string
764 }
765
766 func (AgentLogoffAction) ActionTypeName() string {
767 return "AgentLogoff"
768 }
769 func (a AgentLogoffAction) GetActionID() string {
770 return a.ActionID
771 }
772 func (a *AgentLogoffAction) SetActionID(actionID string) {
773 a.ActionID = actionID
774 }
775 func (cli *Client) AgentLogoff(agent string, opts ...RequestOption) (res *Response, err error) {
776 req := &AgentLogoffAction{
777 Agent: agent,
778 }
779 res = &Response{}
780 return res, cli.Action(req, res, opts...)
781 }
782
783 // ControlPlaybackAction Control the playback of a file being played to a channel.
784 type ControlPlaybackAction struct {
785 // ActionID ActionID for this transaction. Will be returned.
786 ActionID string
787 // Channel The name of the channel that currently has a file being played back to it.
788 Channel string
789 Control string
790 }
791
792 func (ControlPlaybackAction) ActionTypeName() string {
793 return "ControlPlayback"
794 }
795 func (a ControlPlaybackAction) GetActionID() string {
796 return a.ActionID
797 }
798 func (a *ControlPlaybackAction) SetActionID(actionID string) {
799 a.ActionID = actionID
800 }
801 func (cli *Client) ControlPlayback(channel string, control string, opts ...RequestOption) (res *Response, err error) {
802 req := &ControlPlaybackAction{
803 Channel: channel,
804 Control: control,
805 }
806 res = &Response{}
807 return res, cli.Action(req, res, opts...)
808 }
809
810 // MixMonitorMuteAction Mute / unMute a Mixmonitor recording.
811 type MixMonitorMuteAction struct {
812 // ActionID ActionID for this transaction. Will be returned.
813 ActionID string
814 // Channel Used to specify the channel to mute.
815 Channel string
816 // Direction Which part of the recording to mute: read, write or both (from channel, to channel or both channels).
817 Direction string
818 // State Turn mute on or off : 1 to turn on, 0 to turn off.
819 State string
820 }
821
822 func (MixMonitorMuteAction) ActionTypeName() string {
823 return "MixMonitorMute"
824 }
825 func (a MixMonitorMuteAction) GetActionID() string {
826 return a.ActionID
827 }
828 func (a *MixMonitorMuteAction) SetActionID(actionID string) {
829 a.ActionID = actionID
830 }
831 func (cli *Client) MixMonitorMute(channel string, opts ...RequestOption) (res *Response, err error) {
832 req := &MixMonitorMuteAction{
833 Channel: channel,
834 }
835 res = &Response{}
836 return res, cli.Action(req, res, opts...)
837 }
838
839 // MixMonitorAction Record a call and mix the audio during the recording. Use of StopMixMonitor is required
840 // to guarantee the audio file is available for processing during dialplan execution.
841 type MixMonitorAction struct {
842 // ActionID ActionID for this transaction. Will be returned.
843 ActionID string
844 // Channel Used to specify the channel to record.
845 Channel string
846 // File Is the name of the file created in the monitor spool directory. Defaults to the same name as the channel (with slashes replaced with dashes). This argument is optional if you specify to record unidirectional audio with either the r(filename) or t(filename) options in the options field. If neither MIXMONITOR_FILENAME or this parameter is set, the mixed stream won't be recorded.
847 File string
848 // Options Options that apply to the MixMonitor in the same way as they would apply if invoked from the MixMonitor application. For a list of available options, see the documentation for the mixmonitor application.
849 Options string
850 // Command Will be executed when the recording is over. Any strings matching `^{X}` will be unescaped to `X`. All variables will be evaluated at the time MixMonitor is called.
851 Command string
852 }
853
854 func (MixMonitorAction) ActionTypeName() string {
855 return "MixMonitor"
856 }
857 func (a MixMonitorAction) GetActionID() string {
858 return a.ActionID
859 }
860 func (a *MixMonitorAction) SetActionID(actionID string) {
861 a.ActionID = actionID
862 }
863 func (cli *Client) MixMonitor(channel string, opts ...RequestOption) (res *Response, err error) {
864 req := &MixMonitorAction{
865 Channel: channel,
866 }
867 res = &Response{}
868 return res, cli.Action(req, res, opts...)
869 }
870
871 // StopMixMonitorAction Stop recording a call through MixMonitor, and free the recording's file handle.
872 type StopMixMonitorAction struct {
873 // ActionID ActionID for this transaction. Will be returned.
874 ActionID string
875 // Channel The name of the channel monitored.
876 Channel string
877 // MixMonitorID If a valid ID is provided, then this command will stop only that specific MixMonitor.
878 MixMonitorID string
879 }
880
881 func (StopMixMonitorAction) ActionTypeName() string {
882 return "StopMixMonitor"
883 }
884 func (a StopMixMonitorAction) GetActionID() string {
885 return a.ActionID
886 }
887 func (a *StopMixMonitorAction) SetActionID(actionID string) {
888 a.ActionID = actionID
889 }
890 func (cli *Client) StopMixMonitor(channel string, opts ...RequestOption) (res *Response, err error) {
891 req := &StopMixMonitorAction{
892 Channel: channel,
893 }
894 res = &Response{}
895 return res, cli.Action(req, res, opts...)
896 }
897
898 // PlayDTMFAction Play DTMF signal on a specific channel.
899 type PlayDTMFAction struct {
900 // ActionID ActionID for this transaction. Will be returned.
901 ActionID string
902 // Channel Channel name to send digit to.
903 Channel string
904 // Digit The DTMF digit to play.
905 Digit string
906 // Duration The duration, in milliseconds, of the digit to be played.
907 Duration string
908 // Receive Emulate receiving DTMF on this channel instead of sending it out.
909 Receive string
910 }
911
912 func (PlayDTMFAction) ActionTypeName() string {
913 return "PlayDTMF"
914 }
915 func (a PlayDTMFAction) GetActionID() string {
916 return a.ActionID
917 }
918 func (a *PlayDTMFAction) SetActionID(actionID string) {
919 a.ActionID = actionID
920 }
921 func (cli *Client) PlayDTMF(channel string, digit string, opts ...RequestOption) (res *Response, err error) {
922 req := &PlayDTMFAction{
923 Channel: channel,
924 Digit: digit,
925 }
926 res = &Response{}
927 return res, cli.Action(req, res, opts...)
928 }
929
930 // ConfbridgeListAction List participants in a conference.
931 type ConfbridgeListAction struct {
932 // ActionID ActionID for this transaction. Will be returned.
933 ActionID string
934 // Conference Conference number.
935 Conference string
936 }
937
938 func (ConfbridgeListAction) ActionTypeName() string {
939 return "ConfbridgeList"
940 }
941 func (a ConfbridgeListAction) GetActionID() string {
942 return a.ActionID
943 }
944 func (a *ConfbridgeListAction) SetActionID(actionID string) {
945 a.ActionID = actionID
946 }
947 func (cli *Client) ConfbridgeList(conference string, opts ...RequestOption) (res *Response, err error) {
948 req := &ConfbridgeListAction{
949 Conference: conference,
950 }
951 res = &Response{}
952 return res, cli.Action(req, res, opts...)
953 }
954
955 // ConfbridgeListRoomsAction List active conferences.
956 type ConfbridgeListRoomsAction struct {
957 // ActionID ActionID for this transaction. Will be returned.
958 ActionID string
959 }
960
961 func (ConfbridgeListRoomsAction) ActionTypeName() string {
962 return "ConfbridgeListRooms"
963 }
964 func (a ConfbridgeListRoomsAction) GetActionID() string {
965 return a.ActionID
966 }
967 func (a *ConfbridgeListRoomsAction) SetActionID(actionID string) {
968 a.ActionID = actionID
969 }
970 func (cli *Client) ConfbridgeListRooms(opts ...RequestOption) (res *Response, err error) {
971 req := &ConfbridgeListRoomsAction{}
972 res = &Response{}
973 return res, cli.Action(req, res, opts...)
974 }
975
976 // ConfbridgeMuteAction Mute a Confbridge user.
977 type ConfbridgeMuteAction struct {
978 // ActionID ActionID for this transaction. Will be returned.
979 ActionID string
980 Conference string
981 // Channel If this parameter is "participants", all non-admin channels will be muted.
982 Channel string
983 }
984
985 func (ConfbridgeMuteAction) ActionTypeName() string {
986 return "ConfbridgeMute"
987 }
988 func (a ConfbridgeMuteAction) GetActionID() string {
989 return a.ActionID
990 }
991 func (a *ConfbridgeMuteAction) SetActionID(actionID string) {
992 a.ActionID = actionID
993 }
994 func (cli *Client) ConfbridgeMute(conference string, channel string, opts ...RequestOption) (res *Response, err error) {
995 req := &ConfbridgeMuteAction{
996 Conference: conference,
997 Channel: channel,
998 }
999 res = &Response{}
1000 return res, cli.Action(req, res, opts...)
1001 }
1002
1003 // ConfbridgeUnmuteAction Unmute a Confbridge user.
1004 type ConfbridgeUnmuteAction struct {
1005 // ActionID ActionID for this transaction. Will be returned.
1006 ActionID string
1007 Conference string
1008 // Channel If this parameter is "participants", all non-admin channels will be unmuted.
1009 Channel string
1010 }
1011
1012 func (ConfbridgeUnmuteAction) ActionTypeName() string {
1013 return "ConfbridgeUnmute"
1014 }
1015 func (a ConfbridgeUnmuteAction) GetActionID() string {
1016 return a.ActionID
1017 }
1018 func (a *ConfbridgeUnmuteAction) SetActionID(actionID string) {
1019 a.ActionID = actionID
1020 }
1021 func (cli *Client) ConfbridgeUnmute(conference string, channel string, opts ...RequestOption) (res *Response, err error) {
1022 req := &ConfbridgeUnmuteAction{
1023 Conference: conference,
1024 Channel: channel,
1025 }
1026 res = &Response{}
1027 return res, cli.Action(req, res, opts...)
1028 }
1029
1030 // ConfbridgeKickAction Kick a Confbridge user.
1031 type ConfbridgeKickAction struct {
1032 // ActionID ActionID for this transaction. Will be returned.
1033 ActionID string
1034 Conference string
1035 // Channel If this parameter is "participants", all non-admin channels will be kicked from the conference.
1036 Channel string
1037 }
1038
1039 func (ConfbridgeKickAction) ActionTypeName() string {
1040 return "ConfbridgeKick"
1041 }
1042 func (a ConfbridgeKickAction) GetActionID() string {
1043 return a.ActionID
1044 }
1045 func (a *ConfbridgeKickAction) SetActionID(actionID string) {
1046 a.ActionID = actionID
1047 }
1048 func (cli *Client) ConfbridgeKick(conference string, channel string, opts ...RequestOption) (res *Response, err error) {
1049 req := &ConfbridgeKickAction{
1050 Conference: conference,
1051 Channel: channel,
1052 }
1053 res = &Response{}
1054 return res, cli.Action(req, res, opts...)
1055 }
1056
1057 // ConfbridgeLockAction Lock a Confbridge conference.
1058 type ConfbridgeLockAction struct {
1059 // ActionID ActionID for this transaction. Will be returned.
1060 ActionID string
1061 Conference string
1062 }
1063
1064 func (ConfbridgeLockAction) ActionTypeName() string {
1065 return "ConfbridgeLock"
1066 }
1067 func (a ConfbridgeLockAction) GetActionID() string {
1068 return a.ActionID
1069 }
1070 func (a *ConfbridgeLockAction) SetActionID(actionID string) {
1071 a.ActionID = actionID
1072 }
1073 func (cli *Client) ConfbridgeLock(conference string, opts ...RequestOption) (res *Response, err error) {
1074 req := &ConfbridgeLockAction{
1075 Conference: conference,
1076 }
1077 res = &Response{}
1078 return res, cli.Action(req, res, opts...)
1079 }
1080
1081 // ConfbridgeUnlockAction Unlock a Confbridge conference.
1082 type ConfbridgeUnlockAction struct {
1083 // ActionID ActionID for this transaction. Will be returned.
1084 ActionID string
1085 Conference string
1086 }
1087
1088 func (ConfbridgeUnlockAction) ActionTypeName() string {
1089 return "ConfbridgeUnlock"
1090 }
1091 func (a ConfbridgeUnlockAction) GetActionID() string {
1092 return a.ActionID
1093 }
1094 func (a *ConfbridgeUnlockAction) SetActionID(actionID string) {
1095 a.ActionID = actionID
1096 }
1097 func (cli *Client) ConfbridgeUnlock(conference string, opts ...RequestOption) (res *Response, err error) {
1098 req := &ConfbridgeUnlockAction{
1099 Conference: conference,
1100 }
1101 res = &Response{}
1102 return res, cli.Action(req, res, opts...)
1103 }
1104
1105 // ConfbridgeStartRecordAction Start recording a Confbridge conference.
1106 type ConfbridgeStartRecordAction struct {
1107 // ActionID ActionID for this transaction. Will be returned.
1108 ActionID string
1109 Conference string
1110 RecordFile string
1111 }
1112
1113 func (ConfbridgeStartRecordAction) ActionTypeName() string {
1114 return "ConfbridgeStartRecord"
1115 }
1116 func (a ConfbridgeStartRecordAction) GetActionID() string {
1117 return a.ActionID
1118 }
1119 func (a *ConfbridgeStartRecordAction) SetActionID(actionID string) {
1120 a.ActionID = actionID
1121 }
1122 func (cli *Client) ConfbridgeStartRecord(conference string, opts ...RequestOption) (res *Response, err error) {
1123 req := &ConfbridgeStartRecordAction{
1124 Conference: conference,
1125 }
1126 res = &Response{}
1127 return res, cli.Action(req, res, opts...)
1128 }
1129
1130 // ConfbridgeStopRecordAction Stop recording a Confbridge conference.
1131 type ConfbridgeStopRecordAction struct {
1132 // ActionID ActionID for this transaction. Will be returned.
1133 ActionID string
1134 Conference string
1135 }
1136
1137 func (ConfbridgeStopRecordAction) ActionTypeName() string {
1138 return "ConfbridgeStopRecord"
1139 }
1140 func (a ConfbridgeStopRecordAction) GetActionID() string {
1141 return a.ActionID
1142 }
1143 func (a *ConfbridgeStopRecordAction) SetActionID(actionID string) {
1144 a.ActionID = actionID
1145 }
1146 func (cli *Client) ConfbridgeStopRecord(conference string, opts ...RequestOption) (res *Response, err error) {
1147 req := &ConfbridgeStopRecordAction{
1148 Conference: conference,
1149 }
1150 res = &Response{}
1151 return res, cli.Action(req, res, opts...)
1152 }
1153
1154 // ConfbridgeSetSingleVideoSrcAction Set a conference user as the single video source distributed to all other participants.
1155 type ConfbridgeSetSingleVideoSrcAction struct {
1156 // ActionID ActionID for this transaction. Will be returned.
1157 ActionID string
1158 Conference string
1159 // Channel If this parameter is not a complete channel name, the first channel with this prefix will be used.
1160 Channel string
1161 }
1162
1163 func (ConfbridgeSetSingleVideoSrcAction) ActionTypeName() string {
1164 return "ConfbridgeSetSingleVideoSrc"
1165 }
1166 func (a ConfbridgeSetSingleVideoSrcAction) GetActionID() string {
1167 return a.ActionID
1168 }
1169 func (a *ConfbridgeSetSingleVideoSrcAction) SetActionID(actionID string) {
1170 a.ActionID = actionID
1171 }
1172 func (cli *Client) ConfbridgeSetSingleVideoSrc(conference string, channel string, opts ...RequestOption) (res *Response, err error) {
1173 req := &ConfbridgeSetSingleVideoSrcAction{
1174 Conference: conference,
1175 Channel: channel,
1176 }
1177 res = &Response{}
1178 return res, cli.Action(req, res, opts...)
1179 }
1180
1181 // MeetmeMuteAction Mute a Meetme user.
1182 type MeetmeMuteAction struct {
1183 // ActionID ActionID for this transaction. Will be returned.
1184 ActionID string
1185 Meetme string
1186 Usernum string
1187 }
1188
1189 func (MeetmeMuteAction) ActionTypeName() string {
1190 return "MeetmeMute"
1191 }
1192 func (a MeetmeMuteAction) GetActionID() string {
1193 return a.ActionID
1194 }
1195 func (a *MeetmeMuteAction) SetActionID(actionID string) {
1196 a.ActionID = actionID
1197 }
1198 func (cli *Client) MeetmeMute(meetme string, usernum string, opts ...RequestOption) (res *Response, err error) {
1199 req := &MeetmeMuteAction{
1200 Meetme: meetme,
1201 Usernum: usernum,
1202 }
1203 res = &Response{}
1204 return res, cli.Action(req, res, opts...)
1205 }
1206
1207 // MeetmeUnmuteAction Unmute a Meetme user.
1208 type MeetmeUnmuteAction struct {
1209 // ActionID ActionID for this transaction. Will be returned.
1210 ActionID string
1211 Meetme string
1212 Usernum string
1213 }
1214
1215 func (MeetmeUnmuteAction) ActionTypeName() string {
1216 return "MeetmeUnmute"
1217 }
1218 func (a MeetmeUnmuteAction) GetActionID() string {
1219 return a.ActionID
1220 }
1221 func (a *MeetmeUnmuteAction) SetActionID(actionID string) {
1222 a.ActionID = actionID
1223 }
1224 func (cli *Client) MeetmeUnmute(meetme string, usernum string, opts ...RequestOption) (res *Response, err error) {
1225 req := &MeetmeUnmuteAction{
1226 Meetme: meetme,
1227 Usernum: usernum,
1228 }
1229 res = &Response{}
1230 return res, cli.Action(req, res, opts...)
1231 }
1232
1233 // MeetmeListAction List participants in a conference.
1234 type MeetmeListAction struct {
1235 // ActionID ActionID for this transaction. Will be returned.
1236 ActionID string
1237 // Conference Conference number.
1238 Conference string
1239 }
1240
1241 func (MeetmeListAction) ActionTypeName() string {
1242 return "MeetmeList"
1243 }
1244 func (a MeetmeListAction) GetActionID() string {
1245 return a.ActionID
1246 }
1247 func (a *MeetmeListAction) SetActionID(actionID string) {
1248 a.ActionID = actionID
1249 }
1250 func (cli *Client) MeetmeList(opts ...RequestOption) (res *Response, err error) {
1251 req := &MeetmeListAction{}
1252 res = &Response{}
1253 return res, cli.Action(req, res, opts...)
1254 }
1255
1256 // MeetmeListRoomsAction List active conferences.
1257 type MeetmeListRoomsAction struct {
1258 // ActionID ActionID for this transaction. Will be returned.
1259 ActionID string
1260 }
1261
1262 func (MeetmeListRoomsAction) ActionTypeName() string {
1263 return "MeetmeListRooms"
1264 }
1265 func (a MeetmeListRoomsAction) GetActionID() string {
1266 return a.ActionID
1267 }
1268 func (a *MeetmeListRoomsAction) SetActionID(actionID string) {
1269 a.ActionID = actionID
1270 }
1271 func (cli *Client) MeetmeListRooms(opts ...RequestOption) (res *Response, err error) {
1272 req := &MeetmeListRoomsAction{}
1273 res = &Response{}
1274 return res, cli.Action(req, res, opts...)
1275 }
1276
1277 // QueueStatusAction Show queue status.
1278 type QueueStatusAction struct {
1279 // ActionID ActionID for this transaction. Will be returned.
1280 ActionID string
1281 // Queue Limit the response to the status of the specified queue.
1282 Queue string
1283 // Member Limit the response to the status of the specified member.
1284 Member string
1285 }
1286
1287 func (QueueStatusAction) ActionTypeName() string {
1288 return "QueueStatus"
1289 }
1290 func (a QueueStatusAction) GetActionID() string {
1291 return a.ActionID
1292 }
1293 func (a *QueueStatusAction) SetActionID(actionID string) {
1294 a.ActionID = actionID
1295 }
1296 func (cli *Client) QueueStatus(opts ...RequestOption) (res *Response, err error) {
1297 req := &QueueStatusAction{}
1298 res = &Response{}
1299 return res, cli.Action(req, res, opts...)
1300 }
1301
1302 // QueueSummaryAction Show queue summary.
1303 type QueueSummaryAction struct {
1304 // ActionID ActionID for this transaction. Will be returned.
1305 ActionID string
1306 // Queue Queue for which the summary is requested.
1307 Queue string
1308 }
1309
1310 func (QueueSummaryAction) ActionTypeName() string {
1311 return "QueueSummary"
1312 }
1313 func (a QueueSummaryAction) GetActionID() string {
1314 return a.ActionID
1315 }
1316 func (a *QueueSummaryAction) SetActionID(actionID string) {
1317 a.ActionID = actionID
1318 }
1319 func (cli *Client) QueueSummary(opts ...RequestOption) (res *Response, err error) {
1320 req := &QueueSummaryAction{}
1321 res = &Response{}
1322 return res, cli.Action(req, res, opts...)
1323 }
1324
1325 // QueueAddAction Add interface to queue.
1326 type QueueAddAction struct {
1327 // ActionID ActionID for this transaction. Will be returned.
1328 ActionID string
1329 // Queue Queue's name.
1330 Queue string
1331 // Interface The name of the interface (tech/name) to add to the queue.
1332 Interface string
1333 // Penalty A penalty (number) to apply to this member. Asterisk will distribute calls to members with higher penalties only after attempting to distribute calls to those with lower penalty.
1334 Penalty string
1335 // Paused To pause or not the member initially (true/false or 1/0).
1336 Paused string
1337 // MemberName Text alias for the interface.
1338 MemberName string
1339 StateInterface string
1340 }
1341
1342 func (QueueAddAction) ActionTypeName() string {
1343 return "QueueAdd"
1344 }
1345 func (a QueueAddAction) GetActionID() string {
1346 return a.ActionID
1347 }
1348 func (a *QueueAddAction) SetActionID(actionID string) {
1349 a.ActionID = actionID
1350 }
1351 func (cli *Client) QueueAdd(queue string, iface string, opts ...RequestOption) (res *Response, err error) {
1352 req := &QueueAddAction{
1353 Queue: queue,
1354 Interface: iface,
1355 }
1356 res = &Response{}
1357 return res, cli.Action(req, res, opts...)
1358 }
1359
1360 // QueueRemoveAction Remove interface from queue.
1361 type QueueRemoveAction struct {
1362 // ActionID ActionID for this transaction. Will be returned.
1363 ActionID string
1364 // Queue The name of the queue to take action on.
1365 Queue string
1366 // Interface The interface (tech/name) to remove from queue.
1367 Interface string
1368 }
1369
1370 func (QueueRemoveAction) ActionTypeName() string {
1371 return "QueueRemove"
1372 }
1373 func (a QueueRemoveAction) GetActionID() string {
1374 return a.ActionID
1375 }
1376 func (a *QueueRemoveAction) SetActionID(actionID string) {
1377 a.ActionID = actionID
1378 }
1379 func (cli *Client) QueueRemove(queue string, iface string, opts ...RequestOption) (res *Response, err error) {
1380 req := &QueueRemoveAction{
1381 Queue: queue,
1382 Interface: iface,
1383 }
1384 res = &Response{}
1385 return res, cli.Action(req, res, opts...)
1386 }
1387
1388 // QueuePauseAction Makes a queue member temporarily unavailable.
1389 type QueuePauseAction struct {
1390 // ActionID ActionID for this transaction. Will be returned.
1391 ActionID string
1392 // Interface The name of the interface (tech/name) to pause or unpause.
1393 Interface string
1394 // Paused Pause or unpause the interface. Set to 'true' to pause the member or 'false' to unpause.
1395 Paused string
1396 // Queue The name of the queue in which to pause or unpause this member. If not specified, the member will be paused or unpaused in all the queues it is a member of.
1397 Queue string
1398 // Reason Text description, returned in the event QueueMemberPaused.
1399 Reason string
1400 }
1401
1402 func (QueuePauseAction) ActionTypeName() string {
1403 return "QueuePause"
1404 }
1405 func (a QueuePauseAction) GetActionID() string {
1406 return a.ActionID
1407 }
1408 func (a *QueuePauseAction) SetActionID(actionID string) {
1409 a.ActionID = actionID
1410 }
1411 func (cli *Client) QueuePause(iface string, paused string, opts ...RequestOption) (res *Response, err error) {
1412 req := &QueuePauseAction{
1413 Interface: iface,
1414 Paused: paused,
1415 }
1416 res = &Response{}
1417 return res, cli.Action(req, res, opts...)
1418 }
1419
1420 // QueueLogAction Adds custom entry in queue_log.
1421 type QueueLogAction struct {
1422 // ActionID ActionID for this transaction. Will be returned.
1423 ActionID string
1424 Queue string
1425 Event string
1426 Uniqueid string
1427 Interface string
1428 Message string
1429 }
1430
1431 func (QueueLogAction) ActionTypeName() string {
1432 return "QueueLog"
1433 }
1434 func (a QueueLogAction) GetActionID() string {
1435 return a.ActionID
1436 }
1437 func (a *QueueLogAction) SetActionID(actionID string) {
1438 a.ActionID = actionID
1439 }
1440 func (cli *Client) QueueLog(queue string, event string, opts ...RequestOption) (res *Response, err error) {
1441 req := &QueueLogAction{
1442 Queue: queue,
1443 Event: event,
1444 }
1445 res = &Response{}
1446 return res, cli.Action(req, res, opts...)
1447 }
1448
1449 // QueuePenaltyAction Set the penalty for a queue member.
1450 type QueuePenaltyAction struct {
1451 // ActionID ActionID for this transaction. Will be returned.
1452 ActionID string
1453 // Interface The interface (tech/name) of the member whose penalty to change.
1454 Interface string
1455 // Penalty The new penalty (number) for the member. Must be nonnegative.
1456 Penalty string
1457 // Queue If specified, only set the penalty for the member of this queue. Otherwise, set the penalty for the member in all queues to which the member belongs.
1458 Queue string
1459 }
1460
1461 func (QueuePenaltyAction) ActionTypeName() string {
1462 return "QueuePenalty"
1463 }
1464 func (a QueuePenaltyAction) GetActionID() string {
1465 return a.ActionID
1466 }
1467 func (a *QueuePenaltyAction) SetActionID(actionID string) {
1468 a.ActionID = actionID
1469 }
1470 func (cli *Client) QueuePenalty(iface string, penalty string, opts ...RequestOption) (res *Response, err error) {
1471 req := &QueuePenaltyAction{
1472 Interface: iface,
1473 Penalty: penalty,
1474 }
1475 res = &Response{}
1476 return res, cli.Action(req, res, opts...)
1477 }
1478
1479 // QueueMemberRingInUseAction Set the ringinuse value for a queue member.
1480 type QueueMemberRingInUseAction struct {
1481 // ActionID ActionID for this transaction. Will be returned.
1482 ActionID string
1483 Interface string
1484 RingInUse string
1485 Queue string
1486 }
1487
1488 func (QueueMemberRingInUseAction) ActionTypeName() string {
1489 return "QueueMemberRingInUse"
1490 }
1491 func (a QueueMemberRingInUseAction) GetActionID() string {
1492 return a.ActionID
1493 }
1494 func (a *QueueMemberRingInUseAction) SetActionID(actionID string) {
1495 a.ActionID = actionID
1496 }
1497 func (cli *Client) QueueMemberRingInUse(iface string, ringInUse string, opts ...RequestOption) (res *Response, err error) {
1498 req := &QueueMemberRingInUseAction{
1499 Interface: iface,
1500 RingInUse: ringInUse,
1501 }
1502 res = &Response{}
1503 return res, cli.Action(req, res, opts...)
1504 }
1505
1506 // QueueRuleAction Queue Rules.
1507 type QueueRuleAction struct {
1508 // ActionID ActionID for this transaction. Will be returned.
1509 ActionID string
1510 // Rule The name of the rule in queuerules.conf whose contents to list.
1511 Rule string
1512 }
1513
1514 func (QueueRuleAction) ActionTypeName() string {
1515 return "QueueRule"
1516 }
1517 func (a QueueRuleAction) GetActionID() string {
1518 return a.ActionID
1519 }
1520 func (a *QueueRuleAction) SetActionID(actionID string) {
1521 a.ActionID = actionID
1522 }
1523 func (cli *Client) QueueRule(opts ...RequestOption) (res *Response, err error) {
1524 req := &QueueRuleAction{}
1525 res = &Response{}
1526 return res, cli.Action(req, res, opts...)
1527 }
1528
1529 // QueueReloadAction Reload a queue, queues, or any sub-section of a queue or queues.
1530 type QueueReloadAction struct {
1531 // ActionID ActionID for this transaction. Will be returned.
1532 ActionID string
1533 // Queue The name of the queue to take action on. If no queue name is specified, then all queues are affected.
1534 Queue string
1535 // Members Whether to reload the queue's members.
1536 Members string
1537 // Rules Whether to reload queuerules.conf
1538 Rules string
1539 // Parameters Whether to reload the other queue options.
1540 Parameters string
1541 }
1542
1543 func (QueueReloadAction) ActionTypeName() string {
1544 return "QueueReload"
1545 }
1546 func (a QueueReloadAction) GetActionID() string {
1547 return a.ActionID
1548 }
1549 func (a *QueueReloadAction) SetActionID(actionID string) {
1550 a.ActionID = actionID
1551 }
1552 func (cli *Client) QueueReload(opts ...RequestOption) (res *Response, err error) {
1553 req := &QueueReloadAction{}
1554 res = &Response{}
1555 return res, cli.Action(req, res, opts...)
1556 }
1557
1558 // QueueResetAction Reset queue statistics.
1559 type QueueResetAction struct {
1560 // ActionID ActionID for this transaction. Will be returned.
1561 ActionID string
1562 // Queue The name of the queue on which to reset statistics.
1563 Queue string
1564 }
1565
1566 func (QueueResetAction) ActionTypeName() string {
1567 return "QueueReset"
1568 }
1569 func (a QueueResetAction) GetActionID() string {
1570 return a.ActionID
1571 }
1572 func (a *QueueResetAction) SetActionID(actionID string) {
1573 a.ActionID = actionID
1574 }
1575 func (cli *Client) QueueReset(opts ...RequestOption) (res *Response, err error) {
1576 req := &QueueResetAction{}
1577 res = &Response{}
1578 return res, cli.Action(req, res, opts...)
1579 }
1580
1581 // QueueChangePriorityCallerAction Change priority of a caller on queue.
1582 type QueueChangePriorityCallerAction struct {
1583 // ActionID ActionID for this transaction. Will be returned.
1584 ActionID string
1585 // Queue The name of the queue to take action on.
1586 Queue string
1587 // Caller The caller (channel) to change priority on queue.
1588 Caller string
1589 // Priority Priority value for change for caller on queue.
1590 Priority int
1591 }
1592
1593 func (QueueChangePriorityCallerAction) ActionTypeName() string {
1594 return "QueueChangePriorityCaller"
1595 }
1596 func (a QueueChangePriorityCallerAction) GetActionID() string {
1597 return a.ActionID
1598 }
1599 func (a *QueueChangePriorityCallerAction) SetActionID(actionID string) {
1600 a.ActionID = actionID
1601 }
1602 func (cli *Client) QueueChangePriorityCaller(queue string, caller string, priority int, opts ...RequestOption) (res *Response, err error) {
1603 req := &QueueChangePriorityCallerAction{
1604 Queue: queue,
1605 Caller: caller,
1606 Priority: priority,
1607 }
1608 res = &Response{}
1609 return res, cli.Action(req, res, opts...)
1610 }
1611
1612 // PingAction Keepalive command.
1613 type PingAction struct {
1614 // ActionID ActionID for this transaction. Will be returned.
1615 ActionID string
1616 }
1617
1618 func (PingAction) ActionTypeName() string {
1619 return "Ping"
1620 }
1621 func (a PingAction) GetActionID() string {
1622 return a.ActionID
1623 }
1624 func (a *PingAction) SetActionID(actionID string) {
1625 a.ActionID = actionID
1626 }
1627 func (cli *Client) Ping(opts ...RequestOption) (res *Response, err error) {
1628 req := &PingAction{}
1629 res = &Response{}
1630 return res, cli.Action(req, res, opts...)
1631 }
1632
1633 // EventsAction Control Event Flow.
1634 type EventsAction struct {
1635 // ActionID ActionID for this transaction. Will be returned.
1636 ActionID string
1637 EventMask string
1638 }
1639
1640 func (EventsAction) ActionTypeName() string {
1641 return "Events"
1642 }
1643 func (a EventsAction) GetActionID() string {
1644 return a.ActionID
1645 }
1646 func (a *EventsAction) SetActionID(actionID string) {
1647 a.ActionID = actionID
1648 }
1649 func (cli *Client) Events(eventMask string, opts ...RequestOption) (res *Response, err error) {
1650 req := &EventsAction{
1651 EventMask: eventMask,
1652 }
1653 res = &Response{}
1654 return res, cli.Action(req, res, opts...)
1655 }
1656
1657 // LogoffAction Logoff Manager.
1658 type LogoffAction struct {
1659 // ActionID ActionID for this transaction. Will be returned.
1660 ActionID string
1661 }
1662
1663 func (LogoffAction) ActionTypeName() string {
1664 return "Logoff"
1665 }
1666 func (a LogoffAction) GetActionID() string {
1667 return a.ActionID
1668 }
1669 func (a *LogoffAction) SetActionID(actionID string) {
1670 a.ActionID = actionID
1671 }
1672 func (cli *Client) Logoff(opts ...RequestOption) (res *Response, err error) {
1673 req := &LogoffAction{}
1674 res = &Response{}
1675 return res, cli.Action(req, res, opts...)
1676 }
1677
1678 // LoginAction Login Manager.
1679 type LoginAction struct {
1680 // ActionID ActionID for this transaction. Will be returned.
1681 ActionID string
1682 // UserName Username to login with as specified in manager.conf.
1683 UserName string
1684 // Secret Secret to login with as specified in manager.conf.
1685 Secret string
1686 }
1687
1688 func (LoginAction) ActionTypeName() string {
1689 return "Login"
1690 }
1691 func (a LoginAction) GetActionID() string {
1692 return a.ActionID
1693 }
1694 func (a *LoginAction) SetActionID(actionID string) {
1695 a.ActionID = actionID
1696 }
1697 func (cli *Client) Login(userName string, opts ...RequestOption) (res *Response, err error) {
1698 req := &LoginAction{
1699 UserName: userName,
1700 }
1701 res = &Response{}
1702 return res, cli.Action(req, res, opts...)
1703 }
1704
1705 // ChallengeAction Generate Challenge for MD5 Auth.
1706 type ChallengeAction struct {
1707 // ActionID ActionID for this transaction. Will be returned.
1708 ActionID string
1709 // AuthType Digest algorithm to use in the challenge. Valid values are:
1710 AuthType string
1711 }
1712
1713 func (ChallengeAction) ActionTypeName() string {
1714 return "Challenge"
1715 }
1716 func (a ChallengeAction) GetActionID() string {
1717 return a.ActionID
1718 }
1719 func (a *ChallengeAction) SetActionID(actionID string) {
1720 a.ActionID = actionID
1721 }
1722 func (cli *Client) Challenge(authType string, opts ...RequestOption) (res *Response, err error) {
1723 req := &ChallengeAction{
1724 AuthType: authType,
1725 }
1726 res = &Response{}
1727 return res, cli.Action(req, res, opts...)
1728 }
1729
1730 // HangupAction Hangup channel.
1731 type HangupAction struct {
1732 // ActionID ActionID for this transaction. Will be returned.
1733 ActionID string
1734 // Channel Example regular expression: /^SIP/provider-.*$/
1735 Channel string
1736 // Cause Numeric hangup cause.
1737 Cause string
1738 }
1739
1740 func (HangupAction) ActionTypeName() string {
1741 return "Hangup"
1742 }
1743 func (a HangupAction) GetActionID() string {
1744 return a.ActionID
1745 }
1746 func (a *HangupAction) SetActionID(actionID string) {
1747 a.ActionID = actionID
1748 }
1749 func (cli *Client) Hangup(channel string, opts ...RequestOption) (res *Response, err error) {
1750 req := &HangupAction{
1751 Channel: channel,
1752 }
1753 res = &Response{}
1754 return res, cli.Action(req, res, opts...)
1755 }
1756
1757 // StatusAction List channel status.
1758 type StatusAction struct {
1759 // ActionID ActionID for this transaction. Will be returned.
1760 ActionID string
1761 // Channel The name of the channel to query for status.
1762 Channel string
1763 // Variables Comma `,` separated list of variable to include.
1764 Variables string
1765 // AllVariables If set to "true", the Status event will include all channel variables for the requested channel(s).
1766 AllVariables string
1767 }
1768
1769 func (StatusAction) ActionTypeName() string {
1770 return "Status"
1771 }
1772 func (a StatusAction) GetActionID() string {
1773 return a.ActionID
1774 }
1775 func (a *StatusAction) SetActionID(actionID string) {
1776 a.ActionID = actionID
1777 }
1778
1779 // SetvarAction Sets a channel variable or function value.
1780 type SetvarAction struct {
1781 // ActionID ActionID for this transaction. Will be returned.
1782 ActionID string
1783 // Channel Channel to set variable for.
1784 Channel string
1785 // Variable Variable name, function or expression.
1786 Variable string
1787 // Value Variable or function value.
1788 Value string
1789 }
1790
1791 func (SetvarAction) ActionTypeName() string {
1792 return "Setvar"
1793 }
1794 func (a SetvarAction) GetActionID() string {
1795 return a.ActionID
1796 }
1797 func (a *SetvarAction) SetActionID(actionID string) {
1798 a.ActionID = actionID
1799 }
1800 func (cli *Client) Setvar(variable string, value string, opts ...RequestOption) (res *Response, err error) {
1801 req := &SetvarAction{
1802 Variable: variable,
1803 Value: value,
1804 }
1805 res = &Response{}
1806 return res, cli.Action(req, res, opts...)
1807 }
1808
1809 // GetvarAction Gets a channel variable or function value.
1810 type GetvarAction struct {
1811 // ActionID ActionID for this transaction. Will be returned.
1812 ActionID string
1813 // Channel Channel to read variable from.
1814 Channel string
1815 // Variable Variable name, function or expression.
1816 Variable string
1817 }
1818
1819 func (GetvarAction) ActionTypeName() string {
1820 return "Getvar"
1821 }
1822 func (a GetvarAction) GetActionID() string {
1823 return a.ActionID
1824 }
1825 func (a *GetvarAction) SetActionID(actionID string) {
1826 a.ActionID = actionID
1827 }
1828 func (cli *Client) Getvar(variable string, opts ...RequestOption) (res *Response, err error) {
1829 req := &GetvarAction{
1830 Variable: variable,
1831 }
1832 res = &Response{}
1833 return res, cli.Action(req, res, opts...)
1834 }
1835
1836 // GetConfigAction Retrieve configuration.
1837 type GetConfigAction struct {
1838 // ActionID ActionID for this transaction. Will be returned.
1839 ActionID string
1840 // FileName Configuration filename (e.g. foo.conf ).
1841 FileName string
1842 // Category Category in configuration file.
1843 Category string
1844 // Filter A comma separated list of name_regex = value_regex expressions which will cause only categories whose variables match all expressions to be considered. The special variable name `TEMPLATES` can be used to control whether templates are included. Passing `include` as the value will include templates along with normal categories. Passing `restrict` as the value will restrict the operation to ONLY templates. Not specifying a `TEMPLATES` expression results in the default behavior which is to not include templates.
1845 Filter string
1846 }
1847
1848 func (GetConfigAction) ActionTypeName() string {
1849 return "GetConfig"
1850 }
1851 func (a GetConfigAction) GetActionID() string {
1852 return a.ActionID
1853 }
1854 func (a *GetConfigAction) SetActionID(actionID string) {
1855 a.ActionID = actionID
1856 }
1857 func (cli *Client) GetConfig(fileName string, opts ...RequestOption) (res *Response, err error) {
1858 req := &GetConfigAction{
1859 FileName: fileName,
1860 }
1861 res = &Response{}
1862 return res, cli.Action(req, res, opts...)
1863 }
1864
1865 // GetConfigJSONAction Retrieve configuration (JSON format).
1866 type GetConfigJSONAction struct {
1867 // ActionID ActionID for this transaction. Will be returned.
1868 ActionID string
1869 // FileName Configuration filename (e.g. foo.conf ).
1870 FileName string
1871 // Category Category in configuration file.
1872 Category string
1873 // Filter A comma separated list of name_regex = value_regex expressions which will cause only categories whose variables match all expressions to be considered. The special variable name `TEMPLATES` can be used to control whether templates are included. Passing `include` as the value will include templates along with normal categories. Passing `restrict` as the value will restrict the operation to ONLY templates. Not specifying a `TEMPLATES` expression results in the default behavior which is to not include templates.
1874 Filter string
1875 }
1876
1877 func (GetConfigJSONAction) ActionTypeName() string {
1878 return "GetConfigJSON"
1879 }
1880 func (a GetConfigJSONAction) GetActionID() string {
1881 return a.ActionID
1882 }
1883 func (a *GetConfigJSONAction) SetActionID(actionID string) {
1884 a.ActionID = actionID
1885 }
1886 func (cli *Client) GetConfigJSON(fileName string, opts ...RequestOption) (res *Response, err error) {
1887 req := &GetConfigJSONAction{
1888 FileName: fileName,
1889 }
1890 res = &Response{}
1891 return res, cli.Action(req, res, opts...)
1892 }
1893
1894 // UpdateConfigAction Update basic configuration.
1895 type UpdateConfigAction struct {
1896 // ActionID ActionID for this transaction. Will be returned.
1897 ActionID string
1898 // SrcFileName Configuration filename to read (e.g. foo.conf ).
1899 SrcFileName string
1900 // DstFileName Configuration filename to write (e.g. foo.conf )
1901 DstFileName string
1902 // Reload Whether or not a reload should take place (or name of specific module).
1903 Reload string
1904 // PreserveEffectiveContext Whether the effective category contents should be preserved on template change. Default is true (pre 13.2 behavior).
1905 PreserveEffectiveContext string
1906 // Action000000 0's represent 6 digit number beginning with 000000.
1907 Action000000 string
1908 // Cat000000 0's represent 6 digit number beginning with 000000.
1909 Cat000000 string
1910 // Var000000 0's represent 6 digit number beginning with 000000.
1911 Var000000 string
1912 // Value000000 0's represent 6 digit number beginning with 000000.
1913 Value000000 string
1914 // Match000000 0's represent 6 digit number beginning with 000000.
1915 Match000000 string
1916 // Line000000 0's represent 6 digit number beginning with 000000.
1917 Line000000 string
1918 // Options000000 0's represent 6 digit number beginning with 000000.
1919 Options000000 string
1920 }
1921
1922 func (UpdateConfigAction) ActionTypeName() string {
1923 return "UpdateConfig"
1924 }
1925 func (a UpdateConfigAction) GetActionID() string {
1926 return a.ActionID
1927 }
1928 func (a *UpdateConfigAction) SetActionID(actionID string) {
1929 a.ActionID = actionID
1930 }
1931 func (cli *Client) UpdateConfig(srcFileName string, dstFileName string, opts ...RequestOption) (res *Response, err error) {
1932 req := &UpdateConfigAction{
1933 SrcFileName: srcFileName,
1934 DstFileName: dstFileName,
1935 }
1936 res = &Response{}
1937 return res, cli.Action(req, res, opts...)
1938 }
1939
1940 // CreateConfigAction Creates an empty file in the configuration directory.
1941 type CreateConfigAction struct {
1942 // ActionID ActionID for this transaction. Will be returned.
1943 ActionID string
1944 // FileName The configuration filename to create (e.g. foo.conf ).
1945 FileName string
1946 }
1947
1948 func (CreateConfigAction) ActionTypeName() string {
1949 return "CreateConfig"
1950 }
1951 func (a CreateConfigAction) GetActionID() string {
1952 return a.ActionID
1953 }
1954 func (a *CreateConfigAction) SetActionID(actionID string) {
1955 a.ActionID = actionID
1956 }
1957 func (cli *Client) CreateConfig(fileName string, opts ...RequestOption) (res *Response, err error) {
1958 req := &CreateConfigAction{
1959 FileName: fileName,
1960 }
1961 res = &Response{}
1962 return res, cli.Action(req, res, opts...)
1963 }
1964
1965 // ListCategoriesAction List categories in configuration file.
1966 type ListCategoriesAction struct {
1967 // ActionID ActionID for this transaction. Will be returned.
1968 ActionID string
1969 // FileName Configuration filename (e.g. foo.conf ).
1970 FileName string
1971 }
1972
1973 func (ListCategoriesAction) ActionTypeName() string {
1974 return "ListCategories"
1975 }
1976 func (a ListCategoriesAction) GetActionID() string {
1977 return a.ActionID
1978 }
1979 func (a *ListCategoriesAction) SetActionID(actionID string) {
1980 a.ActionID = actionID
1981 }
1982 func (cli *Client) ListCategories(fileName string, opts ...RequestOption) (res *Response, err error) {
1983 req := &ListCategoriesAction{
1984 FileName: fileName,
1985 }
1986 res = &Response{}
1987 return res, cli.Action(req, res, opts...)
1988 }
1989
1990 // RedirectAction Redirect (transfer) a call.
1991 type RedirectAction struct {
1992 // ActionID ActionID for this transaction. Will be returned.
1993 ActionID string
1994 // Channel Channel to redirect.
1995 Channel string
1996 // ExtraChannel Second call leg to transfer (optional).
1997 ExtraChannel string
1998 // Exten Extension to transfer to.
1999 Exten string
2000 // ExtraExten Extension to transfer extrachannel to (optional).
2001 ExtraExten string
2002 // Context Context to transfer to.
2003 Context string
2004 // ExtraContext Context to transfer extrachannel to (optional).
2005 ExtraContext string
2006 // Priority Priority to transfer to.
2007 Priority int
2008 // ExtraPriority Priority to transfer extrachannel to (optional).
2009 ExtraPriority string
2010 }
2011
2012 func (RedirectAction) ActionTypeName() string {
2013 return "Redirect"
2014 }
2015 func (a RedirectAction) GetActionID() string {
2016 return a.ActionID
2017 }
2018 func (a *RedirectAction) SetActionID(actionID string) {
2019 a.ActionID = actionID
2020 }
2021 func (cli *Client) Redirect(channel string, exten string, context string, priority int, opts ...RequestOption) (res *Response, err error) {
2022 req := &RedirectAction{
2023 Channel: channel,
2024 Exten: exten,
2025 Context: context,
2026 Priority: priority,
2027 }
2028 res = &Response{}
2029 return res, cli.Action(req, res, opts...)
2030 }
2031
2032 // AtxferAction Attended transfer.
2033 type AtxferAction struct {
2034 // ActionID ActionID for this transaction. Will be returned.
2035 ActionID string
2036 // Channel Transferer's channel.
2037 Channel string
2038 // Exten Extension to transfer to.
2039 Exten string
2040 // Context Context to transfer to.
2041 Context string
2042 }
2043
2044 func (AtxferAction) ActionTypeName() string {
2045 return "Atxfer"
2046 }
2047 func (a AtxferAction) GetActionID() string {
2048 return a.ActionID
2049 }
2050 func (a *AtxferAction) SetActionID(actionID string) {
2051 a.ActionID = actionID
2052 }
2053 func (cli *Client) Atxfer(channel string, exten string, opts ...RequestOption) (res *Response, err error) {
2054 req := &AtxferAction{
2055 Channel: channel,
2056 Exten: exten,
2057 }
2058 res = &Response{}
2059 return res, cli.Action(req, res, opts...)
2060 }
2061
2062 // CancelAtxferAction Cancel an attended transfer.
2063 type CancelAtxferAction struct {
2064 // ActionID ActionID for this transaction. Will be returned.
2065 ActionID string
2066 // Channel The transferer channel.
2067 Channel string
2068 }
2069
2070 func (CancelAtxferAction) ActionTypeName() string {
2071 return "CancelAtxfer"
2072 }
2073 func (a CancelAtxferAction) GetActionID() string {
2074 return a.ActionID
2075 }
2076 func (a *CancelAtxferAction) SetActionID(actionID string) {
2077 a.ActionID = actionID
2078 }
2079 func (cli *Client) CancelAtxfer(channel string, opts ...RequestOption) (res *Response, err error) {
2080 req := &CancelAtxferAction{
2081 Channel: channel,
2082 }
2083 res = &Response{}
2084 return res, cli.Action(req, res, opts...)
2085 }
2086
2087 // OriginateAction Originate a call.
2088 type OriginateAction struct {
2089 // ActionID ActionID for this transaction. Will be returned.
2090 ActionID string
2091 // Channel Channel name to call.
2092 Channel string
2093 // Exten Extension to use (requires `Context` and `Priority`)
2094 Exten string
2095 // Context Context to use (requires `Exten` and `Priority`)
2096 Context string
2097 // Priority Priority to use (requires `Exten` and `Context`)
2098 Priority int
2099 // Application Application to execute.
2100 Application string
2101 // Data Data to use (requires `Application`).
2102 Data string
2103 // Timeout How long to wait for call to be answered (in ms.).
2104 Timeout int
2105 // CallerID Caller ID to be set on the outgoing channel.
2106 CallerID string
2107 // Variable Channel variable to set, multiple Variable: headers are allowed.
2108 Variable string
2109 // Account Account code.
2110 Account string
2111 // EarlyMedia Set to `true` to force call bridge on early media..
2112 EarlyMedia string
2113 // Async Set to `true` for fast origination.
2114 Async string
2115 // Codecs Comma-separated list of codecs to use for this call.
2116 Codecs string
2117 // ChannelId Channel UniqueId to be set on the channel.
2118 ChannelId string
2119 // OtherChannelId Channel UniqueId to be set on the second local channel.
2120 OtherChannelId string
2121 }
2122
2123 func (OriginateAction) ActionTypeName() string {
2124 return "Originate"
2125 }
2126 func (a OriginateAction) GetActionID() string {
2127 return a.ActionID
2128 }
2129 func (a *OriginateAction) SetActionID(actionID string) {
2130 a.ActionID = actionID
2131 }
2132 func (cli *Client) Originate(channel string, opts ...RequestOption) (res *Response, err error) {
2133 req := &OriginateAction{
2134 Channel: channel,
2135 }
2136 res = &Response{}
2137 return res, cli.Action(req, res, opts...)
2138 }
2139
2140 // CommandAction Execute Asterisk CLI Command.
2141 type CommandAction struct {
2142 // ActionID ActionID for this transaction. Will be returned.
2143 ActionID string
2144 // Command Asterisk CLI command to run.
2145 Command string
2146 }
2147
2148 func (CommandAction) ActionTypeName() string {
2149 return "Command"
2150 }
2151 func (a CommandAction) GetActionID() string {
2152 return a.ActionID
2153 }
2154 func (a *CommandAction) SetActionID(actionID string) {
2155 a.ActionID = actionID
2156 }
2157 func (cli *Client) Command(command string, opts ...RequestOption) (res *Response, err error) {
2158 req := &CommandAction{
2159 Command: command,
2160 }
2161 res = &Response{}
2162 return res, cli.Action(req, res, opts...)
2163 }
2164
2165 // ExtensionStateAction Check Extension Status.
2166 type ExtensionStateAction struct {
2167 // ActionID ActionID for this transaction. Will be returned.
2168 ActionID string
2169 // Exten Extension to check state on.
2170 Exten string
2171 // Context Context for extension.
2172 Context string
2173 }
2174
2175 func (ExtensionStateAction) ActionTypeName() string {
2176 return "ExtensionState"
2177 }
2178 func (a ExtensionStateAction) GetActionID() string {
2179 return a.ActionID
2180 }
2181 func (a *ExtensionStateAction) SetActionID(actionID string) {
2182 a.ActionID = actionID
2183 }
2184 func (cli *Client) ExtensionState(exten string, context string, opts ...RequestOption) (res *Response, err error) {
2185 req := &ExtensionStateAction{
2186 Exten: exten,
2187 Context: context,
2188 }
2189 res = &Response{}
2190 return res, cli.Action(req, res, opts...)
2191 }
2192
2193 // PresenceStateAction Check Presence State
2194 type PresenceStateAction struct {
2195 // ActionID ActionID for this transaction. Will be returned.
2196 ActionID string
2197 // Provider Presence Provider to check the state of
2198 Provider string
2199 }
2200
2201 func (PresenceStateAction) ActionTypeName() string {
2202 return "PresenceState"
2203 }
2204 func (a PresenceStateAction) GetActionID() string {
2205 return a.ActionID
2206 }
2207 func (a *PresenceStateAction) SetActionID(actionID string) {
2208 a.ActionID = actionID
2209 }
2210 func (cli *Client) PresenceState(provider string, opts ...RequestOption) (res *Response, err error) {
2211 req := &PresenceStateAction{
2212 Provider: provider,
2213 }
2214 res = &Response{}
2215 return res, cli.Action(req, res, opts...)
2216 }
2217
2218 // AbsoluteTimeoutAction Set absolute timeout.
2219 type AbsoluteTimeoutAction struct {
2220 // ActionID ActionID for this transaction. Will be returned.
2221 ActionID string
2222 // Channel Channel name to hangup.
2223 Channel string
2224 // Timeout Maximum duration of the call (sec).
2225 Timeout int
2226 }
2227
2228 func (AbsoluteTimeoutAction) ActionTypeName() string {
2229 return "AbsoluteTimeout"
2230 }
2231 func (a AbsoluteTimeoutAction) GetActionID() string {
2232 return a.ActionID
2233 }
2234 func (a *AbsoluteTimeoutAction) SetActionID(actionID string) {
2235 a.ActionID = actionID
2236 }
2237 func (cli *Client) AbsoluteTimeout(channel string, timeout int, opts ...RequestOption) (res *Response, err error) {
2238 req := &AbsoluteTimeoutAction{
2239 Channel: channel,
2240 Timeout: timeout,
2241 }
2242 res = &Response{}
2243 return res, cli.Action(req, res, opts...)
2244 }
2245
2246 // MailboxStatusAction Check mailbox.
2247 type MailboxStatusAction struct {
2248 // ActionID ActionID for this transaction. Will be returned.
2249 ActionID string
2250 // Mailbox Full mailbox ID mailbox @ vm-context .
2251 Mailbox string
2252 }
2253
2254 func (MailboxStatusAction) ActionTypeName() string {
2255 return "MailboxStatus"
2256 }
2257 func (a MailboxStatusAction) GetActionID() string {
2258 return a.ActionID
2259 }
2260 func (a *MailboxStatusAction) SetActionID(actionID string) {
2261 a.ActionID = actionID
2262 }
2263 func (cli *Client) MailboxStatus(mailbox string, opts ...RequestOption) (res *Response, err error) {
2264 req := &MailboxStatusAction{
2265 Mailbox: mailbox,
2266 }
2267 res = &Response{}
2268 return res, cli.Action(req, res, opts...)
2269 }
2270
2271 // MailboxCountAction Check Mailbox Message Count.
2272 type MailboxCountAction struct {
2273 // ActionID ActionID for this transaction. Will be returned.
2274 ActionID string
2275 // Mailbox Full mailbox ID mailbox @ vm-context .
2276 Mailbox string
2277 }
2278
2279 func (MailboxCountAction) ActionTypeName() string {
2280 return "MailboxCount"
2281 }
2282 func (a MailboxCountAction) GetActionID() string {
2283 return a.ActionID
2284 }
2285 func (a *MailboxCountAction) SetActionID(actionID string) {
2286 a.ActionID = actionID
2287 }
2288 func (cli *Client) MailboxCount(mailbox string, opts ...RequestOption) (res *Response, err error) {
2289 req := &MailboxCountAction{
2290 Mailbox: mailbox,
2291 }
2292 res = &Response{}
2293 return res, cli.Action(req, res, opts...)
2294 }
2295
2296 // ListCommandsAction List available manager commands.
2297 type ListCommandsAction struct {
2298 // ActionID ActionID for this transaction. Will be returned.
2299 ActionID string
2300 }
2301
2302 func (ListCommandsAction) ActionTypeName() string {
2303 return "ListCommands"
2304 }
2305 func (a ListCommandsAction) GetActionID() string {
2306 return a.ActionID
2307 }
2308 func (a *ListCommandsAction) SetActionID(actionID string) {
2309 a.ActionID = actionID
2310 }
2311 func (cli *Client) ListCommands(opts ...RequestOption) (res *Response, err error) {
2312 req := &ListCommandsAction{}
2313 res = &Response{}
2314 return res, cli.Action(req, res, opts...)
2315 }
2316
2317 // SendTextAction Sends a text message to channel. A content type can be optionally specified. If not set
2318 // it is set to an empty string allowing a custom handler to default it as it sees fit.
2319 type SendTextAction struct {
2320 // ActionID ActionID for this transaction. Will be returned.
2321 ActionID string
2322 // Channel Channel to send message to.
2323 Channel string
2324 // Message Message to send.
2325 Message string
2326 // ContentType The type of content in the message
2327 ContentType string
2328 }
2329
2330 func (SendTextAction) ActionTypeName() string {
2331 return "SendText"
2332 }
2333 func (a SendTextAction) GetActionID() string {
2334 return a.ActionID
2335 }
2336 func (a *SendTextAction) SetActionID(actionID string) {
2337 a.ActionID = actionID
2338 }
2339 func (cli *Client) SendText(channel string, message string, opts ...RequestOption) (res *Response, err error) {
2340 req := &SendTextAction{
2341 Channel: channel,
2342 Message: message,
2343 }
2344 res = &Response{}
2345 return res, cli.Action(req, res, opts...)
2346 }
2347
2348 // UserEventAction Send an arbitrary event.
2349 type UserEventAction struct {
2350 // ActionID ActionID for this transaction. Will be returned.
2351 ActionID string
2352 // UserEvent Event string to send.
2353 UserEvent string
2354 // Header1 Content1.
2355 Header1 string
2356 // HeaderN ContentN.
2357 HeaderN string
2358 }
2359
2360 func (UserEventAction) ActionTypeName() string {
2361 return "UserEvent"
2362 }
2363 func (a UserEventAction) GetActionID() string {
2364 return a.ActionID
2365 }
2366 func (a *UserEventAction) SetActionID(actionID string) {
2367 a.ActionID = actionID
2368 }
2369 func (cli *Client) UserEvent(userEvent string, opts ...RequestOption) (res *Response, err error) {
2370 req := &UserEventAction{
2371 UserEvent: userEvent,
2372 }
2373 res = &Response{}
2374 return res, cli.Action(req, res, opts...)
2375 }
2376
2377 // WaitEventAction Wait for an event to occur.
2378 type WaitEventAction struct {
2379 // ActionID ActionID for this transaction. Will be returned.
2380 ActionID string
2381 // Timeout Maximum time (in seconds) to wait for events, `-1` means forever.
2382 Timeout int
2383 }
2384
2385 func (WaitEventAction) ActionTypeName() string {
2386 return "WaitEvent"
2387 }
2388 func (a WaitEventAction) GetActionID() string {
2389 return a.ActionID
2390 }
2391 func (a *WaitEventAction) SetActionID(actionID string) {
2392 a.ActionID = actionID
2393 }
2394 func (cli *Client) WaitEvent(timeout int, opts ...RequestOption) (res *Response, err error) {
2395 req := &WaitEventAction{
2396 Timeout: timeout,
2397 }
2398 res = &Response{}
2399 return res, cli.Action(req, res, opts...)
2400 }
2401
2402 // CoreSettingsAction Show PBX core settings (version etc).
2403 type CoreSettingsAction struct {
2404 // ActionID ActionID for this transaction. Will be returned.
2405 ActionID string
2406 }
2407
2408 func (CoreSettingsAction) ActionTypeName() string {
2409 return "CoreSettings"
2410 }
2411 func (a CoreSettingsAction) GetActionID() string {
2412 return a.ActionID
2413 }
2414 func (a *CoreSettingsAction) SetActionID(actionID string) {
2415 a.ActionID = actionID
2416 }
2417 func (cli *Client) CoreSettings(opts ...RequestOption) (res *Response, err error) {
2418 req := &CoreSettingsAction{}
2419 res = &Response{}
2420 return res, cli.Action(req, res, opts...)
2421 }
2422
2423 // CoreStatusAction Show PBX core status variables.
2424 type CoreStatusAction struct {
2425 // ActionID ActionID for this transaction. Will be returned.
2426 ActionID string
2427 }
2428
2429 func (CoreStatusAction) ActionTypeName() string {
2430 return "CoreStatus"
2431 }
2432 func (a CoreStatusAction) GetActionID() string {
2433 return a.ActionID
2434 }
2435 func (a *CoreStatusAction) SetActionID(actionID string) {
2436 a.ActionID = actionID
2437 }
2438 func (cli *Client) CoreStatus(opts ...RequestOption) (res *Response, err error) {
2439 req := &CoreStatusAction{}
2440 res = &Response{}
2441 return res, cli.Action(req, res, opts...)
2442 }
2443
2444 // ReloadAction Send a reload event.
2445 type ReloadAction struct {
2446 // ActionID ActionID for this transaction. Will be returned.
2447 ActionID string
2448 // Module Name of the module to reload.
2449 Module string
2450 }
2451
2452 func (ReloadAction) ActionTypeName() string {
2453 return "Reload"
2454 }
2455 func (a ReloadAction) GetActionID() string {
2456 return a.ActionID
2457 }
2458 func (a *ReloadAction) SetActionID(actionID string) {
2459 a.ActionID = actionID
2460 }
2461 func (cli *Client) Reload(opts ...RequestOption) (res *Response, err error) {
2462 req := &ReloadAction{}
2463 res = &Response{}
2464 return res, cli.Action(req, res, opts...)
2465 }
2466
2467 // CoreShowChannelsAction List currently active channels.
2468 type CoreShowChannelsAction struct {
2469 // ActionID ActionID for this transaction. Will be returned.
2470 ActionID string
2471 }
2472
2473 func (CoreShowChannelsAction) ActionTypeName() string {
2474 return "CoreShowChannels"
2475 }
2476 func (a CoreShowChannelsAction) GetActionID() string {
2477 return a.ActionID
2478 }
2479 func (a *CoreShowChannelsAction) SetActionID(actionID string) {
2480 a.ActionID = actionID
2481 }
2482
2483 // LoggerRotateAction Reload and rotate the Asterisk logger.
2484 type LoggerRotateAction struct {
2485 // ActionID ActionID for this transaction. Will be returned.
2486 ActionID string
2487 }
2488
2489 func (LoggerRotateAction) ActionTypeName() string {
2490 return "LoggerRotate"
2491 }
2492 func (a LoggerRotateAction) GetActionID() string {
2493 return a.ActionID
2494 }
2495 func (a *LoggerRotateAction) SetActionID(actionID string) {
2496 a.ActionID = actionID
2497 }
2498 func (cli *Client) LoggerRotate(opts ...RequestOption) (res *Response, err error) {
2499 req := &LoggerRotateAction{}
2500 res = &Response{}
2501 return res, cli.Action(req, res, opts...)
2502 }
2503
2504 // ModuleLoadAction Module management.
2505 type ModuleLoadAction struct {
2506 // ActionID ActionID for this transaction. Will be returned.
2507 ActionID string
2508 // Module Asterisk module name (including .so extension) or subsystem identifier:
2509 Module string
2510 // LoadType If no module is specified for a `reload` loadtype, all modules are reloaded.
2511 LoadType string
2512 }
2513
2514 func (ModuleLoadAction) ActionTypeName() string {
2515 return "ModuleLoad"
2516 }
2517 func (a ModuleLoadAction) GetActionID() string {
2518 return a.ActionID
2519 }
2520 func (a *ModuleLoadAction) SetActionID(actionID string) {
2521 a.ActionID = actionID
2522 }
2523 func (cli *Client) ModuleLoad(loadType string, opts ...RequestOption) (res *Response, err error) {
2524 req := &ModuleLoadAction{
2525 LoadType: loadType,
2526 }
2527 res = &Response{}
2528 return res, cli.Action(req, res, opts...)
2529 }
2530
2531 // ModuleCheckAction Check if module is loaded.
2532 type ModuleCheckAction struct {
2533 // ActionID ActionID for this transaction. Will be returned.
2534 ActionID string
2535 // Module Asterisk module name (not including extension).
2536 Module string
2537 }
2538
2539 func (ModuleCheckAction) ActionTypeName() string {
2540 return "ModuleCheck"
2541 }
2542 func (a ModuleCheckAction) GetActionID() string {
2543 return a.ActionID
2544 }
2545 func (a *ModuleCheckAction) SetActionID(actionID string) {
2546 a.ActionID = actionID
2547 }
2548 func (cli *Client) ModuleCheck(module string, opts ...RequestOption) (res *Response, err error) {
2549 req := &ModuleCheckAction{
2550 Module: module,
2551 }
2552 res = &Response{}
2553 return res, cli.Action(req, res, opts...)
2554 }
2555
2556 // AOCMessageAction Generate an Advice of Charge message on a channel.
2557 type AOCMessageAction struct {
2558 // ActionID ActionID for this transaction. Will be returned.
2559 ActionID string
2560 // Channel Channel name to generate the AOC message on.
2561 Channel string
2562 // ChannelPrefix Partial channel prefix. By using this option one can match the beginning part of a channel name without having to put the entire name in. For example if a channel name is SIP/snom-00000001 and this value is set to SIP/snom, then that channel matches and the message will be sent. Note however that only the first matched channel has the message sent on it.
2563 ChannelPrefix string
2564 // MsgType Defines what type of AOC message to create, AOC-D or AOC-E
2565 MsgType string
2566 // ChargeType Defines what kind of charge this message represents.
2567 ChargeType string
2568 // UnitAmount0 This represents the amount of units charged. The ETSI AOC standard specifies that this value along with the optional UnitType value are entries in a list. To accommodate this these values take an index value starting at 0 which can be used to generate this list of unit entries. For Example, If two unit entires were required this could be achieved by setting the paramter UnitAmount(0)=1234 and UnitAmount(1)=5678. Note that UnitAmount at index 0 is required when ChargeType=Unit, all other entries in the list are optional.
2569 UnitAmount0 string
2570 // UnitType0 Defines the type of unit. ETSI AOC standard specifies this as an integer value between 1 and 16, but this value is left open to accept any positive integer. Like the UnitAmount parameter, this value represents a list entry and has an index parameter that starts at 0.
2571 UnitType0 string
2572 // CurrencyName Specifies the currency's name. Note that this value is truncated after 10 characters.
2573 CurrencyName string
2574 // CurrencyAmount Specifies the charge unit amount as a positive integer. This value is required when ChargeType==Currency.
2575 CurrencyAmount string
2576 // CurrencyMultiplier Specifies the currency multiplier. This value is required when ChargeType==Currency.
2577 CurrencyMultiplier string
2578 // TotalType Defines what kind of AOC-D total is represented.
2579 TotalType string
2580 // AOCBillingId Represents a billing ID associated with an AOC-D or AOC-E message. Note that only the first 3 items of the enum are valid AOC-D billing IDs
2581 AOCBillingId string
2582 // ChargingAssociationId Charging association identifier. This is optional for AOC-E and can be set to any value between -32768 and 32767
2583 ChargingAssociationId string
2584 // ChargingAssociationNumber Represents the charging association party number. This value is optional for AOC-E.
2585 ChargingAssociationNumber string
2586 // ChargingAssociationPlan Integer representing the charging plan associated with the ChargingAssociationNumber. The value is bits 7 through 1 of the Q.931 octet containing the type-of-number and numbering-plan-identification fields.
2587 ChargingAssociationPlan string
2588 }
2589
2590 func (AOCMessageAction) ActionTypeName() string {
2591 return "AOCMessage"
2592 }
2593 func (a AOCMessageAction) GetActionID() string {
2594 return a.ActionID
2595 }
2596 func (a *AOCMessageAction) SetActionID(actionID string) {
2597 a.ActionID = actionID
2598 }
2599 func (cli *Client) AOCMessage(channel string, msgType string, chargeType string, opts ...RequestOption) (res *Response, err error) {
2600 req := &AOCMessageAction{
2601 Channel: channel,
2602 MsgType: msgType,
2603 ChargeType: chargeType,
2604 }
2605 res = &Response{}
2606 return res, cli.Action(req, res, opts...)
2607 }
2608
2609 // FilterAction Dynamically add filters for the current manager session.
2610 type FilterAction struct {
2611 // ActionID ActionID for this transaction. Will be returned.
2612 ActionID string
2613 Operation string
2614 // Filter - If there are both white and black filters: implied black all filter processed first, then white filters, and lastly black filters.
2615 Filter string
2616 }
2617
2618 func (FilterAction) ActionTypeName() string {
2619 return "Filter"
2620 }
2621 func (a FilterAction) GetActionID() string {
2622 return a.ActionID
2623 }
2624 func (a *FilterAction) SetActionID(actionID string) {
2625 a.ActionID = actionID
2626 }
2627 func (cli *Client) Filter(opts ...RequestOption) (res *Response, err error) {
2628 req := &FilterAction{}
2629 res = &Response{}
2630 return res, cli.Action(req, res, opts...)
2631 }
2632
2633 // FilterListAction Show current event filters for this session
2634 type FilterListAction struct {
2635 // ActionID ActionID for this transaction. Will be returned.
2636 ActionID string
2637 }
2638
2639 func (FilterListAction) ActionTypeName() string {
2640 return "FilterList"
2641 }
2642 func (a FilterListAction) GetActionID() string {
2643 return a.ActionID
2644 }
2645 func (a *FilterListAction) SetActionID(actionID string) {
2646 a.ActionID = actionID
2647 }
2648 func (cli *Client) FilterList(opts ...RequestOption) (res *Response, err error) {
2649 req := &FilterListAction{}
2650 res = &Response{}
2651 return res, cli.Action(req, res, opts...)
2652 }
2653
2654 // BlindTransferAction Blind transfer channel(s) to the given destination
2655 type BlindTransferAction struct {
2656 // ActionID ActionID for this transaction. Will be returned.
2657 ActionID string
2658 Channel string
2659 Context string
2660 Exten string
2661 }
2662
2663 func (BlindTransferAction) ActionTypeName() string {
2664 return "BlindTransfer"
2665 }
2666 func (a BlindTransferAction) GetActionID() string {
2667 return a.ActionID
2668 }
2669 func (a *BlindTransferAction) SetActionID(actionID string) {
2670 a.ActionID = actionID
2671 }
2672 func (cli *Client) BlindTransfer(channel string, opts ...RequestOption) (res *Response, err error) {
2673 req := &BlindTransferAction{
2674 Channel: channel,
2675 }
2676 res = &Response{}
2677 return res, cli.Action(req, res, opts...)
2678 }
2679
2680 // BridgeAction Bridge two channels already in the PBX.
2681 type BridgeAction struct {
2682 // ActionID ActionID for this transaction. Will be returned.
2683 ActionID string
2684 // Channel1 Channel to Bridge to Channel2.
2685 Channel1 string
2686 // Channel2 Channel to Bridge to Channel1.
2687 Channel2 string
2688 // Tone Play courtesy tone to Channel 2.
2689 Tone string
2690 }
2691
2692 func (BridgeAction) ActionTypeName() string {
2693 return "Bridge"
2694 }
2695 func (a BridgeAction) GetActionID() string {
2696 return a.ActionID
2697 }
2698 func (a *BridgeAction) SetActionID(actionID string) {
2699 a.ActionID = actionID
2700 }
2701 func (cli *Client) Bridge(channel1 string, channel2 string, opts ...RequestOption) (res *Response, err error) {
2702 req := &BridgeAction{
2703 Channel1: channel1,
2704 Channel2: channel2,
2705 }
2706 res = &Response{}
2707 return res, cli.Action(req, res, opts...)
2708 }
2709
2710 // DBGetAction Get DB Entry.
2711 type DBGetAction struct {
2712 // ActionID ActionID for this transaction. Will be returned.
2713 ActionID string
2714 Family string
2715 Key string
2716 }
2717
2718 func (DBGetAction) ActionTypeName() string {
2719 return "DBGet"
2720 }
2721 func (a DBGetAction) GetActionID() string {
2722 return a.ActionID
2723 }
2724 func (a *DBGetAction) SetActionID(actionID string) {
2725 a.ActionID = actionID
2726 }
2727 func (cli *Client) DBGet(family string, key string, opts ...RequestOption) (res *Response, err error) {
2728 req := &DBGetAction{
2729 Family: family,
2730 Key: key,
2731 }
2732 res = &Response{}
2733 return res, cli.Action(req, res, opts...)
2734 }
2735
2736 // DBPutAction Put DB entry.
2737 type DBPutAction struct {
2738 // ActionID ActionID for this transaction. Will be returned.
2739 ActionID string
2740 Family string
2741 Key string
2742 Val string
2743 }
2744
2745 func (DBPutAction) ActionTypeName() string {
2746 return "DBPut"
2747 }
2748 func (a DBPutAction) GetActionID() string {
2749 return a.ActionID
2750 }
2751 func (a *DBPutAction) SetActionID(actionID string) {
2752 a.ActionID = actionID
2753 }
2754 func (cli *Client) DBPut(family string, key string, opts ...RequestOption) (res *Response, err error) {
2755 req := &DBPutAction{
2756 Family: family,
2757 Key: key,
2758 }
2759 res = &Response{}
2760 return res, cli.Action(req, res, opts...)
2761 }
2762
2763 // DBDelAction Delete DB entry.
2764 type DBDelAction struct {
2765 // ActionID ActionID for this transaction. Will be returned.
2766 ActionID string
2767 Family string
2768 Key string
2769 }
2770
2771 func (DBDelAction) ActionTypeName() string {
2772 return "DBDel"
2773 }
2774 func (a DBDelAction) GetActionID() string {
2775 return a.ActionID
2776 }
2777 func (a *DBDelAction) SetActionID(actionID string) {
2778 a.ActionID = actionID
2779 }
2780 func (cli *Client) DBDel(family string, key string, opts ...RequestOption) (res *Response, err error) {
2781 req := &DBDelAction{
2782 Family: family,
2783 Key: key,
2784 }
2785 res = &Response{}
2786 return res, cli.Action(req, res, opts...)
2787 }
2788
2789 // DBDelTreeAction Delete DB Tree.
2790 type DBDelTreeAction struct {
2791 // ActionID ActionID for this transaction. Will be returned.
2792 ActionID string
2793 Family string
2794 Key string
2795 }
2796
2797 func (DBDelTreeAction) ActionTypeName() string {
2798 return "DBDelTree"
2799 }
2800 func (a DBDelTreeAction) GetActionID() string {
2801 return a.ActionID
2802 }
2803 func (a *DBDelTreeAction) SetActionID(actionID string) {
2804 a.ActionID = actionID
2805 }
2806 func (cli *Client) DBDelTree(family string, opts ...RequestOption) (res *Response, err error) {
2807 req := &DBDelTreeAction{
2808 Family: family,
2809 }
2810 res = &Response{}
2811 return res, cli.Action(req, res, opts...)
2812 }
2813
2814 // ShowDialPlanAction Show dialplan contexts and extensions
2815 type ShowDialPlanAction struct {
2816 // ActionID ActionID for this transaction. Will be returned.
2817 ActionID string
2818 // Extension Show a specific extension.
2819 Extension string
2820 // Context Show a specific context.
2821 Context string
2822 }
2823
2824 func (ShowDialPlanAction) ActionTypeName() string {
2825 return "ShowDialPlan"
2826 }
2827 func (a ShowDialPlanAction) GetActionID() string {
2828 return a.ActionID
2829 }
2830 func (a *ShowDialPlanAction) SetActionID(actionID string) {
2831 a.ActionID = actionID
2832 }
2833 func (cli *Client) ShowDialPlan(opts ...RequestOption) (res *Response, err error) {
2834 req := &ShowDialPlanAction{}
2835 res = &Response{}
2836 return res, cli.Action(req, res, opts...)
2837 }
2838
2839 // ExtensionStateListAction List the current known extension states.
2840 type ExtensionStateListAction struct {
2841 // ActionID ActionID for this transaction. Will be returned.
2842 ActionID string
2843 }
2844
2845 func (ExtensionStateListAction) ActionTypeName() string {
2846 return "ExtensionStateList"
2847 }
2848 func (a ExtensionStateListAction) GetActionID() string {
2849 return a.ActionID
2850 }
2851 func (a *ExtensionStateListAction) SetActionID(actionID string) {
2852 a.ActionID = actionID
2853 }
2854
2855 // MessageSendAction Send an out of call message to an endpoint.
2856 type MessageSendAction struct {
2857 // ActionID ActionID for this transaction. Will be returned.
2858 ActionID string
2859 // To The URI the message is to be sent to.
2860 To string
2861 // From A From URI for the message if needed for the message technology being used to send this message.
2862 From string
2863 // Body The message body text. This must not contain any newlines as that conflicts with the AMI protocol.
2864 Body string
2865 // Base64Body Text bodies requiring the use of newlines have to be base64 encoded in this field. Base64Body will be decoded before being sent out. Base64Body takes precedence over Body.
2866 Base64Body string
2867 // Variable Message variable to set, multiple Variable: headers are allowed. The header value is a comma separated list of name=value pairs.
2868 Variable string
2869 }
2870
2871 func (MessageSendAction) ActionTypeName() string {
2872 return "MessageSend"
2873 }
2874 func (a MessageSendAction) GetActionID() string {
2875 return a.ActionID
2876 }
2877 func (a *MessageSendAction) SetActionID(actionID string) {
2878 a.ActionID = actionID
2879 }
2880 func (cli *Client) MessageSend(to string, opts ...RequestOption) (res *Response, err error) {
2881 req := &MessageSendAction{
2882 To: to,
2883 }
2884 res = &Response{}
2885 return res, cli.Action(req, res, opts...)
2886 }
2887
2888 // LocalOptimizeAwayAction Optimize away a local channel when possible.
2889 type LocalOptimizeAwayAction struct {
2890 // ActionID ActionID for this transaction. Will be returned.
2891 ActionID string
2892 // Channel The channel name to optimize away.
2893 Channel string
2894 }
2895
2896 func (LocalOptimizeAwayAction) ActionTypeName() string {
2897 return "LocalOptimizeAway"
2898 }
2899 func (a LocalOptimizeAwayAction) GetActionID() string {
2900 return a.ActionID
2901 }
2902 func (a *LocalOptimizeAwayAction) SetActionID(actionID string) {
2903 a.ActionID = actionID
2904 }
2905 func (cli *Client) LocalOptimizeAway(channel string, opts ...RequestOption) (res *Response, err error) {
2906 req := &LocalOptimizeAwayAction{
2907 Channel: channel,
2908 }
2909 res = &Response{}
2910 return res, cli.Action(req, res, opts...)
2911 }
2912
2913 // BridgeTechnologyListAction List available bridging technologies and their statuses.
2914 type BridgeTechnologyListAction struct {
2915 // ActionID ActionID for this transaction. Will be returned.
2916 ActionID string
2917 }
2918
2919 func (BridgeTechnologyListAction) ActionTypeName() string {
2920 return "BridgeTechnologyList"
2921 }
2922 func (a BridgeTechnologyListAction) GetActionID() string {
2923 return a.ActionID
2924 }
2925 func (a *BridgeTechnologyListAction) SetActionID(actionID string) {
2926 a.ActionID = actionID
2927 }
2928 func (cli *Client) BridgeTechnologyList(opts ...RequestOption) (res *Response, err error) {
2929 req := &BridgeTechnologyListAction{}
2930 res = &Response{}
2931 return res, cli.Action(req, res, opts...)
2932 }
2933
2934 // BridgeTechnologySuspendAction Suspend a bridging technology.
2935 type BridgeTechnologySuspendAction struct {
2936 // ActionID ActionID for this transaction. Will be returned.
2937 ActionID string
2938 // BridgeTechnology The name of the bridging technology to suspend.
2939 BridgeTechnology string
2940 }
2941
2942 func (BridgeTechnologySuspendAction) ActionTypeName() string {
2943 return "BridgeTechnologySuspend"
2944 }
2945 func (a BridgeTechnologySuspendAction) GetActionID() string {
2946 return a.ActionID
2947 }
2948 func (a *BridgeTechnologySuspendAction) SetActionID(actionID string) {
2949 a.ActionID = actionID
2950 }
2951 func (cli *Client) BridgeTechnologySuspend(bridgeTechnology string, opts ...RequestOption) (res *Response, err error) {
2952 req := &BridgeTechnologySuspendAction{
2953 BridgeTechnology: bridgeTechnology,
2954 }
2955 res = &Response{}
2956 return res, cli.Action(req, res, opts...)
2957 }
2958
2959 // BridgeTechnologyUnsuspendAction Unsuspend a bridging technology.
2960 type BridgeTechnologyUnsuspendAction struct {
2961 // ActionID ActionID for this transaction. Will be returned.
2962 ActionID string
2963 // BridgeTechnology The name of the bridging technology to unsuspend.
2964 BridgeTechnology string
2965 }
2966
2967 func (BridgeTechnologyUnsuspendAction) ActionTypeName() string {
2968 return "BridgeTechnologyUnsuspend"
2969 }
2970 func (a BridgeTechnologyUnsuspendAction) GetActionID() string {
2971 return a.ActionID
2972 }
2973 func (a *BridgeTechnologyUnsuspendAction) SetActionID(actionID string) {
2974 a.ActionID = actionID
2975 }
2976 func (cli *Client) BridgeTechnologyUnsuspend(bridgeTechnology string, opts ...RequestOption) (res *Response, err error) {
2977 req := &BridgeTechnologyUnsuspendAction{
2978 BridgeTechnology: bridgeTechnology,
2979 }
2980 res = &Response{}
2981 return res, cli.Action(req, res, opts...)
2982 }
2983
2984 // BridgeListAction Get a list of bridges in the system.
2985 type BridgeListAction struct {
2986 // ActionID ActionID for this transaction. Will be returned.
2987 ActionID string
2988 // BridgeType Optional type for filtering the resulting list of bridges.
2989 BridgeType string
2990 }
2991
2992 func (BridgeListAction) ActionTypeName() string {
2993 return "BridgeList"
2994 }
2995 func (a BridgeListAction) GetActionID() string {
2996 return a.ActionID
2997 }
2998 func (a *BridgeListAction) SetActionID(actionID string) {
2999 a.ActionID = actionID
3000 }
3001 func (cli *Client) BridgeList(opts ...RequestOption) (res *Response, err error) {
3002 req := &BridgeListAction{}
3003 res = &Response{}
3004 return res, cli.Action(req, res, opts...)
3005 }
3006
3007 // BridgeInfoAction Get information about a bridge.
3008 type BridgeInfoAction struct {
3009 // ActionID ActionID for this transaction. Will be returned.
3010 ActionID string
3011 // BridgeUniqueid The unique ID of the bridge about which to retrieve information.
3012 BridgeUniqueid string
3013 }
3014
3015 func (BridgeInfoAction) ActionTypeName() string {
3016 return "BridgeInfo"
3017 }
3018 func (a BridgeInfoAction) GetActionID() string {
3019 return a.ActionID
3020 }
3021 func (a *BridgeInfoAction) SetActionID(actionID string) {
3022 a.ActionID = actionID
3023 }
3024
3025 // BridgeDestroyAction Destroy a bridge.
3026 type BridgeDestroyAction struct {
3027 // ActionID ActionID for this transaction. Will be returned.
3028 ActionID string
3029 // BridgeUniqueid The unique ID of the bridge to destroy.
3030 BridgeUniqueid string
3031 }
3032
3033 func (BridgeDestroyAction) ActionTypeName() string {
3034 return "BridgeDestroy"
3035 }
3036 func (a BridgeDestroyAction) GetActionID() string {
3037 return a.ActionID
3038 }
3039 func (a *BridgeDestroyAction) SetActionID(actionID string) {
3040 a.ActionID = actionID
3041 }
3042 func (cli *Client) BridgeDestroy(bridgeUniqueid string, opts ...RequestOption) (res *Response, err error) {
3043 req := &BridgeDestroyAction{
3044 BridgeUniqueid: bridgeUniqueid,
3045 }
3046 res = &Response{}
3047 return res, cli.Action(req, res, opts...)
3048 }
3049
3050 // BridgeKickAction Kick a channel from a bridge.
3051 type BridgeKickAction struct {
3052 // ActionID ActionID for this transaction. Will be returned.
3053 ActionID string
3054 // BridgeUniqueid The unique ID of the bridge containing the channel to destroy. This parameter can be omitted, or supplied to insure that the channel is not removed from the wrong bridge.
3055 BridgeUniqueid string
3056 // Channel The channel to kick out of a bridge.
3057 Channel string
3058 }
3059
3060 func (BridgeKickAction) ActionTypeName() string {
3061 return "BridgeKick"
3062 }
3063 func (a BridgeKickAction) GetActionID() string {
3064 return a.ActionID
3065 }
3066 func (a *BridgeKickAction) SetActionID(actionID string) {
3067 a.ActionID = actionID
3068 }
3069 func (cli *Client) BridgeKick(channel string, opts ...RequestOption) (res *Response, err error) {
3070 req := &BridgeKickAction{
3071 Channel: channel,
3072 }
3073 res = &Response{}
3074 return res, cli.Action(req, res, opts...)
3075 }
3076
3077 // PresenceStateListAction List the current known presence states.
3078 type PresenceStateListAction struct {
3079 // ActionID ActionID for this transaction. Will be returned.
3080 ActionID string
3081 }
3082
3083 func (PresenceStateListAction) ActionTypeName() string {
3084 return "PresenceStateList"
3085 }
3086 func (a PresenceStateListAction) GetActionID() string {
3087 return a.ActionID
3088 }
3089 func (a *PresenceStateListAction) SetActionID(actionID string) {
3090 a.ActionID = actionID
3091 }
3092
3093 // ParkinglotsAction Get a list of parking lots
3094 type ParkinglotsAction struct {
3095 // ActionID ActionID for this transaction. Will be returned.
3096 ActionID string
3097 }
3098
3099 func (ParkinglotsAction) ActionTypeName() string {
3100 return "Parkinglots"
3101 }
3102 func (a ParkinglotsAction) GetActionID() string {
3103 return a.ActionID
3104 }
3105 func (a *ParkinglotsAction) SetActionID(actionID string) {
3106 a.ActionID = actionID
3107 }
3108 func (cli *Client) Parkinglots(opts ...RequestOption) (res *Response, err error) {
3109 req := &ParkinglotsAction{}
3110 res = &Response{}
3111 return res, cli.Action(req, res, opts...)
3112 }
3113
3114 // ParkedCallsAction List parked calls.
3115 type ParkedCallsAction struct {
3116 // ActionID ActionID for this transaction. Will be returned.
3117 ActionID string
3118 // ParkingLot If specified, only show parked calls from the parking lot with this name.
3119 ParkingLot string
3120 }
3121
3122 func (ParkedCallsAction) ActionTypeName() string {
3123 return "ParkedCalls"
3124 }
3125 func (a ParkedCallsAction) GetActionID() string {
3126 return a.ActionID
3127 }
3128 func (a *ParkedCallsAction) SetActionID(actionID string) {
3129 a.ActionID = actionID
3130 }
3131 func (cli *Client) ParkedCalls(opts ...RequestOption) (res *Response, err error) {
3132 req := &ParkedCallsAction{}
3133 res = &Response{}
3134 return res, cli.Action(req, res, opts...)
3135 }
3136
3137 // ParkAction Park a channel.
3138 type ParkAction struct {
3139 // ActionID ActionID for this transaction. Will be returned.
3140 ActionID string
3141 // Channel Channel name to park.
3142 Channel string
3143 // TimeoutChannel Channel name to use when constructing the dial string that will be dialed if the parked channel times out. If `TimeoutChannel` is in a two party bridge with `Channel`, then `TimeoutChannel` will receive an announcement and be treated as having parked `Channel` in the same manner as the Park Call DTMF feature.
3144 TimeoutChannel string
3145 // AnnounceChannel If specified, then this channel will receive an announcement when `Channel` is parked if `AnnounceChannel` is in a state where it can receive announcements (AnnounceChannel must be bridged). `AnnounceChannel` has no bearing on the actual state of the parked call.
3146 AnnounceChannel string
3147 // Timeout Overrides the timeout of the parking lot for this park action. Specified in milliseconds, but will be converted to seconds. Use a value of 0 to disable the timeout.
3148 Timeout int
3149 // Parkinglot The parking lot to use when parking the channel
3150 Parkinglot string
3151 }
3152
3153 func (ParkAction) ActionTypeName() string {
3154 return "Park"
3155 }
3156 func (a ParkAction) GetActionID() string {
3157 return a.ActionID
3158 }
3159 func (a *ParkAction) SetActionID(actionID string) {
3160 a.ActionID = actionID
3161 }
3162 func (cli *Client) Park(channel string, opts ...RequestOption) (res *Response, err error) {
3163 req := &ParkAction{
3164 Channel: channel,
3165 }
3166 res = &Response{}
3167 return res, cli.Action(req, res, opts...)
3168 }
3169
3170 // MWIGetAction Get selected mailboxes with message counts.
3171 type MWIGetAction struct {
3172 // ActionID ActionID for this transaction. Will be returned.
3173 ActionID string
3174 // Mailbox Mailbox ID in the form of / regex / for all mailboxes matching the regular expression. Otherwise it is for a specific mailbox.
3175 Mailbox string
3176 }
3177
3178 func (MWIGetAction) ActionTypeName() string {
3179 return "MWIGet"
3180 }
3181 func (a MWIGetAction) GetActionID() string {
3182 return a.ActionID
3183 }
3184 func (a *MWIGetAction) SetActionID(actionID string) {
3185 a.ActionID = actionID
3186 }
3187 func (cli *Client) MWIGet(mailbox string, opts ...RequestOption) (res *Response, err error) {
3188 req := &MWIGetAction{
3189 Mailbox: mailbox,
3190 }
3191 res = &Response{}
3192 return res, cli.Action(req, res, opts...)
3193 }
3194
3195 // MWIDeleteAction Delete selected mailboxes.
3196 type MWIDeleteAction struct {
3197 // ActionID ActionID for this transaction. Will be returned.
3198 ActionID string
3199 // Mailbox Mailbox ID in the form of / regex / for all mailboxes matching the regular expression. Otherwise it is for a specific mailbox.
3200 Mailbox string
3201 }
3202
3203 func (MWIDeleteAction) ActionTypeName() string {
3204 return "MWIDelete"
3205 }
3206 func (a MWIDeleteAction) GetActionID() string {
3207 return a.ActionID
3208 }
3209 func (a *MWIDeleteAction) SetActionID(actionID string) {
3210 a.ActionID = actionID
3211 }
3212 func (cli *Client) MWIDelete(mailbox string, opts ...RequestOption) (res *Response, err error) {
3213 req := &MWIDeleteAction{
3214 Mailbox: mailbox,
3215 }
3216 res = &Response{}
3217 return res, cli.Action(req, res, opts...)
3218 }
3219
3220 // MWIUpdateAction Update the mailbox message counts.
3221 type MWIUpdateAction struct {
3222 // ActionID ActionID for this transaction. Will be returned.
3223 ActionID string
3224 // Mailbox Specific mailbox ID.
3225 Mailbox string
3226 // OldMessages The number of old messages in the mailbox. Defaults to zero if missing.
3227 OldMessages string
3228 // NewMessages The number of new messages in the mailbox. Defaults to zero if missing.
3229 NewMessages string
3230 }
3231
3232 func (MWIUpdateAction) ActionTypeName() string {
3233 return "MWIUpdate"
3234 }
3235 func (a MWIUpdateAction) GetActionID() string {
3236 return a.ActionID
3237 }
3238 func (a *MWIUpdateAction) SetActionID(actionID string) {
3239 a.ActionID = actionID
3240 }
3241 func (cli *Client) MWIUpdate(mailbox string, opts ...RequestOption) (res *Response, err error) {
3242 req := &MWIUpdateAction{
3243 Mailbox: mailbox,
3244 }
3245 res = &Response{}
3246 return res, cli.Action(req, res, opts...)
3247 }
3248
3249 // PJSIPShowRegistrationsInboundAction Lists PJSIP inbound registrations.
3250 type PJSIPShowRegistrationsInboundAction struct {
3251 // ActionID ActionID for this transaction. Will be returned.
3252 ActionID string
3253 }
3254
3255 func (PJSIPShowRegistrationsInboundAction) ActionTypeName() string {
3256 return "PJSIPShowRegistrationsInbound"
3257 }
3258 func (a PJSIPShowRegistrationsInboundAction) GetActionID() string {
3259 return a.ActionID
3260 }
3261 func (a *PJSIPShowRegistrationsInboundAction) SetActionID(actionID string) {
3262 a.ActionID = actionID
3263 }
3264 func (cli *Client) PJSIPShowRegistrationsInbound(opts ...RequestOption) (res *Response, err error) {
3265 req := &PJSIPShowRegistrationsInboundAction{}
3266 res = &Response{}
3267 return res, cli.Action(req, res, opts...)
3268 }
3269
3270 // PJSIPShowRegistrationInboundContactStatusesAction Lists ContactStatuses for PJSIP inbound registrations.
3271 type PJSIPShowRegistrationInboundContactStatusesAction struct {
3272 // ActionID ActionID for this transaction. Will be returned.
3273 ActionID string
3274 }
3275
3276 func (PJSIPShowRegistrationInboundContactStatusesAction) ActionTypeName() string {
3277 return "PJSIPShowRegistrationInboundContactStatuses"
3278 }
3279 func (a PJSIPShowRegistrationInboundContactStatusesAction) GetActionID() string {
3280 return a.ActionID
3281 }
3282 func (a *PJSIPShowRegistrationInboundContactStatusesAction) SetActionID(actionID string) {
3283 a.ActionID = actionID
3284 }
3285 func (cli *Client) PJSIPShowRegistrationInboundContactStatuses(opts ...RequestOption) (res *Response, err error) {
3286 req := &PJSIPShowRegistrationInboundContactStatusesAction{}
3287 res = &Response{}
3288 return res, cli.Action(req, res, opts...)
3289 }
3290
3291 // PJSIPNotifyAction Send a NOTIFY to either an endpoint, an arbitrary URI, or inside a SIP dialog.
3292 type PJSIPNotifyAction struct {
3293 // ActionID ActionID for this transaction. Will be returned.
3294 ActionID string
3295 // Endpoint The endpoint to which to send the NOTIFY.
3296 Endpoint string
3297 // URI Abritrary URI to which to send the NOTIFY.
3298 URI string
3299 // Channel Channel name to send the NOTIFY. Must be a PJSIP channel.
3300 Channel string
3301 // Variable Appends variables as headers/content to the NOTIFY. If the variable is named `Content`, then the value will compose the body of the message if another variable sets `Content-Type`. name = value
3302 Variable string
3303 }
3304
3305 func (PJSIPNotifyAction) ActionTypeName() string {
3306 return "PJSIPNotify"
3307 }
3308 func (a PJSIPNotifyAction) GetActionID() string {
3309 return a.ActionID
3310 }
3311 func (a *PJSIPNotifyAction) SetActionID(actionID string) {
3312 a.ActionID = actionID
3313 }
3314 func (cli *Client) PJSIPNotify(variable string, opts ...RequestOption) (res *Response, err error) {
3315 req := &PJSIPNotifyAction{
3316 Variable: variable,
3317 }
3318 res = &Response{}
3319 return res, cli.Action(req, res, opts...)
3320 }
3321
3322 // PJSIPQualifyAction Qualify a chan_pjsip endpoint.
3323 type PJSIPQualifyAction struct {
3324 // ActionID ActionID for this transaction. Will be returned.
3325 ActionID string
3326 // Endpoint The endpoint you want to qualify.
3327 Endpoint string
3328 }
3329
3330 func (PJSIPQualifyAction) ActionTypeName() string {
3331 return "PJSIPQualify"
3332 }
3333 func (a PJSIPQualifyAction) GetActionID() string {
3334 return a.ActionID
3335 }
3336 func (a *PJSIPQualifyAction) SetActionID(actionID string) {
3337 a.ActionID = actionID
3338 }
3339 func (cli *Client) PJSIPQualify(endpoint string, opts ...RequestOption) (res *Response, err error) {
3340 req := &PJSIPQualifyAction{
3341 Endpoint: endpoint,
3342 }
3343 res = &Response{}
3344 return res, cli.Action(req, res, opts...)
3345 }
3346
3347 // PJSIPShowEndpointsAction Lists PJSIP endpoints.
3348 type PJSIPShowEndpointsAction struct {
3349 // ActionID ActionID for this transaction. Will be returned.
3350 ActionID string
3351 }
3352
3353 func (PJSIPShowEndpointsAction) ActionTypeName() string {
3354 return "PJSIPShowEndpoints"
3355 }
3356 func (a PJSIPShowEndpointsAction) GetActionID() string {
3357 return a.ActionID
3358 }
3359 func (a *PJSIPShowEndpointsAction) SetActionID(actionID string) {
3360 a.ActionID = actionID
3361 }
3362
3363 // PJSIPShowEndpointAction Detail listing of an endpoint and its objects.
3364 type PJSIPShowEndpointAction struct {
3365 // ActionID ActionID for this transaction. Will be returned.
3366 ActionID string
3367 // Endpoint The endpoint to list.
3368 Endpoint string
3369 }
3370
3371 func (PJSIPShowEndpointAction) ActionTypeName() string {
3372 return "PJSIPShowEndpoint"
3373 }
3374 func (a PJSIPShowEndpointAction) GetActionID() string {
3375 return a.ActionID
3376 }
3377 func (a *PJSIPShowEndpointAction) SetActionID(actionID string) {
3378 a.ActionID = actionID
3379 }
3380
3381 // PJSIPShowAorsAction Lists PJSIP AORs.
3382 type PJSIPShowAorsAction struct {
3383 // ActionID ActionID for this transaction. Will be returned.
3384 ActionID string
3385 }
3386
3387 func (PJSIPShowAorsAction) ActionTypeName() string {
3388 return "PJSIPShowAors"
3389 }
3390 func (a PJSIPShowAorsAction) GetActionID() string {
3391 return a.ActionID
3392 }
3393 func (a *PJSIPShowAorsAction) SetActionID(actionID string) {
3394 a.ActionID = actionID
3395 }
3396
3397 // PJSIPShowAuthsAction Lists PJSIP Auths.
3398 type PJSIPShowAuthsAction struct {
3399 // ActionID ActionID for this transaction. Will be returned.
3400 ActionID string
3401 }
3402
3403 func (PJSIPShowAuthsAction) ActionTypeName() string {
3404 return "PJSIPShowAuths"
3405 }
3406 func (a PJSIPShowAuthsAction) GetActionID() string {
3407 return a.ActionID
3408 }
3409 func (a *PJSIPShowAuthsAction) SetActionID(actionID string) {
3410 a.ActionID = actionID
3411 }
3412
3413 // PJSIPShowContactsAction Lists PJSIP Contacts.
3414 type PJSIPShowContactsAction struct {
3415 // ActionID ActionID for this transaction. Will be returned.
3416 ActionID string
3417 }
3418
3419 func (PJSIPShowContactsAction) ActionTypeName() string {
3420 return "PJSIPShowContacts"
3421 }
3422 func (a PJSIPShowContactsAction) GetActionID() string {
3423 return a.ActionID
3424 }
3425 func (a *PJSIPShowContactsAction) SetActionID(actionID string) {
3426 a.ActionID = actionID
3427 }
3428
3429 // FAXSessionsAction Lists active FAX sessions
3430 type FAXSessionsAction struct {
3431 // ActionID ActionID for this transaction. Will be returned.
3432 ActionID string
3433 }
3434
3435 func (FAXSessionsAction) ActionTypeName() string {
3436 return "FAXSessions"
3437 }
3438 func (a FAXSessionsAction) GetActionID() string {
3439 return a.ActionID
3440 }
3441 func (a *FAXSessionsAction) SetActionID(actionID string) {
3442 a.ActionID = actionID
3443 }
3444 func (cli *Client) FAXSessions(opts ...RequestOption) (res *Response, err error) {
3445 req := &FAXSessionsAction{}
3446 res = &Response{}
3447 return res, cli.Action(req, res, opts...)
3448 }
3449
3450 // FAXSessionAction Responds with a detailed description of a single FAX session
3451 type FAXSessionAction struct {
3452 // ActionID ActionID for this transaction. Will be returned.
3453 ActionID string
3454 // SessionNumber The session ID of the fax the user is interested in.
3455 SessionNumber string
3456 }
3457
3458 func (FAXSessionAction) ActionTypeName() string {
3459 return "FAXSession"
3460 }
3461 func (a FAXSessionAction) GetActionID() string {
3462 return a.ActionID
3463 }
3464 func (a *FAXSessionAction) SetActionID(actionID string) {
3465 a.ActionID = actionID
3466 }
3467 func (cli *Client) FAXSession(sessionNumber string, opts ...RequestOption) (res *Response, err error) {
3468 req := &FAXSessionAction{
3469 SessionNumber: sessionNumber,
3470 }
3471 res = &Response{}
3472 return res, cli.Action(req, res, opts...)
3473 }
3474
3475 // FAXStatsAction Responds with fax statistics
3476 type FAXStatsAction struct {
3477 // ActionID ActionID for this transaction. Will be returned.
3478 ActionID string
3479 }
3480
3481 func (FAXStatsAction) ActionTypeName() string {
3482 return "FAXStats"
3483 }
3484 func (a FAXStatsAction) GetActionID() string {
3485 return a.ActionID
3486 }
3487 func (a *FAXStatsAction) SetActionID(actionID string) {
3488 a.ActionID = actionID
3489 }
3490 func (cli *Client) FAXStats(opts ...RequestOption) (res *Response, err error) {
3491 req := &FAXStatsAction{}
3492 res = &Response{}
3493 return res, cli.Action(req, res, opts...)
3494 }
3495
3496 // PJSIPUnregisterAction Unregister an outbound registration.
3497 type PJSIPUnregisterAction struct {
3498 // ActionID ActionID for this transaction. Will be returned.
3499 ActionID string
3500 // Registration The outbound registration to unregister or '*all' to unregister them all.
3501 Registration string
3502 }
3503
3504 func (PJSIPUnregisterAction) ActionTypeName() string {
3505 return "PJSIPUnregister"
3506 }
3507 func (a PJSIPUnregisterAction) GetActionID() string {
3508 return a.ActionID
3509 }
3510 func (a *PJSIPUnregisterAction) SetActionID(actionID string) {
3511 a.ActionID = actionID
3512 }
3513 func (cli *Client) PJSIPUnregister(registration string, opts ...RequestOption) (res *Response, err error) {
3514 req := &PJSIPUnregisterAction{
3515 Registration: registration,
3516 }
3517 res = &Response{}
3518 return res, cli.Action(req, res, opts...)
3519 }
3520
3521 // PJSIPRegisterAction Register an outbound registration.
3522 type PJSIPRegisterAction struct {
3523 // ActionID ActionID for this transaction. Will be returned.
3524 ActionID string
3525 // Registration The outbound registration to register or '*all' to register them all.
3526 Registration string
3527 }
3528
3529 func (PJSIPRegisterAction) ActionTypeName() string {
3530 return "PJSIPRegister"
3531 }
3532 func (a PJSIPRegisterAction) GetActionID() string {
3533 return a.ActionID
3534 }
3535 func (a *PJSIPRegisterAction) SetActionID(actionID string) {
3536 a.ActionID = actionID
3537 }
3538 func (cli *Client) PJSIPRegister(registration string, opts ...RequestOption) (res *Response, err error) {
3539 req := &PJSIPRegisterAction{
3540 Registration: registration,
3541 }
3542 res = &Response{}
3543 return res, cli.Action(req, res, opts...)
3544 }
3545
3546 // PJSIPShowRegistrationsOutboundAction Lists PJSIP outbound registrations.
3547 type PJSIPShowRegistrationsOutboundAction struct {
3548 // ActionID ActionID for this transaction. Will be returned.
3549 ActionID string
3550 }
3551
3552 func (PJSIPShowRegistrationsOutboundAction) ActionTypeName() string {
3553 return "PJSIPShowRegistrationsOutbound"
3554 }
3555 func (a PJSIPShowRegistrationsOutboundAction) GetActionID() string {
3556 return a.ActionID
3557 }
3558 func (a *PJSIPShowRegistrationsOutboundAction) SetActionID(actionID string) {
3559 a.ActionID = actionID
3560 }
3561 func (cli *Client) PJSIPShowRegistrationsOutbound(opts ...RequestOption) (res *Response, err error) {
3562 req := &PJSIPShowRegistrationsOutboundAction{}
3563 res = &Response{}
3564 return res, cli.Action(req, res, opts...)
3565 }
3566
3567 // MuteAudioAction Mute an audio stream.
3568 type MuteAudioAction struct {
3569 // ActionID ActionID for this transaction. Will be returned.
3570 ActionID string
3571 // Channel The channel you want to mute.
3572 Channel string
3573 Direction string
3574 State string
3575 }
3576
3577 func (MuteAudioAction) ActionTypeName() string {
3578 return "MuteAudio"
3579 }
3580 func (a MuteAudioAction) GetActionID() string {
3581 return a.ActionID
3582 }
3583 func (a *MuteAudioAction) SetActionID(actionID string) {
3584 a.ActionID = actionID
3585 }
3586 func (cli *Client) MuteAudio(channel string, direction string, state string, opts ...RequestOption) (res *Response, err error) {
3587 req := &MuteAudioAction{
3588 Channel: channel,
3589 Direction: direction,
3590 State: state,
3591 }
3592 res = &Response{}
3593 return res, cli.Action(req, res, opts...)
3594 }
3595
3596 // MonitorAction Monitor a channel.
3597 type MonitorAction struct {
3598 // ActionID ActionID for this transaction. Will be returned.
3599 ActionID string
3600 // Channel Used to specify the channel to record.
3601 Channel string
3602 // File Is the name of the file created in the monitor spool directory. Defaults to the same name as the channel (with slashes replaced with dashes).
3603 File string
3604 Format string // default to wav
3605 // Mix Boolean parameter as to whether to mix the input and output channels together after the recording is finished.
3606 Mix string
3607 }
3608
3609 func (MonitorAction) ActionTypeName() string {
3610 return "Monitor"
3611 }
3612 func (a MonitorAction) GetActionID() string {
3613 return a.ActionID
3614 }
3615 func (a *MonitorAction) SetActionID(actionID string) {
3616 a.ActionID = actionID
3617 }
3618 func (cli *Client) Monitor(channel string, opts ...RequestOption) (res *Response, err error) {
3619 req := &MonitorAction{
3620 Channel: channel,
3621 }
3622 res = &Response{}
3623 return res, cli.Action(req, res, opts...)
3624 }
3625
3626 // StopMonitorAction Stop monitoring a channel.
3627 type StopMonitorAction struct {
3628 // ActionID ActionID for this transaction. Will be returned.
3629 ActionID string
3630 // Channel The name of the channel monitored.
3631 Channel string
3632 }
3633
3634 func (StopMonitorAction) ActionTypeName() string {
3635 return "StopMonitor"
3636 }
3637 func (a StopMonitorAction) GetActionID() string {
3638 return a.ActionID
3639 }
3640 func (a *StopMonitorAction) SetActionID(actionID string) {
3641 a.ActionID = actionID
3642 }
3643 func (cli *Client) StopMonitor(channel string, opts ...RequestOption) (res *Response, err error) {
3644 req := &StopMonitorAction{
3645 Channel: channel,
3646 }
3647 res = &Response{}
3648 return res, cli.Action(req, res, opts...)
3649 }
3650
3651 // ChangeMonitorAction Change monitoring filename of a channel.
3652 type ChangeMonitorAction struct {
3653 // ActionID ActionID for this transaction. Will be returned.
3654 ActionID string
3655 // Channel Used to specify the channel to record.
3656 Channel string
3657 // File Is the new name of the file created in the monitor spool directory.
3658 File string
3659 }
3660
3661 func (ChangeMonitorAction) ActionTypeName() string {
3662 return "ChangeMonitor"
3663 }
3664 func (a ChangeMonitorAction) GetActionID() string {
3665 return a.ActionID
3666 }
3667 func (a *ChangeMonitorAction) SetActionID(actionID string) {
3668 a.ActionID = actionID
3669 }
3670 func (cli *Client) ChangeMonitor(channel string, file string, opts ...RequestOption) (res *Response, err error) {
3671 req := &ChangeMonitorAction{
3672 Channel: channel,
3673 File: file,
3674 }
3675 res = &Response{}
3676 return res, cli.Action(req, res, opts...)
3677 }
3678
3679 // PauseMonitorAction Pause monitoring of a channel.
3680 type PauseMonitorAction struct {
3681 // ActionID ActionID for this transaction. Will be returned.
3682 ActionID string
3683 // Channel Used to specify the channel to record.
3684 Channel string
3685 }
3686
3687 func (PauseMonitorAction) ActionTypeName() string {
3688 return "PauseMonitor"
3689 }
3690 func (a PauseMonitorAction) GetActionID() string {
3691 return a.ActionID
3692 }
3693 func (a *PauseMonitorAction) SetActionID(actionID string) {
3694 a.ActionID = actionID
3695 }
3696 func (cli *Client) PauseMonitor(channel string, opts ...RequestOption) (res *Response, err error) {
3697 req := &PauseMonitorAction{
3698 Channel: channel,
3699 }
3700 res = &Response{}
3701 return res, cli.Action(req, res, opts...)
3702 }
3703
3704 // UnpauseMonitorAction Unpause monitoring of a channel.
3705 type UnpauseMonitorAction struct {
3706 // ActionID ActionID for this transaction. Will be returned.
3707 ActionID string
3708 // Channel Used to specify the channel to record.
3709 Channel string
3710 }
3711
3712 func (UnpauseMonitorAction) ActionTypeName() string {
3713 return "UnpauseMonitor"
3714 }
3715 func (a UnpauseMonitorAction) GetActionID() string {
3716 return a.ActionID
3717 }
3718 func (a *UnpauseMonitorAction) SetActionID(actionID string) {
3719 a.ActionID = actionID
3720 }
3721 func (cli *Client) UnpauseMonitor(channel string, opts ...RequestOption) (res *Response, err error) {
3722 req := &UnpauseMonitorAction{
3723 Channel: channel,
3724 }
3725 res = &Response{}
3726 return res, cli.Action(req, res, opts...)
3727 }
3728
3729 // PJSIPShowSubscriptionsInboundAction Lists subscriptions.
3730 type PJSIPShowSubscriptionsInboundAction struct {
3731 // ActionID ActionID for this transaction. Will be returned.
3732 ActionID string
3733 }
3734
3735 func (PJSIPShowSubscriptionsInboundAction) ActionTypeName() string {
3736 return "PJSIPShowSubscriptionsInbound"
3737 }
3738 func (a PJSIPShowSubscriptionsInboundAction) GetActionID() string {
3739 return a.ActionID
3740 }
3741 func (a *PJSIPShowSubscriptionsInboundAction) SetActionID(actionID string) {
3742 a.ActionID = actionID
3743 }
3744 func (cli *Client) PJSIPShowSubscriptionsInbound(opts ...RequestOption) (res *Response, err error) {
3745 req := &PJSIPShowSubscriptionsInboundAction{}
3746 res = &Response{}
3747 return res, cli.Action(req, res, opts...)
3748 }
3749
3750 // PJSIPShowSubscriptionsOutboundAction Lists subscriptions.
3751 type PJSIPShowSubscriptionsOutboundAction struct {
3752 // ActionID ActionID for this transaction. Will be returned.
3753 ActionID string
3754 }
3755
3756 func (PJSIPShowSubscriptionsOutboundAction) ActionTypeName() string {
3757 return "PJSIPShowSubscriptionsOutbound"
3758 }
3759 func (a PJSIPShowSubscriptionsOutboundAction) GetActionID() string {
3760 return a.ActionID
3761 }
3762 func (a *PJSIPShowSubscriptionsOutboundAction) SetActionID(actionID string) {
3763 a.ActionID = actionID
3764 }
3765 func (cli *Client) PJSIPShowSubscriptionsOutbound(opts ...RequestOption) (res *Response, err error) {
3766 req := &PJSIPShowSubscriptionsOutboundAction{}
3767 res = &Response{}
3768 return res, cli.Action(req, res, opts...)
3769 }
3770
3771 // PJSIPShowResourceListsAction Displays settings for configured resource lists.
3772 type PJSIPShowResourceListsAction struct {
3773 // ActionID ActionID for this transaction. Will be returned.
3774 ActionID string
3775 }
3776
3777 func (PJSIPShowResourceListsAction) ActionTypeName() string {
3778 return "PJSIPShowResourceLists"
3779 }
3780 func (a PJSIPShowResourceListsAction) GetActionID() string {
3781 return a.ActionID
3782 }
3783 func (a *PJSIPShowResourceListsAction) SetActionID(actionID string) {
3784 a.ActionID = actionID
3785 }
3786 func (cli *Client) PJSIPShowResourceLists(opts ...RequestOption) (res *Response, err error) {
3787 req := &PJSIPShowResourceListsAction{}
3788 res = &Response{}
3789 return res, cli.Action(req, res, opts...)
3790 }
3791
3792 // AGIAction Add an AGI command to execute by Async AGI.
3793 type AGIAction struct {
3794 // ActionID ActionID for this transaction. Will be returned.
3795 ActionID string
3796 // Channel Channel that is currently in Async AGI.
3797 Channel string
3798 // Command Application to execute.
3799 Command string
3800 // CommandID This will be sent back in CommandID header of AsyncAGI exec event notification.
3801 CommandID string
3802 }
3803
3804 func (AGIAction) ActionTypeName() string {
3805 return "AGI"
3806 }
3807 func (a AGIAction) GetActionID() string {
3808 return a.ActionID
3809 }
3810 func (a *AGIAction) SetActionID(actionID string) {
3811 a.ActionID = actionID
3812 }
3813 func (cli *Client) AGI(channel string, command string, opts ...RequestOption) (res *Response, err error) {
3814 req := &AGIAction{
3815 Channel: channel,
3816 Command: command,
3817 }
3818 res = &Response{}
3819 return res, cli.Action(req, res, opts...)
3820 }
3821
3822 // DeviceStateListAction List the current known device states.
3823 type DeviceStateListAction struct {
3824 // ActionID ActionID for this transaction. Will be returned.
3825 ActionID string
3826 }
3827
3828 func (DeviceStateListAction) ActionTypeName() string {
3829 return "DeviceStateList"
3830 }
3831 func (a DeviceStateListAction) GetActionID() string {
3832 return a.ActionID
3833 }
3834 func (a *DeviceStateListAction) SetActionID(actionID string) {
3835 a.ActionID = actionID
3836 }
3837
3838 // SorceryMemoryCacheExpireObjectAction Expire (remove) an object from a sorcery memory cache.
3839 type SorceryMemoryCacheExpireObjectAction struct {
3840 // ActionID ActionID for this transaction. Will be returned.
3841 ActionID string
3842 // Cache The name of the cache to expire the object from.
3843 Cache string
3844 // Object The name of the object to expire.
3845 Object string
3846 }
3847
3848 func (SorceryMemoryCacheExpireObjectAction) ActionTypeName() string {
3849 return "SorceryMemoryCacheExpireObject"
3850 }
3851 func (a SorceryMemoryCacheExpireObjectAction) GetActionID() string {
3852 return a.ActionID
3853 }
3854 func (a *SorceryMemoryCacheExpireObjectAction) SetActionID(actionID string) {
3855 a.ActionID = actionID
3856 }
3857 func (cli *Client) SorceryMemoryCacheExpireObject(cache string, object string, opts ...RequestOption) (res *Response, err error) {
3858 req := &SorceryMemoryCacheExpireObjectAction{
3859 Cache: cache,
3860 Object: object,
3861 }
3862 res = &Response{}
3863 return res, cli.Action(req, res, opts...)
3864 }
3865
3866 // SorceryMemoryCacheExpireAction Expire (remove) ALL objects from a sorcery memory cache.
3867 type SorceryMemoryCacheExpireAction struct {
3868 // ActionID ActionID for this transaction. Will be returned.
3869 ActionID string
3870 // Cache The name of the cache to expire all objects from.
3871 Cache string
3872 }
3873
3874 func (SorceryMemoryCacheExpireAction) ActionTypeName() string {
3875 return "SorceryMemoryCacheExpire"
3876 }
3877 func (a SorceryMemoryCacheExpireAction) GetActionID() string {
3878 return a.ActionID
3879 }
3880 func (a *SorceryMemoryCacheExpireAction) SetActionID(actionID string) {
3881 a.ActionID = actionID
3882 }
3883 func (cli *Client) SorceryMemoryCacheExpire(cache string, opts ...RequestOption) (res *Response, err error) {
3884 req := &SorceryMemoryCacheExpireAction{
3885 Cache: cache,
3886 }
3887 res = &Response{}
3888 return res, cli.Action(req, res, opts...)
3889 }
3890
3891 // SorceryMemoryCacheStaleObjectAction Mark an object in a sorcery memory cache as stale.
3892 type SorceryMemoryCacheStaleObjectAction struct {
3893 // ActionID ActionID for this transaction. Will be returned.
3894 ActionID string
3895 // Cache The name of the cache to mark the object as stale in.
3896 Cache string
3897 // Object The name of the object to mark as stale.
3898 Object string
3899 // Reload If true, then immediately reload the object from the backend cache instead of waiting for the next retrieval
3900 Reload string
3901 }
3902
3903 func (SorceryMemoryCacheStaleObjectAction) ActionTypeName() string {
3904 return "SorceryMemoryCacheStaleObject"
3905 }
3906 func (a SorceryMemoryCacheStaleObjectAction) GetActionID() string {
3907 return a.ActionID
3908 }
3909 func (a *SorceryMemoryCacheStaleObjectAction) SetActionID(actionID string) {
3910 a.ActionID = actionID
3911 }
3912 func (cli *Client) SorceryMemoryCacheStaleObject(cache string, object string, opts ...RequestOption) (res *Response, err error) {
3913 req := &SorceryMemoryCacheStaleObjectAction{
3914 Cache: cache,
3915 Object: object,
3916 }
3917 res = &Response{}
3918 return res, cli.Action(req, res, opts...)
3919 }
3920
3921 // SorceryMemoryCacheStaleAction Marks ALL objects in a sorcery memory cache as stale.
3922 type SorceryMemoryCacheStaleAction struct {
3923 // ActionID ActionID for this transaction. Will be returned.
3924 ActionID string
3925 // Cache The name of the cache to mark all object as stale in.
3926 Cache string
3927 }
3928
3929 func (SorceryMemoryCacheStaleAction) ActionTypeName() string {
3930 return "SorceryMemoryCacheStale"
3931 }
3932 func (a SorceryMemoryCacheStaleAction) GetActionID() string {
3933 return a.ActionID
3934 }
3935 func (a *SorceryMemoryCacheStaleAction) SetActionID(actionID string) {
3936 a.ActionID = actionID
3937 }
3938 func (cli *Client) SorceryMemoryCacheStale(cache string, opts ...RequestOption) (res *Response, err error) {
3939 req := &SorceryMemoryCacheStaleAction{
3940 Cache: cache,
3941 }
3942 res = &Response{}
3943 return res, cli.Action(req, res, opts...)
3944 }
3945
3946 // SorceryMemoryCachePopulateAction Expire all objects from a memory cache and populate it with all objects from the backend.
3947 type SorceryMemoryCachePopulateAction struct {
3948 // ActionID ActionID for this transaction. Will be returned.
3949 ActionID string
3950 // Cache The name of the cache to populate.
3951 Cache string
3952 }
3953
3954 func (SorceryMemoryCachePopulateAction) ActionTypeName() string {
3955 return "SorceryMemoryCachePopulate"
3956 }
3957 func (a SorceryMemoryCachePopulateAction) GetActionID() string {
3958 return a.ActionID
3959 }
3960 func (a *SorceryMemoryCachePopulateAction) SetActionID(actionID string) {
3961 a.ActionID = actionID
3962 }
3963 func (cli *Client) SorceryMemoryCachePopulate(cache string, opts ...RequestOption) (res *Response, err error) {
3964 req := &SorceryMemoryCachePopulateAction{
3965 Cache: cache,
3966 }
3967 res = &Response{}
3968 return res, cli.Action(req, res, opts...)
3969 }
3970
3971 // JabberSendAction Sends a message to a Jabber Client.
3972 type JabberSendAction struct {
3973 // ActionID ActionID for this transaction. Will be returned.
3974 ActionID string
3975 // Jabber Client or transport Asterisk uses to connect to JABBER.
3976 Jabber string
3977 // JID XMPP/Jabber JID (Name) of recipient.
3978 JID string
3979 // Message Message to be sent to the buddy.
3980 Message string
3981 }
3982
3983 func (JabberSendAction) ActionTypeName() string {
3984 return "JabberSend"
3985 }
3986 func (a JabberSendAction) GetActionID() string {
3987 return a.ActionID
3988 }
3989 func (a *JabberSendAction) SetActionID(actionID string) {
3990 a.ActionID = actionID
3991 }
3992 func (cli *Client) JabberSend(jabber string, jID string, message string, opts ...RequestOption) (res *Response, err error) {
3993 req := &JabberSendAction{
3994 Jabber: jabber,
3995 JID: jID,
3996 Message: message,
3997 }
3998 res = &Response{}
3999 return res, cli.Action(req, res, opts...)
4000 }