File: Asterisk.Manager.html

package info (click to toggle)
py-asterisk 0.1a3%2Br160-4.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 284 kB
  • ctags: 486
  • sloc: python: 1,125; makefile: 52; sh: 20
file content (865 lines) | stat: -rw-r--r-- 72,941 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865

<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module Asterisk.Manager</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="Asterisk.html"><font color="#ffffff">Asterisk</font></a>.Manager</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/src/ks-voip/py-asterisk/Asterisk/Manager.py">/usr/src/ks-voip/py-asterisk/Asterisk/Manager.py</a></font></td></tr></table>
    <p><tt>Asterisk&nbsp;<a href="#Manager">Manager</a>&nbsp;and&nbsp;Channel&nbsp;objects.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="Asterisk.html">Asterisk</a><br>
<a href="errno.html">errno</a><br>
</td><td width="25%" valign=top><a href="logging.html">logging</a><br>
<a href="os.html">os</a><br>
</td><td width="25%" valign=top><a href="socket.html">socket</a><br>
<a href="time.html">time</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="Asterisk.html#BaseException">Asterisk.BaseException</a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#BaseException">BaseException</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#ActionFailed">ActionFailed</a>
</font></dt><dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#AuthenticationFailure">AuthenticationFailure</a>
</font></dt><dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#CommunicationError">CommunicationError</a>
</font></dt><dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#GoneAwayError">GoneAwayError</a>
</font></dt><dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#InternalError">InternalError</a>
</font></dt><dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#PermissionDenied">PermissionDenied</a>
</font></dt></dl>
</dd>
</dl>
</dd>
<dt><font face="helvetica, arial"><a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#BaseChannel">BaseChannel</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#ZapChannel">ZapChannel</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#BaseManager">BaseManager</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#CoreManager">CoreManager</a>(<a href="Asterisk.Manager.html#BaseManager">BaseManager</a>, <a href="Asterisk.Manager.html#CoreActions">CoreActions</a>, <a href="Asterisk.Manager.html#ZapataActions">ZapataActions</a>)
</font></dt><dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#Manager">Manager</a>(<a href="Asterisk.Manager.html#BaseManager">BaseManager</a>, <a href="Asterisk.Manager.html#CoreActions">CoreActions</a>, <a href="Asterisk.Manager.html#ZapataActions">ZapataActions</a>)
</font></dt></dl>
</dd>
</dl>
</dd>
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#CoreActions">CoreActions</a>
</font></dt><dt><font face="helvetica, arial"><a href="Asterisk.Manager.html#ZapataActions">ZapataActions</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="ActionFailed">class <strong>ActionFailed</strong></a>(<a href="Asterisk.Manager.html#BaseException">BaseException</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>This&nbsp;exception&nbsp;is&nbsp;raised&nbsp;when&nbsp;a&nbsp;PBX&nbsp;action&nbsp;fails.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="Asterisk.Manager.html#ActionFailed">ActionFailed</a></dd>
<dd><a href="Asterisk.Manager.html#BaseException">BaseException</a></dd>
<dd><a href="Asterisk.html#BaseException">Asterisk.BaseException</a></dd>
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
</dl>
<hr>
Methods inherited from <a href="Asterisk.html#BaseException">Asterisk.BaseException</a>:<br>
<dl><dt><a name="ActionFailed-__init__"><strong>__init__</strong></a>(self, error)</dt></dl>

<dl><dt><a name="ActionFailed-__str__"><strong>__str__</strong></a>(self)</dt></dl>

<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="ActionFailed-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="AuthenticationFailure">class <strong>AuthenticationFailure</strong></a>(<a href="Asterisk.Manager.html#BaseException">BaseException</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>This&nbsp;exception&nbsp;is&nbsp;raised&nbsp;when&nbsp;authentication&nbsp;to&nbsp;the&nbsp;PBX&nbsp;instance&nbsp;fails.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="Asterisk.Manager.html#AuthenticationFailure">AuthenticationFailure</a></dd>
<dd><a href="Asterisk.Manager.html#BaseException">BaseException</a></dd>
<dd><a href="Asterisk.html#BaseException">Asterisk.BaseException</a></dd>
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
</dl>
<hr>
Methods inherited from <a href="Asterisk.html#BaseException">Asterisk.BaseException</a>:<br>
<dl><dt><a name="AuthenticationFailure-__init__"><strong>__init__</strong></a>(self, error)</dt></dl>

<dl><dt><a name="AuthenticationFailure-__str__"><strong>__str__</strong></a>(self)</dt></dl>

<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="AuthenticationFailure-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="BaseChannel">class <strong>BaseChannel</strong></a>(<a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Represents&nbsp;a&nbsp;living&nbsp;Asterisk&nbsp;channel,&nbsp;with&nbsp;shortcut&nbsp;methods&nbsp;for&nbsp;operating<br>
on&nbsp;it.&nbsp;The&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;acts&nbsp;as&nbsp;a&nbsp;mapping,&nbsp;ie.&nbsp;you&nbsp;may&nbsp;get&nbsp;and&nbsp;set&nbsp;items&nbsp;of&nbsp;it.<br>
This&nbsp;translates&nbsp;to&nbsp;Getvar&nbsp;and&nbsp;Setvar&nbsp;actions&nbsp;on&nbsp;the&nbsp;channel.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="Asterisk.Manager.html#BaseChannel">BaseChannel</a></dd>
<dd><a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="BaseChannel-AbsoluteTimeout"><strong>AbsoluteTimeout</strong></a>(self, timeout)</dt><dd><tt>Set&nbsp;the&nbsp;absolute&nbsp;timeout&nbsp;of&nbsp;this&nbsp;channel&nbsp;to&nbsp;&lt;timeout&gt;.</tt></dd></dl>

<dl><dt><a name="BaseChannel-ChangeMonitor"><strong>ChangeMonitor</strong></a>(self, pathname)</dt><dd><tt>Change&nbsp;the&nbsp;monitor&nbsp;filename&nbsp;of&nbsp;this&nbsp;channel&nbsp;to&nbsp;&lt;pathname&gt;.</tt></dd></dl>

<dl><dt><a name="BaseChannel-Getvar"><strong>Getvar</strong></a>(self, variable, default<font color="#909090">=&lt;Asterisk.Util.Unspecified&gt;</font>)</dt><dd><tt>Return&nbsp;the&nbsp;value&nbsp;of&nbsp;this&nbsp;channel's&nbsp;&lt;variable&gt;,&nbsp;or&nbsp;&lt;default&gt;&nbsp;if&nbsp;variable<br>
is&nbsp;not&nbsp;set.</tt></dd></dl>

<dl><dt><a name="BaseChannel-Hangup"><strong>Hangup</strong></a>(self)</dt><dd><tt>Hangup&nbsp;this&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="BaseChannel-Monitor"><strong>Monitor</strong></a>(self, pathname, format, mix)</dt><dd><tt>Begin&nbsp;monitoring&nbsp;of&nbsp;this&nbsp;channel&nbsp;into&nbsp;&lt;pathname&gt;&nbsp;using&nbsp;&lt;format&gt;.</tt></dd></dl>

<dl><dt><a name="BaseChannel-Redirect"><strong>Redirect</strong></a>(self, context, extension<font color="#909090">='s'</font>, priority<font color="#909090">=1</font>, channel2<font color="#909090">=None</font>)</dt><dd><tt>Redirect&nbsp;this&nbsp;channel&nbsp;to&nbsp;&lt;priority&gt;&nbsp;of&nbsp;&lt;extension&gt;&nbsp;in&nbsp;&lt;context&gt;,<br>
optionally&nbsp;bridging&nbsp;with&nbsp;&lt;channel2&gt;.</tt></dd></dl>

<dl><dt><a name="BaseChannel-SetCDRUserField"><strong>SetCDRUserField</strong></a>(self, data, append<font color="#909090">=False</font>)</dt><dd><tt>Append&nbsp;or&nbsp;replace&nbsp;this&nbsp;channel's&nbsp;CDR&nbsp;user&nbsp;field&nbsp;with&nbsp;&lt;data&gt;.</tt></dd></dl>

<dl><dt><a name="BaseChannel-Setvar"><strong>Setvar</strong></a>(self, variable, value)</dt><dd><tt>Set&nbsp;the&nbsp;&lt;variable&gt;&nbsp;in&nbsp;this&nbsp;channel&nbsp;to&nbsp;&lt;value&gt;.</tt></dd></dl>

<dl><dt><a name="BaseChannel-Status"><strong>Status</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;<a href="#BaseChannel-Status">Status</a>()&nbsp;dict&nbsp;for&nbsp;this&nbsp;channel&nbsp;(wasteful!).</tt></dd></dl>

<dl><dt><a name="BaseChannel-StopMonitor"><strong>StopMonitor</strong></a>(self)</dt><dd><tt>Stop&nbsp;monitoring&nbsp;of&nbsp;this&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="BaseChannel-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;truth&nbsp;if&nbsp;&lt;other&gt;&nbsp;is&nbsp;equal&nbsp;to&nbsp;this&nbsp;<a href="__builtin__.html#object">object</a>.</tt></dd></dl>

<dl><dt><a name="BaseChannel-__getitem__"><strong>__getitem__</strong></a>(self, key)</dt><dd><tt>Fetch&nbsp;&lt;key&gt;&nbsp;as&nbsp;a&nbsp;variable&nbsp;from&nbsp;this&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="BaseChannel-__hash__"><strong>__hash__</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;hash&nbsp;value&nbsp;of&nbsp;this&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="BaseChannel-__init__"><strong>__init__</strong></a>(self, manager, id)</dt><dd><tt>Initialise&nbsp;a&nbsp;new&nbsp;Channel&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;belonging&nbsp;to&nbsp;&lt;id&gt;&nbsp;reachable&nbsp;via<br>
<a href="#BaseManager">BaseManager</a>&nbsp;&lt;manager&gt;.</tt></dd></dl>

<dl><dt><a name="BaseChannel-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>

<dl><dt><a name="BaseChannel-__setitem__"><strong>__setitem__</strong></a>(self, key, value)</dt><dd><tt>Set&nbsp;&lt;key&gt;&nbsp;as&nbsp;a&nbsp;variable&nbsp;on&nbsp;this&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="BaseChannel-__str__"><strong>__str__</strong></a>(self)</dt></dl>

<hr>
Methods inherited from <a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a>:<br>
<dl><dt><a name="BaseChannel-getLogger"><strong>getLogger</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;Logger&nbsp;instance&nbsp;which&nbsp;receives&nbsp;debug&nbsp;messages&nbsp;for&nbsp;this&nbsp;class<br>
instance.</tt></dd></dl>

<dl><dt><a name="BaseChannel-getLoggerName"><strong>getLoggerName</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;name&nbsp;where&nbsp;log&nbsp;messages&nbsp;for&nbsp;this&nbsp;instance&nbsp;is&nbsp;sent.</tt></dd></dl>

<hr>
Data and other attributes inherited from <a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a>:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'InstanceLogger' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="BaseException">class <strong>BaseException</strong></a>(<a href="Asterisk.html#BaseException">Asterisk.BaseException</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Base&nbsp;class&nbsp;for&nbsp;all&nbsp;Asterisk&nbsp;<a href="#Manager">Manager</a>&nbsp;API&nbsp;exceptions.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="Asterisk.Manager.html#BaseException">BaseException</a></dd>
<dd><a href="Asterisk.html#BaseException">Asterisk.BaseException</a></dd>
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
</dl>
<hr>
Methods inherited from <a href="Asterisk.html#BaseException">Asterisk.BaseException</a>:<br>
<dl><dt><a name="BaseException-__init__"><strong>__init__</strong></a>(self, error)</dt></dl>

<dl><dt><a name="BaseException-__str__"><strong>__str__</strong></a>(self)</dt></dl>

<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="BaseException-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="BaseManager">class <strong>BaseManager</strong></a>(<a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Base&nbsp;protocol&nbsp;implementation&nbsp;for&nbsp;the&nbsp;Asterisk&nbsp;<a href="#Manager">Manager</a>&nbsp;API.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="Asterisk.Manager.html#BaseManager">BaseManager</a></dd>
<dd><a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="BaseManager-__init__"><strong>__init__</strong></a>(self, address, username, secret, listen_events<font color="#909090">=True</font>)</dt><dd><tt>Provide&nbsp;communication&nbsp;methods&nbsp;for&nbsp;the&nbsp;PBX&nbsp;instance&nbsp;running&nbsp;at<br>
&lt;address&gt;.&nbsp;Authenticate&nbsp;using&nbsp;&lt;username&gt;&nbsp;and&nbsp;&lt;secret&gt;.&nbsp;Receive&nbsp;event<br>
information&nbsp;from&nbsp;the&nbsp;<a href="#Manager">Manager</a>&nbsp;API&nbsp;if&nbsp;&lt;listen_events&gt;&nbsp;is&nbsp;True.</tt></dd></dl>

<dl><dt><a name="BaseManager-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;string&nbsp;representation&nbsp;of&nbsp;this&nbsp;<a href="__builtin__.html#object">object</a>.</tt></dd></dl>

<dl><dt><a name="BaseManager-close"><strong>close</strong></a>(self)</dt><dd><tt>Log&nbsp;off&nbsp;and&nbsp;close&nbsp;the&nbsp;connection&nbsp;to&nbsp;the&nbsp;PBX.</tt></dd></dl>

<dl><dt><a name="BaseManager-get_channel"><strong>get_channel</strong></a>(self, channel_id)</dt><dd><tt>Return&nbsp;a&nbsp;channel&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;for&nbsp;the&nbsp;given&nbsp;&lt;channel_id&gt;.</tt></dd></dl>

<dl><dt><a name="BaseManager-on_Event"><strong>on_Event</strong></a>(self, event)</dt><dd><tt>Triggered&nbsp;when&nbsp;an&nbsp;event&nbsp;is&nbsp;received&nbsp;from&nbsp;the&nbsp;<a href="#Manager">Manager</a>.</tt></dd></dl>

<dl><dt><a name="BaseManager-read"><strong>read</strong></a>(self)</dt><dd><tt>Called&nbsp;by&nbsp;the&nbsp;parent&nbsp;code&nbsp;when&nbsp;activity&nbsp;is&nbsp;detected&nbsp;on&nbsp;our&nbsp;fd.</tt></dd></dl>

<dl><dt><a name="BaseManager-read_response"><strong>read_response</strong></a>(self, id)</dt><dd><tt>Return&nbsp;the&nbsp;response&nbsp;packet&nbsp;found&nbsp;for&nbsp;the&nbsp;given&nbsp;action&nbsp;&lt;id&gt;.</tt></dd></dl>

<dl><dt><a name="BaseManager-responses_waiting"><strong>responses_waiting</strong></a>(self)</dt><dd><tt>Return&nbsp;truth&nbsp;if&nbsp;there&nbsp;are&nbsp;unprocessed&nbsp;buffered&nbsp;responses.</tt></dd></dl>

<dl><dt><a name="BaseManager-serve_forever"><strong>serve_forever</strong></a>(self)</dt><dd><tt>Handle&nbsp;one&nbsp;event&nbsp;at&nbsp;a&nbsp;time&nbsp;until&nbsp;doomsday.</tt></dd></dl>

<dl><dt><a name="BaseManager-strip_evinfo"><strong>strip_evinfo</strong></a>(self, event)</dt><dd><tt>Given&nbsp;an&nbsp;event,&nbsp;remove&nbsp;it's&nbsp;ActionID&nbsp;and&nbsp;Event&nbsp;members.</tt></dd></dl>

<hr>
Methods inherited from <a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a>:<br>
<dl><dt><a name="BaseManager-getLogger"><strong>getLogger</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;Logger&nbsp;instance&nbsp;which&nbsp;receives&nbsp;debug&nbsp;messages&nbsp;for&nbsp;this&nbsp;class<br>
instance.</tt></dd></dl>

<dl><dt><a name="BaseManager-getLoggerName"><strong>getLoggerName</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;name&nbsp;where&nbsp;log&nbsp;messages&nbsp;for&nbsp;this&nbsp;instance&nbsp;is&nbsp;sent.</tt></dd></dl>

<hr>
Data and other attributes inherited from <a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a>:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'InstanceLogger' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="CommunicationError">class <strong>CommunicationError</strong></a>(<a href="Asterisk.Manager.html#BaseException">BaseException</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>This&nbsp;exception&nbsp;is&nbsp;raised&nbsp;when&nbsp;the&nbsp;PBX&nbsp;responds&nbsp;in&nbsp;an&nbsp;unexpected&nbsp;manner.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="Asterisk.Manager.html#CommunicationError">CommunicationError</a></dd>
<dd><a href="Asterisk.Manager.html#BaseException">BaseException</a></dd>
<dd><a href="Asterisk.html#BaseException">Asterisk.BaseException</a></dd>
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="CommunicationError-__init__"><strong>__init__</strong></a>(self, packet, msg<font color="#909090">=None</font>)</dt></dl>

<hr>
Methods inherited from <a href="Asterisk.html#BaseException">Asterisk.BaseException</a>:<br>
<dl><dt><a name="CommunicationError-__str__"><strong>__str__</strong></a>(self)</dt></dl>

<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="CommunicationError-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="CoreActions">class <strong>CoreActions</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Provide&nbsp;methods&nbsp;for&nbsp;<a href="#Manager">Manager</a>&nbsp;API&nbsp;actions&nbsp;exposed&nbsp;by&nbsp;the&nbsp;core&nbsp;Asterisk<br>
engine.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="CoreActions-AbsoluteTimeout"><strong>AbsoluteTimeout</strong></a>(self, channel, timeout)</dt><dd><tt>Set&nbsp;the&nbsp;absolute&nbsp;timeout&nbsp;of&nbsp;&lt;channel&gt;&nbsp;to&nbsp;&lt;timeout&gt;.</tt></dd></dl>

<dl><dt><a name="CoreActions-ChangeMonitor"><strong>ChangeMonitor</strong></a>(self, channel, pathname)</dt><dd><tt>Change&nbsp;the&nbsp;monitor&nbsp;filename&nbsp;of&nbsp;&lt;channel&gt;&nbsp;to&nbsp;&lt;pathname&gt;.</tt></dd></dl>

<dl><dt><a name="CoreActions-Command"><strong>Command</strong></a>(self, command)</dt><dd><tt>Execute&nbsp;console&nbsp;command&nbsp;&lt;command&gt;&nbsp;and&nbsp;return&nbsp;its&nbsp;output&nbsp;lines.</tt></dd></dl>

<dl><dt><a name="CoreActions-Events"><strong>Events</strong></a>(self, categories)</dt><dd><tt>Filter&nbsp;received&nbsp;events&nbsp;to&nbsp;only&nbsp;those&nbsp;in&nbsp;the&nbsp;list&nbsp;&lt;categories&gt;.</tt></dd></dl>

<dl><dt><a name="CoreActions-ExtensionState"><strong>ExtensionState</strong></a>(self, context, extension)</dt><dd><tt>Return&nbsp;the&nbsp;state&nbsp;of&nbsp;&lt;extension&gt;&nbsp;in&nbsp;&lt;context&gt;.</tt></dd></dl>

<dl><dt><a name="CoreActions-Getvar"><strong>Getvar</strong></a>(self, channel, variable, default<font color="#909090">=&lt;Asterisk.Util.Unspecified&gt;</font>)</dt><dd><tt>Return&nbsp;the&nbsp;value&nbsp;of&nbsp;&lt;channel&gt;'s&nbsp;&lt;variable&gt;,&nbsp;or&nbsp;&lt;default&gt;&nbsp;if&nbsp;&lt;variable&gt;<br>
is&nbsp;not&nbsp;set.</tt></dd></dl>

<dl><dt><a name="CoreActions-Hangup"><strong>Hangup</strong></a>(self, channel)</dt><dd><tt>Hangup&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="CoreActions-ListCommands"><strong>ListCommands</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;dict&nbsp;of&nbsp;all&nbsp;available&nbsp;&lt;action&gt;&nbsp;=&gt;&nbsp;&lt;desc&gt;&nbsp;items.</tt></dd></dl>

<dl><dt><a name="CoreActions-Logoff"><strong>Logoff</strong></a>(self)</dt><dd><tt>Close&nbsp;the&nbsp;connection&nbsp;to&nbsp;the&nbsp;PBX.</tt></dd></dl>

<dl><dt><a name="CoreActions-MailboxCount"><strong>MailboxCount</strong></a>(self, mailbox)</dt><dd><tt>Return&nbsp;a&nbsp;(&lt;new_msgs&gt;,&nbsp;&lt;old_msgs&gt;)&nbsp;tuple&nbsp;for&nbsp;the&nbsp;given&nbsp;&lt;mailbox&gt;.</tt></dd></dl>

<dl><dt><a name="CoreActions-MailboxStatus"><strong>MailboxStatus</strong></a>(self, mailbox)</dt><dd><tt>Return&nbsp;the&nbsp;number&nbsp;of&nbsp;messages&nbsp;in&nbsp;&lt;mailbox&gt;.</tt></dd></dl>

<dl><dt><a name="CoreActions-Monitor"><strong>Monitor</strong></a>(self, channel, pathname, format, mix)</dt><dd><tt>Begin&nbsp;monitoring&nbsp;of&nbsp;&lt;channel&gt;&nbsp;into&nbsp;&lt;pathname&gt;&nbsp;using&nbsp;&lt;format&gt;.</tt></dd></dl>

<dl><dt><a name="CoreActions-Originate"><strong>Originate</strong></a>(self, channel, context<font color="#909090">=None</font>, extension<font color="#909090">=None</font>, priority<font color="#909090">=None</font>, application<font color="#909090">=None</font>, data<font color="#909090">=None</font>, timeout<font color="#909090">=None</font>, caller_id<font color="#909090">=None</font>, variable<font color="#909090">=None</font>, account<font color="#909090">=None</font>, async<font color="#909090">=None</font>)</dt><dd><tt><a href="#CoreActions-Originate">Originate</a>(channel,&nbsp;context&nbsp;=&nbsp;..,&nbsp;extension&nbsp;=&nbsp;..,&nbsp;priority&nbsp;=&nbsp;..[,&nbsp;...])<br>
<a href="#CoreActions-Originate">Originate</a>(channel,&nbsp;application&nbsp;=&nbsp;..[,&nbsp;data&nbsp;=&nbsp;..[,&nbsp;...]])<br>
&nbsp;<br>
Originate&nbsp;a&nbsp;call&nbsp;on&nbsp;&lt;channel&gt;,&nbsp;bridging&nbsp;it&nbsp;to&nbsp;the&nbsp;specified&nbsp;dialplan<br>
extension&nbsp;(format&nbsp;1)&nbsp;or&nbsp;application&nbsp;(format&nbsp;2).<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;context&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dialplan&nbsp;context&nbsp;to&nbsp;bridge&nbsp;with.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;extension&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Context&nbsp;extension&nbsp;to&nbsp;bridge&nbsp;with.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;priority&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Context&nbsp;priority&nbsp;to&nbsp;bridge&nbsp;with.<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;application&gt;&nbsp;&nbsp;&nbsp;Application&nbsp;to&nbsp;bridge&nbsp;with.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;data&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Application&nbsp;parameters.<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;timeout&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Answer&nbsp;timeout&nbsp;for&nbsp;&lt;channel&gt;&nbsp;in&nbsp;milliseconds.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;caller_id&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Outgoing&nbsp;channel&nbsp;Caller&nbsp;ID.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;variable&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel&nbsp;variable&nbsp;to&nbsp;set&nbsp;(K=V[|K2=V2[|..]]).<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;account&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDR&nbsp;account&nbsp;code.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;async&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return&nbsp;successfully&nbsp;immediately.</tt></dd></dl>

<dl><dt><a name="CoreActions-Originate2"><strong>Originate2</strong></a>(self, channel, parameters)</dt><dd><tt>Originate&nbsp;a&nbsp;call,&nbsp;using&nbsp;parameters&nbsp;in&nbsp;the&nbsp;mapping&nbsp;&lt;parameters&gt;.<br>
Provided&nbsp;for&nbsp;compatibility&nbsp;with&nbsp;RPC&nbsp;bridges&nbsp;that&nbsp;do&nbsp;not&nbsp;support&nbsp;keyword<br>
arguments.</tt></dd></dl>

<dl><dt><a name="CoreActions-ParkedCalls"><strong>ParkedCalls</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;nested&nbsp;dict&nbsp;describing&nbsp;currently&nbsp;parked&nbsp;calls.</tt></dd></dl>

<dl><dt><a name="CoreActions-Ping"><strong>Ping</strong></a>(self)</dt><dd><tt>No-op&nbsp;to&nbsp;ensure&nbsp;the&nbsp;PBX&nbsp;is&nbsp;still&nbsp;there&nbsp;and&nbsp;keep&nbsp;the&nbsp;connection&nbsp;alive.</tt></dd></dl>

<dl><dt><a name="CoreActions-QueueAdd"><strong>QueueAdd</strong></a>(self, queue, interface, penalty<font color="#909090">=0</font>)</dt><dd><tt>Add&nbsp;&lt;interface&gt;&nbsp;to&nbsp;&lt;queue&gt;&nbsp;with&nbsp;optional&nbsp;&lt;penalty&gt;.</tt></dd></dl>

<dl><dt><a name="CoreActions-QueueRemove"><strong>QueueRemove</strong></a>(self, queue, interface)</dt><dd><tt>Remove&nbsp;&lt;interface&gt;&nbsp;from&nbsp;&lt;queue&gt;.</tt></dd></dl>

<dl><dt><a name="CoreActions-QueueStatus"><strong>QueueStatus</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;complex&nbsp;nested&nbsp;dict&nbsp;describing&nbsp;queue&nbsp;statii.</tt></dd></dl>

<dl><dt><a name="CoreActions-Queues"><strong>Queues</strong></a> = <a href="#CoreActions-QueueStatus">QueueStatus</a>(self)</dt></dl>

<dl><dt><a name="CoreActions-Redirect"><strong>Redirect</strong></a>(self, channel, context, extension<font color="#909090">='s'</font>, priority<font color="#909090">=1</font>, channel2<font color="#909090">=None</font>)</dt><dd><tt>Redirect&nbsp;&lt;channel&gt;&nbsp;to&nbsp;&lt;priority&gt;&nbsp;of&nbsp;&lt;extension&gt;&nbsp;in&nbsp;&lt;context&gt;,<br>
optionally&nbsp;bridging&nbsp;with&nbsp;&lt;channel2&gt;</tt></dd></dl>

<dl><dt><a name="CoreActions-SetCDRUserField"><strong>SetCDRUserField</strong></a>(self, channel, data, append<font color="#909090">=False</font>)</dt><dd><tt>Append&nbsp;or&nbsp;replace&nbsp;&lt;channel&gt;'s&nbsp;CDR&nbsp;user&nbsp;field&nbsp;with&nbsp;&lt;data&gt;'.</tt></dd></dl>

<dl><dt><a name="CoreActions-Setvar"><strong>Setvar</strong></a>(self, channel, variable, value)</dt><dd><tt>Set&nbsp;&lt;variable&gt;&nbsp;of&nbsp;&lt;channel&gt;&nbsp;to&nbsp;&lt;value&gt;.</tt></dd></dl>

<dl><dt><a name="CoreActions-Status"><strong>Status</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;nested&nbsp;dict&nbsp;of&nbsp;channel&nbsp;statii.</tt></dd></dl>

<dl><dt><a name="CoreActions-StopMonitor"><strong>StopMonitor</strong></a>(self, channel)</dt><dd><tt>Stop&nbsp;monitoring&nbsp;of&nbsp;&lt;channel&gt;.</tt></dd></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'CoreActions' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="CoreManager">class <strong>CoreManager</strong></a>(<a href="Asterisk.Manager.html#BaseManager">BaseManager</a>, <a href="Asterisk.Manager.html#CoreActions">CoreActions</a>, <a href="Asterisk.Manager.html#ZapataActions">ZapataActions</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Asterisk&nbsp;<a href="#Manager">Manager</a>&nbsp;API&nbsp;protocol&nbsp;implementation&nbsp;and&nbsp;core&nbsp;actions,&nbsp;but&nbsp;without<br>
event&nbsp;handlers.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="Asterisk.Manager.html#CoreManager">CoreManager</a></dd>
<dd><a href="Asterisk.Manager.html#BaseManager">BaseManager</a></dd>
<dd><a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a></dd>
<dd><a href="Asterisk.Manager.html#CoreActions">CoreActions</a></dd>
<dd><a href="Asterisk.Manager.html#ZapataActions">ZapataActions</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods inherited from <a href="Asterisk.Manager.html#BaseManager">BaseManager</a>:<br>
<dl><dt><a name="CoreManager-__init__"><strong>__init__</strong></a>(self, address, username, secret, listen_events<font color="#909090">=True</font>)</dt><dd><tt>Provide&nbsp;communication&nbsp;methods&nbsp;for&nbsp;the&nbsp;PBX&nbsp;instance&nbsp;running&nbsp;at<br>
&lt;address&gt;.&nbsp;Authenticate&nbsp;using&nbsp;&lt;username&gt;&nbsp;and&nbsp;&lt;secret&gt;.&nbsp;Receive&nbsp;event<br>
information&nbsp;from&nbsp;the&nbsp;<a href="#Manager">Manager</a>&nbsp;API&nbsp;if&nbsp;&lt;listen_events&gt;&nbsp;is&nbsp;True.</tt></dd></dl>

<dl><dt><a name="CoreManager-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;string&nbsp;representation&nbsp;of&nbsp;this&nbsp;<a href="__builtin__.html#object">object</a>.</tt></dd></dl>

<dl><dt><a name="CoreManager-close"><strong>close</strong></a>(self)</dt><dd><tt>Log&nbsp;off&nbsp;and&nbsp;close&nbsp;the&nbsp;connection&nbsp;to&nbsp;the&nbsp;PBX.</tt></dd></dl>

<dl><dt><a name="CoreManager-get_channel"><strong>get_channel</strong></a>(self, channel_id)</dt><dd><tt>Return&nbsp;a&nbsp;channel&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;for&nbsp;the&nbsp;given&nbsp;&lt;channel_id&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-on_Event"><strong>on_Event</strong></a>(self, event)</dt><dd><tt>Triggered&nbsp;when&nbsp;an&nbsp;event&nbsp;is&nbsp;received&nbsp;from&nbsp;the&nbsp;<a href="#Manager">Manager</a>.</tt></dd></dl>

<dl><dt><a name="CoreManager-read"><strong>read</strong></a>(self)</dt><dd><tt>Called&nbsp;by&nbsp;the&nbsp;parent&nbsp;code&nbsp;when&nbsp;activity&nbsp;is&nbsp;detected&nbsp;on&nbsp;our&nbsp;fd.</tt></dd></dl>

<dl><dt><a name="CoreManager-read_response"><strong>read_response</strong></a>(self, id)</dt><dd><tt>Return&nbsp;the&nbsp;response&nbsp;packet&nbsp;found&nbsp;for&nbsp;the&nbsp;given&nbsp;action&nbsp;&lt;id&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-responses_waiting"><strong>responses_waiting</strong></a>(self)</dt><dd><tt>Return&nbsp;truth&nbsp;if&nbsp;there&nbsp;are&nbsp;unprocessed&nbsp;buffered&nbsp;responses.</tt></dd></dl>

<dl><dt><a name="CoreManager-serve_forever"><strong>serve_forever</strong></a>(self)</dt><dd><tt>Handle&nbsp;one&nbsp;event&nbsp;at&nbsp;a&nbsp;time&nbsp;until&nbsp;doomsday.</tt></dd></dl>

<dl><dt><a name="CoreManager-strip_evinfo"><strong>strip_evinfo</strong></a>(self, event)</dt><dd><tt>Given&nbsp;an&nbsp;event,&nbsp;remove&nbsp;it's&nbsp;ActionID&nbsp;and&nbsp;Event&nbsp;members.</tt></dd></dl>

<hr>
Methods inherited from <a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a>:<br>
<dl><dt><a name="CoreManager-getLogger"><strong>getLogger</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;Logger&nbsp;instance&nbsp;which&nbsp;receives&nbsp;debug&nbsp;messages&nbsp;for&nbsp;this&nbsp;class<br>
instance.</tt></dd></dl>

<dl><dt><a name="CoreManager-getLoggerName"><strong>getLoggerName</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;name&nbsp;where&nbsp;log&nbsp;messages&nbsp;for&nbsp;this&nbsp;instance&nbsp;is&nbsp;sent.</tt></dd></dl>

<hr>
Data and other attributes inherited from <a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a>:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'InstanceLogger' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>

<hr>
Methods inherited from <a href="Asterisk.Manager.html#CoreActions">CoreActions</a>:<br>
<dl><dt><a name="CoreManager-AbsoluteTimeout"><strong>AbsoluteTimeout</strong></a>(self, channel, timeout)</dt><dd><tt>Set&nbsp;the&nbsp;absolute&nbsp;timeout&nbsp;of&nbsp;&lt;channel&gt;&nbsp;to&nbsp;&lt;timeout&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-ChangeMonitor"><strong>ChangeMonitor</strong></a>(self, channel, pathname)</dt><dd><tt>Change&nbsp;the&nbsp;monitor&nbsp;filename&nbsp;of&nbsp;&lt;channel&gt;&nbsp;to&nbsp;&lt;pathname&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-Command"><strong>Command</strong></a>(self, command)</dt><dd><tt>Execute&nbsp;console&nbsp;command&nbsp;&lt;command&gt;&nbsp;and&nbsp;return&nbsp;its&nbsp;output&nbsp;lines.</tt></dd></dl>

<dl><dt><a name="CoreManager-Events"><strong>Events</strong></a>(self, categories)</dt><dd><tt>Filter&nbsp;received&nbsp;events&nbsp;to&nbsp;only&nbsp;those&nbsp;in&nbsp;the&nbsp;list&nbsp;&lt;categories&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-ExtensionState"><strong>ExtensionState</strong></a>(self, context, extension)</dt><dd><tt>Return&nbsp;the&nbsp;state&nbsp;of&nbsp;&lt;extension&gt;&nbsp;in&nbsp;&lt;context&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-Getvar"><strong>Getvar</strong></a>(self, channel, variable, default<font color="#909090">=&lt;Asterisk.Util.Unspecified&gt;</font>)</dt><dd><tt>Return&nbsp;the&nbsp;value&nbsp;of&nbsp;&lt;channel&gt;'s&nbsp;&lt;variable&gt;,&nbsp;or&nbsp;&lt;default&gt;&nbsp;if&nbsp;&lt;variable&gt;<br>
is&nbsp;not&nbsp;set.</tt></dd></dl>

<dl><dt><a name="CoreManager-Hangup"><strong>Hangup</strong></a>(self, channel)</dt><dd><tt>Hangup&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-ListCommands"><strong>ListCommands</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;dict&nbsp;of&nbsp;all&nbsp;available&nbsp;&lt;action&gt;&nbsp;=&gt;&nbsp;&lt;desc&gt;&nbsp;items.</tt></dd></dl>

<dl><dt><a name="CoreManager-Logoff"><strong>Logoff</strong></a>(self)</dt><dd><tt>Close&nbsp;the&nbsp;connection&nbsp;to&nbsp;the&nbsp;PBX.</tt></dd></dl>

<dl><dt><a name="CoreManager-MailboxCount"><strong>MailboxCount</strong></a>(self, mailbox)</dt><dd><tt>Return&nbsp;a&nbsp;(&lt;new_msgs&gt;,&nbsp;&lt;old_msgs&gt;)&nbsp;tuple&nbsp;for&nbsp;the&nbsp;given&nbsp;&lt;mailbox&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-MailboxStatus"><strong>MailboxStatus</strong></a>(self, mailbox)</dt><dd><tt>Return&nbsp;the&nbsp;number&nbsp;of&nbsp;messages&nbsp;in&nbsp;&lt;mailbox&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-Monitor"><strong>Monitor</strong></a>(self, channel, pathname, format, mix)</dt><dd><tt>Begin&nbsp;monitoring&nbsp;of&nbsp;&lt;channel&gt;&nbsp;into&nbsp;&lt;pathname&gt;&nbsp;using&nbsp;&lt;format&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-Originate"><strong>Originate</strong></a>(self, channel, context<font color="#909090">=None</font>, extension<font color="#909090">=None</font>, priority<font color="#909090">=None</font>, application<font color="#909090">=None</font>, data<font color="#909090">=None</font>, timeout<font color="#909090">=None</font>, caller_id<font color="#909090">=None</font>, variable<font color="#909090">=None</font>, account<font color="#909090">=None</font>, async<font color="#909090">=None</font>)</dt><dd><tt><a href="#CoreManager-Originate">Originate</a>(channel,&nbsp;context&nbsp;=&nbsp;..,&nbsp;extension&nbsp;=&nbsp;..,&nbsp;priority&nbsp;=&nbsp;..[,&nbsp;...])<br>
<a href="#CoreManager-Originate">Originate</a>(channel,&nbsp;application&nbsp;=&nbsp;..[,&nbsp;data&nbsp;=&nbsp;..[,&nbsp;...]])<br>
&nbsp;<br>
Originate&nbsp;a&nbsp;call&nbsp;on&nbsp;&lt;channel&gt;,&nbsp;bridging&nbsp;it&nbsp;to&nbsp;the&nbsp;specified&nbsp;dialplan<br>
extension&nbsp;(format&nbsp;1)&nbsp;or&nbsp;application&nbsp;(format&nbsp;2).<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;context&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dialplan&nbsp;context&nbsp;to&nbsp;bridge&nbsp;with.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;extension&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Context&nbsp;extension&nbsp;to&nbsp;bridge&nbsp;with.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;priority&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Context&nbsp;priority&nbsp;to&nbsp;bridge&nbsp;with.<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;application&gt;&nbsp;&nbsp;&nbsp;Application&nbsp;to&nbsp;bridge&nbsp;with.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;data&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Application&nbsp;parameters.<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;timeout&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Answer&nbsp;timeout&nbsp;for&nbsp;&lt;channel&gt;&nbsp;in&nbsp;milliseconds.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;caller_id&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Outgoing&nbsp;channel&nbsp;Caller&nbsp;ID.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;variable&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel&nbsp;variable&nbsp;to&nbsp;set&nbsp;(K=V[|K2=V2[|..]]).<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;account&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDR&nbsp;account&nbsp;code.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;async&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return&nbsp;successfully&nbsp;immediately.</tt></dd></dl>

<dl><dt><a name="CoreManager-Originate2"><strong>Originate2</strong></a>(self, channel, parameters)</dt><dd><tt>Originate&nbsp;a&nbsp;call,&nbsp;using&nbsp;parameters&nbsp;in&nbsp;the&nbsp;mapping&nbsp;&lt;parameters&gt;.<br>
Provided&nbsp;for&nbsp;compatibility&nbsp;with&nbsp;RPC&nbsp;bridges&nbsp;that&nbsp;do&nbsp;not&nbsp;support&nbsp;keyword<br>
arguments.</tt></dd></dl>

<dl><dt><a name="CoreManager-ParkedCalls"><strong>ParkedCalls</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;nested&nbsp;dict&nbsp;describing&nbsp;currently&nbsp;parked&nbsp;calls.</tt></dd></dl>

<dl><dt><a name="CoreManager-Ping"><strong>Ping</strong></a>(self)</dt><dd><tt>No-op&nbsp;to&nbsp;ensure&nbsp;the&nbsp;PBX&nbsp;is&nbsp;still&nbsp;there&nbsp;and&nbsp;keep&nbsp;the&nbsp;connection&nbsp;alive.</tt></dd></dl>

<dl><dt><a name="CoreManager-QueueAdd"><strong>QueueAdd</strong></a>(self, queue, interface, penalty<font color="#909090">=0</font>)</dt><dd><tt>Add&nbsp;&lt;interface&gt;&nbsp;to&nbsp;&lt;queue&gt;&nbsp;with&nbsp;optional&nbsp;&lt;penalty&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-QueueRemove"><strong>QueueRemove</strong></a>(self, queue, interface)</dt><dd><tt>Remove&nbsp;&lt;interface&gt;&nbsp;from&nbsp;&lt;queue&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-QueueStatus"><strong>QueueStatus</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;complex&nbsp;nested&nbsp;dict&nbsp;describing&nbsp;queue&nbsp;statii.</tt></dd></dl>

<dl><dt><a name="CoreManager-Queues"><strong>Queues</strong></a> = QueueStatus(self)</dt><dd><tt>Return&nbsp;a&nbsp;complex&nbsp;nested&nbsp;dict&nbsp;describing&nbsp;queue&nbsp;statii.</tt></dd></dl>

<dl><dt><a name="CoreManager-Redirect"><strong>Redirect</strong></a>(self, channel, context, extension<font color="#909090">='s'</font>, priority<font color="#909090">=1</font>, channel2<font color="#909090">=None</font>)</dt><dd><tt>Redirect&nbsp;&lt;channel&gt;&nbsp;to&nbsp;&lt;priority&gt;&nbsp;of&nbsp;&lt;extension&gt;&nbsp;in&nbsp;&lt;context&gt;,<br>
optionally&nbsp;bridging&nbsp;with&nbsp;&lt;channel2&gt;</tt></dd></dl>

<dl><dt><a name="CoreManager-SetCDRUserField"><strong>SetCDRUserField</strong></a>(self, channel, data, append<font color="#909090">=False</font>)</dt><dd><tt>Append&nbsp;or&nbsp;replace&nbsp;&lt;channel&gt;'s&nbsp;CDR&nbsp;user&nbsp;field&nbsp;with&nbsp;&lt;data&gt;'.</tt></dd></dl>

<dl><dt><a name="CoreManager-Setvar"><strong>Setvar</strong></a>(self, channel, variable, value)</dt><dd><tt>Set&nbsp;&lt;variable&gt;&nbsp;of&nbsp;&lt;channel&gt;&nbsp;to&nbsp;&lt;value&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-Status"><strong>Status</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;nested&nbsp;dict&nbsp;of&nbsp;channel&nbsp;statii.</tt></dd></dl>

<dl><dt><a name="CoreManager-StopMonitor"><strong>StopMonitor</strong></a>(self, channel)</dt><dd><tt>Stop&nbsp;monitoring&nbsp;of&nbsp;&lt;channel&gt;.</tt></dd></dl>

<hr>
Methods inherited from <a href="Asterisk.Manager.html#ZapataActions">ZapataActions</a>:<br>
<dl><dt><a name="CoreManager-ZapDNDoff"><strong>ZapDNDoff</strong></a>(self, channel)</dt><dd><tt>Disable&nbsp;DND&nbsp;status&nbsp;on&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-ZapDNDon"><strong>ZapDNDon</strong></a>(self, channel)</dt><dd><tt>Enable&nbsp;DND&nbsp;status&nbsp;on&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-ZapDialOffhook"><strong>ZapDialOffhook</strong></a>(self, channel, number)</dt><dd><tt>Off-hook&nbsp;dial&nbsp;&lt;number&gt;&nbsp;on&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-ZapHangup"><strong>ZapHangup</strong></a>(self, channel)</dt><dd><tt>Hangup&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="CoreManager-ZapShowChannels"><strong>ZapShowChannels</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;nested&nbsp;dict&nbsp;of&nbsp;Zapata&nbsp;driver&nbsp;channel&nbsp;statii.</tt></dd></dl>

<dl><dt><a name="CoreManager-ZapTransfer"><strong>ZapTransfer</strong></a>(self, channel)</dt><dd><tt>Transfer&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="GoneAwayError">class <strong>GoneAwayError</strong></a>(<a href="Asterisk.Manager.html#BaseException">BaseException</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>This&nbsp;exception&nbsp;is&nbsp;raised&nbsp;when&nbsp;the&nbsp;<a href="#Manager">Manager</a>&nbsp;connection&nbsp;becomes&nbsp;closed.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="Asterisk.Manager.html#GoneAwayError">GoneAwayError</a></dd>
<dd><a href="Asterisk.Manager.html#BaseException">BaseException</a></dd>
<dd><a href="Asterisk.html#BaseException">Asterisk.BaseException</a></dd>
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
</dl>
<hr>
Methods inherited from <a href="Asterisk.html#BaseException">Asterisk.BaseException</a>:<br>
<dl><dt><a name="GoneAwayError-__init__"><strong>__init__</strong></a>(self, error)</dt></dl>

<dl><dt><a name="GoneAwayError-__str__"><strong>__str__</strong></a>(self)</dt></dl>

<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="GoneAwayError-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="InternalError">class <strong>InternalError</strong></a>(<a href="Asterisk.Manager.html#BaseException">BaseException</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>This&nbsp;exception&nbsp;is&nbsp;raised&nbsp;when&nbsp;an&nbsp;error&nbsp;occurs&nbsp;within&nbsp;a&nbsp;<a href="#Manager">Manager</a>&nbsp;<a href="__builtin__.html#object">object</a>.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="Asterisk.Manager.html#InternalError">InternalError</a></dd>
<dd><a href="Asterisk.Manager.html#BaseException">BaseException</a></dd>
<dd><a href="Asterisk.html#BaseException">Asterisk.BaseException</a></dd>
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
</dl>
<hr>
Methods inherited from <a href="Asterisk.html#BaseException">Asterisk.BaseException</a>:<br>
<dl><dt><a name="InternalError-__init__"><strong>__init__</strong></a>(self, error)</dt></dl>

<dl><dt><a name="InternalError-__str__"><strong>__str__</strong></a>(self)</dt></dl>

<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="InternalError-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Manager">class <strong>Manager</strong></a>(<a href="Asterisk.Manager.html#BaseManager">BaseManager</a>, <a href="Asterisk.Manager.html#CoreActions">CoreActions</a>, <a href="Asterisk.Manager.html#ZapataActions">ZapataActions</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Asterisk&nbsp;<a href="#Manager">Manager</a>&nbsp;API&nbsp;protocol&nbsp;implementation,&nbsp;core&nbsp;event&nbsp;handler<br>
placeholders,&nbsp;and&nbsp;core&nbsp;actions.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="Asterisk.Manager.html#Manager">Manager</a></dd>
<dd><a href="Asterisk.Manager.html#BaseManager">BaseManager</a></dd>
<dd><a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a></dd>
<dd><a href="Asterisk.Manager.html#CoreActions">CoreActions</a></dd>
<dd><a href="Asterisk.Manager.html#ZapataActions">ZapataActions</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods inherited from <a href="Asterisk.Manager.html#BaseManager">BaseManager</a>:<br>
<dl><dt><a name="Manager-__init__"><strong>__init__</strong></a>(self, address, username, secret, listen_events<font color="#909090">=True</font>)</dt><dd><tt>Provide&nbsp;communication&nbsp;methods&nbsp;for&nbsp;the&nbsp;PBX&nbsp;instance&nbsp;running&nbsp;at<br>
&lt;address&gt;.&nbsp;Authenticate&nbsp;using&nbsp;&lt;username&gt;&nbsp;and&nbsp;&lt;secret&gt;.&nbsp;Receive&nbsp;event<br>
information&nbsp;from&nbsp;the&nbsp;<a href="#Manager">Manager</a>&nbsp;API&nbsp;if&nbsp;&lt;listen_events&gt;&nbsp;is&nbsp;True.</tt></dd></dl>

<dl><dt><a name="Manager-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;string&nbsp;representation&nbsp;of&nbsp;this&nbsp;<a href="__builtin__.html#object">object</a>.</tt></dd></dl>

<dl><dt><a name="Manager-close"><strong>close</strong></a>(self)</dt><dd><tt>Log&nbsp;off&nbsp;and&nbsp;close&nbsp;the&nbsp;connection&nbsp;to&nbsp;the&nbsp;PBX.</tt></dd></dl>

<dl><dt><a name="Manager-get_channel"><strong>get_channel</strong></a>(self, channel_id)</dt><dd><tt>Return&nbsp;a&nbsp;channel&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;for&nbsp;the&nbsp;given&nbsp;&lt;channel_id&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-on_Event"><strong>on_Event</strong></a>(self, event)</dt><dd><tt>Triggered&nbsp;when&nbsp;an&nbsp;event&nbsp;is&nbsp;received&nbsp;from&nbsp;the&nbsp;<a href="#Manager">Manager</a>.</tt></dd></dl>

<dl><dt><a name="Manager-read"><strong>read</strong></a>(self)</dt><dd><tt>Called&nbsp;by&nbsp;the&nbsp;parent&nbsp;code&nbsp;when&nbsp;activity&nbsp;is&nbsp;detected&nbsp;on&nbsp;our&nbsp;fd.</tt></dd></dl>

<dl><dt><a name="Manager-read_response"><strong>read_response</strong></a>(self, id)</dt><dd><tt>Return&nbsp;the&nbsp;response&nbsp;packet&nbsp;found&nbsp;for&nbsp;the&nbsp;given&nbsp;action&nbsp;&lt;id&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-responses_waiting"><strong>responses_waiting</strong></a>(self)</dt><dd><tt>Return&nbsp;truth&nbsp;if&nbsp;there&nbsp;are&nbsp;unprocessed&nbsp;buffered&nbsp;responses.</tt></dd></dl>

<dl><dt><a name="Manager-serve_forever"><strong>serve_forever</strong></a>(self)</dt><dd><tt>Handle&nbsp;one&nbsp;event&nbsp;at&nbsp;a&nbsp;time&nbsp;until&nbsp;doomsday.</tt></dd></dl>

<dl><dt><a name="Manager-strip_evinfo"><strong>strip_evinfo</strong></a>(self, event)</dt><dd><tt>Given&nbsp;an&nbsp;event,&nbsp;remove&nbsp;it's&nbsp;ActionID&nbsp;and&nbsp;Event&nbsp;members.</tt></dd></dl>

<hr>
Methods inherited from <a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a>:<br>
<dl><dt><a name="Manager-getLogger"><strong>getLogger</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;Logger&nbsp;instance&nbsp;which&nbsp;receives&nbsp;debug&nbsp;messages&nbsp;for&nbsp;this&nbsp;class<br>
instance.</tt></dd></dl>

<dl><dt><a name="Manager-getLoggerName"><strong>getLoggerName</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;name&nbsp;where&nbsp;log&nbsp;messages&nbsp;for&nbsp;this&nbsp;instance&nbsp;is&nbsp;sent.</tt></dd></dl>

<hr>
Data and other attributes inherited from <a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a>:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'InstanceLogger' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>

<hr>
Methods inherited from <a href="Asterisk.Manager.html#CoreActions">CoreActions</a>:<br>
<dl><dt><a name="Manager-AbsoluteTimeout"><strong>AbsoluteTimeout</strong></a>(self, channel, timeout)</dt><dd><tt>Set&nbsp;the&nbsp;absolute&nbsp;timeout&nbsp;of&nbsp;&lt;channel&gt;&nbsp;to&nbsp;&lt;timeout&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-ChangeMonitor"><strong>ChangeMonitor</strong></a>(self, channel, pathname)</dt><dd><tt>Change&nbsp;the&nbsp;monitor&nbsp;filename&nbsp;of&nbsp;&lt;channel&gt;&nbsp;to&nbsp;&lt;pathname&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-Command"><strong>Command</strong></a>(self, command)</dt><dd><tt>Execute&nbsp;console&nbsp;command&nbsp;&lt;command&gt;&nbsp;and&nbsp;return&nbsp;its&nbsp;output&nbsp;lines.</tt></dd></dl>

<dl><dt><a name="Manager-Events"><strong>Events</strong></a>(self, categories)</dt><dd><tt>Filter&nbsp;received&nbsp;events&nbsp;to&nbsp;only&nbsp;those&nbsp;in&nbsp;the&nbsp;list&nbsp;&lt;categories&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-ExtensionState"><strong>ExtensionState</strong></a>(self, context, extension)</dt><dd><tt>Return&nbsp;the&nbsp;state&nbsp;of&nbsp;&lt;extension&gt;&nbsp;in&nbsp;&lt;context&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-Getvar"><strong>Getvar</strong></a>(self, channel, variable, default<font color="#909090">=&lt;Asterisk.Util.Unspecified&gt;</font>)</dt><dd><tt>Return&nbsp;the&nbsp;value&nbsp;of&nbsp;&lt;channel&gt;'s&nbsp;&lt;variable&gt;,&nbsp;or&nbsp;&lt;default&gt;&nbsp;if&nbsp;&lt;variable&gt;<br>
is&nbsp;not&nbsp;set.</tt></dd></dl>

<dl><dt><a name="Manager-Hangup"><strong>Hangup</strong></a>(self, channel)</dt><dd><tt>Hangup&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-ListCommands"><strong>ListCommands</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;dict&nbsp;of&nbsp;all&nbsp;available&nbsp;&lt;action&gt;&nbsp;=&gt;&nbsp;&lt;desc&gt;&nbsp;items.</tt></dd></dl>

<dl><dt><a name="Manager-Logoff"><strong>Logoff</strong></a>(self)</dt><dd><tt>Close&nbsp;the&nbsp;connection&nbsp;to&nbsp;the&nbsp;PBX.</tt></dd></dl>

<dl><dt><a name="Manager-MailboxCount"><strong>MailboxCount</strong></a>(self, mailbox)</dt><dd><tt>Return&nbsp;a&nbsp;(&lt;new_msgs&gt;,&nbsp;&lt;old_msgs&gt;)&nbsp;tuple&nbsp;for&nbsp;the&nbsp;given&nbsp;&lt;mailbox&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-MailboxStatus"><strong>MailboxStatus</strong></a>(self, mailbox)</dt><dd><tt>Return&nbsp;the&nbsp;number&nbsp;of&nbsp;messages&nbsp;in&nbsp;&lt;mailbox&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-Monitor"><strong>Monitor</strong></a>(self, channel, pathname, format, mix)</dt><dd><tt>Begin&nbsp;monitoring&nbsp;of&nbsp;&lt;channel&gt;&nbsp;into&nbsp;&lt;pathname&gt;&nbsp;using&nbsp;&lt;format&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-Originate"><strong>Originate</strong></a>(self, channel, context<font color="#909090">=None</font>, extension<font color="#909090">=None</font>, priority<font color="#909090">=None</font>, application<font color="#909090">=None</font>, data<font color="#909090">=None</font>, timeout<font color="#909090">=None</font>, caller_id<font color="#909090">=None</font>, variable<font color="#909090">=None</font>, account<font color="#909090">=None</font>, async<font color="#909090">=None</font>)</dt><dd><tt><a href="#Manager-Originate">Originate</a>(channel,&nbsp;context&nbsp;=&nbsp;..,&nbsp;extension&nbsp;=&nbsp;..,&nbsp;priority&nbsp;=&nbsp;..[,&nbsp;...])<br>
<a href="#Manager-Originate">Originate</a>(channel,&nbsp;application&nbsp;=&nbsp;..[,&nbsp;data&nbsp;=&nbsp;..[,&nbsp;...]])<br>
&nbsp;<br>
Originate&nbsp;a&nbsp;call&nbsp;on&nbsp;&lt;channel&gt;,&nbsp;bridging&nbsp;it&nbsp;to&nbsp;the&nbsp;specified&nbsp;dialplan<br>
extension&nbsp;(format&nbsp;1)&nbsp;or&nbsp;application&nbsp;(format&nbsp;2).<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;context&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dialplan&nbsp;context&nbsp;to&nbsp;bridge&nbsp;with.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;extension&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Context&nbsp;extension&nbsp;to&nbsp;bridge&nbsp;with.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;priority&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Context&nbsp;priority&nbsp;to&nbsp;bridge&nbsp;with.<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;application&gt;&nbsp;&nbsp;&nbsp;Application&nbsp;to&nbsp;bridge&nbsp;with.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;data&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Application&nbsp;parameters.<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;timeout&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Answer&nbsp;timeout&nbsp;for&nbsp;&lt;channel&gt;&nbsp;in&nbsp;milliseconds.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;caller_id&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Outgoing&nbsp;channel&nbsp;Caller&nbsp;ID.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;variable&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel&nbsp;variable&nbsp;to&nbsp;set&nbsp;(K=V[|K2=V2[|..]]).<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;account&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDR&nbsp;account&nbsp;code.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;async&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return&nbsp;successfully&nbsp;immediately.</tt></dd></dl>

<dl><dt><a name="Manager-Originate2"><strong>Originate2</strong></a>(self, channel, parameters)</dt><dd><tt>Originate&nbsp;a&nbsp;call,&nbsp;using&nbsp;parameters&nbsp;in&nbsp;the&nbsp;mapping&nbsp;&lt;parameters&gt;.<br>
Provided&nbsp;for&nbsp;compatibility&nbsp;with&nbsp;RPC&nbsp;bridges&nbsp;that&nbsp;do&nbsp;not&nbsp;support&nbsp;keyword<br>
arguments.</tt></dd></dl>

<dl><dt><a name="Manager-ParkedCalls"><strong>ParkedCalls</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;nested&nbsp;dict&nbsp;describing&nbsp;currently&nbsp;parked&nbsp;calls.</tt></dd></dl>

<dl><dt><a name="Manager-Ping"><strong>Ping</strong></a>(self)</dt><dd><tt>No-op&nbsp;to&nbsp;ensure&nbsp;the&nbsp;PBX&nbsp;is&nbsp;still&nbsp;there&nbsp;and&nbsp;keep&nbsp;the&nbsp;connection&nbsp;alive.</tt></dd></dl>

<dl><dt><a name="Manager-QueueAdd"><strong>QueueAdd</strong></a>(self, queue, interface, penalty<font color="#909090">=0</font>)</dt><dd><tt>Add&nbsp;&lt;interface&gt;&nbsp;to&nbsp;&lt;queue&gt;&nbsp;with&nbsp;optional&nbsp;&lt;penalty&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-QueueRemove"><strong>QueueRemove</strong></a>(self, queue, interface)</dt><dd><tt>Remove&nbsp;&lt;interface&gt;&nbsp;from&nbsp;&lt;queue&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-QueueStatus"><strong>QueueStatus</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;complex&nbsp;nested&nbsp;dict&nbsp;describing&nbsp;queue&nbsp;statii.</tt></dd></dl>

<dl><dt><a name="Manager-Queues"><strong>Queues</strong></a> = QueueStatus(self)</dt><dd><tt>Return&nbsp;a&nbsp;complex&nbsp;nested&nbsp;dict&nbsp;describing&nbsp;queue&nbsp;statii.</tt></dd></dl>

<dl><dt><a name="Manager-Redirect"><strong>Redirect</strong></a>(self, channel, context, extension<font color="#909090">='s'</font>, priority<font color="#909090">=1</font>, channel2<font color="#909090">=None</font>)</dt><dd><tt>Redirect&nbsp;&lt;channel&gt;&nbsp;to&nbsp;&lt;priority&gt;&nbsp;of&nbsp;&lt;extension&gt;&nbsp;in&nbsp;&lt;context&gt;,<br>
optionally&nbsp;bridging&nbsp;with&nbsp;&lt;channel2&gt;</tt></dd></dl>

<dl><dt><a name="Manager-SetCDRUserField"><strong>SetCDRUserField</strong></a>(self, channel, data, append<font color="#909090">=False</font>)</dt><dd><tt>Append&nbsp;or&nbsp;replace&nbsp;&lt;channel&gt;'s&nbsp;CDR&nbsp;user&nbsp;field&nbsp;with&nbsp;&lt;data&gt;'.</tt></dd></dl>

<dl><dt><a name="Manager-Setvar"><strong>Setvar</strong></a>(self, channel, variable, value)</dt><dd><tt>Set&nbsp;&lt;variable&gt;&nbsp;of&nbsp;&lt;channel&gt;&nbsp;to&nbsp;&lt;value&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-Status"><strong>Status</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;nested&nbsp;dict&nbsp;of&nbsp;channel&nbsp;statii.</tt></dd></dl>

<dl><dt><a name="Manager-StopMonitor"><strong>StopMonitor</strong></a>(self, channel)</dt><dd><tt>Stop&nbsp;monitoring&nbsp;of&nbsp;&lt;channel&gt;.</tt></dd></dl>

<hr>
Methods inherited from <a href="Asterisk.Manager.html#ZapataActions">ZapataActions</a>:<br>
<dl><dt><a name="Manager-ZapDNDoff"><strong>ZapDNDoff</strong></a>(self, channel)</dt><dd><tt>Disable&nbsp;DND&nbsp;status&nbsp;on&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-ZapDNDon"><strong>ZapDNDon</strong></a>(self, channel)</dt><dd><tt>Enable&nbsp;DND&nbsp;status&nbsp;on&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-ZapDialOffhook"><strong>ZapDialOffhook</strong></a>(self, channel, number)</dt><dd><tt>Off-hook&nbsp;dial&nbsp;&lt;number&gt;&nbsp;on&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-ZapHangup"><strong>ZapHangup</strong></a>(self, channel)</dt><dd><tt>Hangup&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="Manager-ZapShowChannels"><strong>ZapShowChannels</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;nested&nbsp;dict&nbsp;of&nbsp;Zapata&nbsp;driver&nbsp;channel&nbsp;statii.</tt></dd></dl>

<dl><dt><a name="Manager-ZapTransfer"><strong>ZapTransfer</strong></a>(self, channel)</dt><dd><tt>Transfer&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="PermissionDenied">class <strong>PermissionDenied</strong></a>(<a href="Asterisk.Manager.html#BaseException">BaseException</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>This&nbsp;exception&nbsp;is&nbsp;raised&nbsp;when&nbsp;our&nbsp;connection&nbsp;is&nbsp;not&nbsp;permitted&nbsp;to&nbsp;perform&nbsp;a<br>
requested&nbsp;action.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="Asterisk.Manager.html#PermissionDenied">PermissionDenied</a></dd>
<dd><a href="Asterisk.Manager.html#BaseException">BaseException</a></dd>
<dd><a href="Asterisk.html#BaseException">Asterisk.BaseException</a></dd>
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
</dl>
<hr>
Methods inherited from <a href="Asterisk.html#BaseException">Asterisk.BaseException</a>:<br>
<dl><dt><a name="PermissionDenied-__init__"><strong>__init__</strong></a>(self, error)</dt></dl>

<dl><dt><a name="PermissionDenied-__str__"><strong>__str__</strong></a>(self)</dt></dl>

<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="PermissionDenied-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="ZapChannel">class <strong>ZapChannel</strong></a>(<a href="Asterisk.Manager.html#BaseChannel">BaseChannel</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="Asterisk.Manager.html#ZapChannel">ZapChannel</a></dd>
<dd><a href="Asterisk.Manager.html#BaseChannel">BaseChannel</a></dd>
<dd><a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="ZapChannel-ZapDNDoff"><strong>ZapDNDoff</strong></a>(self)</dt><dd><tt>Disable&nbsp;DND&nbsp;status&nbsp;on&nbsp;this&nbsp;Zapata&nbsp;driver&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="ZapChannel-ZapDNDon"><strong>ZapDNDon</strong></a>(self)</dt><dd><tt>Enable&nbsp;DND&nbsp;status&nbsp;on&nbsp;this&nbsp;Zapata&nbsp;driver&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="ZapChannel-ZapDialOffhook"><strong>ZapDialOffhook</strong></a>(self, number)</dt><dd><tt>Off-hook&nbsp;dial&nbsp;&lt;number&gt;&nbsp;on&nbsp;this&nbsp;Zapata&nbsp;driver&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="ZapChannel-ZapHangup"><strong>ZapHangup</strong></a>(self)</dt><dd><tt>Hangup&nbsp;this&nbsp;Zapata&nbsp;driver&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="ZapChannel-ZapTransfer"><strong>ZapTransfer</strong></a>(self)</dt><dd><tt>Transfer&nbsp;this&nbsp;Zapata&nbsp;driver&nbsp;channel.</tt></dd></dl>

<hr>
Methods inherited from <a href="Asterisk.Manager.html#BaseChannel">BaseChannel</a>:<br>
<dl><dt><a name="ZapChannel-AbsoluteTimeout"><strong>AbsoluteTimeout</strong></a>(self, timeout)</dt><dd><tt>Set&nbsp;the&nbsp;absolute&nbsp;timeout&nbsp;of&nbsp;this&nbsp;channel&nbsp;to&nbsp;&lt;timeout&gt;.</tt></dd></dl>

<dl><dt><a name="ZapChannel-ChangeMonitor"><strong>ChangeMonitor</strong></a>(self, pathname)</dt><dd><tt>Change&nbsp;the&nbsp;monitor&nbsp;filename&nbsp;of&nbsp;this&nbsp;channel&nbsp;to&nbsp;&lt;pathname&gt;.</tt></dd></dl>

<dl><dt><a name="ZapChannel-Getvar"><strong>Getvar</strong></a>(self, variable, default<font color="#909090">=&lt;Asterisk.Util.Unspecified&gt;</font>)</dt><dd><tt>Return&nbsp;the&nbsp;value&nbsp;of&nbsp;this&nbsp;channel's&nbsp;&lt;variable&gt;,&nbsp;or&nbsp;&lt;default&gt;&nbsp;if&nbsp;variable<br>
is&nbsp;not&nbsp;set.</tt></dd></dl>

<dl><dt><a name="ZapChannel-Hangup"><strong>Hangup</strong></a>(self)</dt><dd><tt>Hangup&nbsp;this&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="ZapChannel-Monitor"><strong>Monitor</strong></a>(self, pathname, format, mix)</dt><dd><tt>Begin&nbsp;monitoring&nbsp;of&nbsp;this&nbsp;channel&nbsp;into&nbsp;&lt;pathname&gt;&nbsp;using&nbsp;&lt;format&gt;.</tt></dd></dl>

<dl><dt><a name="ZapChannel-Redirect"><strong>Redirect</strong></a>(self, context, extension<font color="#909090">='s'</font>, priority<font color="#909090">=1</font>, channel2<font color="#909090">=None</font>)</dt><dd><tt>Redirect&nbsp;this&nbsp;channel&nbsp;to&nbsp;&lt;priority&gt;&nbsp;of&nbsp;&lt;extension&gt;&nbsp;in&nbsp;&lt;context&gt;,<br>
optionally&nbsp;bridging&nbsp;with&nbsp;&lt;channel2&gt;.</tt></dd></dl>

<dl><dt><a name="ZapChannel-SetCDRUserField"><strong>SetCDRUserField</strong></a>(self, data, append<font color="#909090">=False</font>)</dt><dd><tt>Append&nbsp;or&nbsp;replace&nbsp;this&nbsp;channel's&nbsp;CDR&nbsp;user&nbsp;field&nbsp;with&nbsp;&lt;data&gt;.</tt></dd></dl>

<dl><dt><a name="ZapChannel-Setvar"><strong>Setvar</strong></a>(self, variable, value)</dt><dd><tt>Set&nbsp;the&nbsp;&lt;variable&gt;&nbsp;in&nbsp;this&nbsp;channel&nbsp;to&nbsp;&lt;value&gt;.</tt></dd></dl>

<dl><dt><a name="ZapChannel-Status"><strong>Status</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;<a href="#ZapChannel-Status">Status</a>()&nbsp;dict&nbsp;for&nbsp;this&nbsp;channel&nbsp;(wasteful!).</tt></dd></dl>

<dl><dt><a name="ZapChannel-StopMonitor"><strong>StopMonitor</strong></a>(self)</dt><dd><tt>Stop&nbsp;monitoring&nbsp;of&nbsp;this&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="ZapChannel-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;truth&nbsp;if&nbsp;&lt;other&gt;&nbsp;is&nbsp;equal&nbsp;to&nbsp;this&nbsp;<a href="__builtin__.html#object">object</a>.</tt></dd></dl>

<dl><dt><a name="ZapChannel-__getitem__"><strong>__getitem__</strong></a>(self, key)</dt><dd><tt>Fetch&nbsp;&lt;key&gt;&nbsp;as&nbsp;a&nbsp;variable&nbsp;from&nbsp;this&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="ZapChannel-__hash__"><strong>__hash__</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;hash&nbsp;value&nbsp;of&nbsp;this&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="ZapChannel-__init__"><strong>__init__</strong></a>(self, manager, id)</dt><dd><tt>Initialise&nbsp;a&nbsp;new&nbsp;Channel&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;belonging&nbsp;to&nbsp;&lt;id&gt;&nbsp;reachable&nbsp;via<br>
<a href="#BaseManager">BaseManager</a>&nbsp;&lt;manager&gt;.</tt></dd></dl>

<dl><dt><a name="ZapChannel-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>

<dl><dt><a name="ZapChannel-__setitem__"><strong>__setitem__</strong></a>(self, key, value)</dt><dd><tt>Set&nbsp;&lt;key&gt;&nbsp;as&nbsp;a&nbsp;variable&nbsp;on&nbsp;this&nbsp;channel.</tt></dd></dl>

<dl><dt><a name="ZapChannel-__str__"><strong>__str__</strong></a>(self)</dt></dl>

<hr>
Methods inherited from <a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a>:<br>
<dl><dt><a name="ZapChannel-getLogger"><strong>getLogger</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;Logger&nbsp;instance&nbsp;which&nbsp;receives&nbsp;debug&nbsp;messages&nbsp;for&nbsp;this&nbsp;class<br>
instance.</tt></dd></dl>

<dl><dt><a name="ZapChannel-getLoggerName"><strong>getLoggerName</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;name&nbsp;where&nbsp;log&nbsp;messages&nbsp;for&nbsp;this&nbsp;instance&nbsp;is&nbsp;sent.</tt></dd></dl>

<hr>
Data and other attributes inherited from <a href="Asterisk.Logging.html#InstanceLogger">Asterisk.Logging.InstanceLogger</a>:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'InstanceLogger' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="ZapataActions">class <strong>ZapataActions</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Provide&nbsp;methods&nbsp;for&nbsp;<a href="#Manager">Manager</a>&nbsp;API&nbsp;actions&nbsp;exposed&nbsp;by&nbsp;the&nbsp;Zapata&nbsp;driver.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="ZapataActions-ZapDNDoff"><strong>ZapDNDoff</strong></a>(self, channel)</dt><dd><tt>Disable&nbsp;DND&nbsp;status&nbsp;on&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="ZapataActions-ZapDNDon"><strong>ZapDNDon</strong></a>(self, channel)</dt><dd><tt>Enable&nbsp;DND&nbsp;status&nbsp;on&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="ZapataActions-ZapDialOffhook"><strong>ZapDialOffhook</strong></a>(self, channel, number)</dt><dd><tt>Off-hook&nbsp;dial&nbsp;&lt;number&gt;&nbsp;on&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="ZapataActions-ZapHangup"><strong>ZapHangup</strong></a>(self, channel)</dt><dd><tt>Hangup&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

<dl><dt><a name="ZapataActions-ZapShowChannels"><strong>ZapShowChannels</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;nested&nbsp;dict&nbsp;of&nbsp;Zapata&nbsp;driver&nbsp;channel&nbsp;statii.</tt></dd></dl>

<dl><dt><a name="ZapataActions-ZapTransfer"><strong>ZapTransfer</strong></a>(self, channel)</dt><dd><tt>Transfer&nbsp;Zapata&nbsp;driver&nbsp;&lt;channel&gt;.</tt></dd></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'ZapataActions' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>

</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>__author__</strong> = 'David M. Wilson &lt;dw-py-asterisk-Manager.py@botanicus.net&gt;'<br>
<strong>__id__</strong> = '$Id: Asterisk.Manager.html 103 2004-10-17 21:00:47Z dw $'</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#7799ee">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
    
<tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">David&nbsp;M.&nbsp;Wilson&nbsp;&lt;dw-py-asterisk-Manager.py@botanicus.net&gt;</td></tr></table>
</body></html>