-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_pjsua.htm
1044 lines (985 loc) · 93.2 KB
/
_pjsua.htm
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
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module _pjsua</title>
<LINK href="/style/style.css" type="text/css" rel="stylesheet">
</head><body bgcolor="#f0f0f8">
<!--#include virtual="/header.html" -->
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>_pjsua</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/lib/python2.5/site-packages/_pjsua.so">/usr/lib/python2.5/site-packages/_pjsua.so</a></font></td></tr></table>
<p><tt>PJSUA-lib module for python</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="_pjsua.html#Acc_Config">Acc_Config</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Acc_Info">Acc_Info</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Buddy_Config">Buddy_Config</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Buddy_Info">Buddy_Info</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Call_Info">Call_Info</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Callback">Callback</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Codec_Info">Codec_Info</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Conf_Port_Info">Conf_Port_Info</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Config">Config</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Logging_Config">Logging_Config</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Media_Config">Media_Config</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Msg_Data">Msg_Data</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#PJMedia_Codec_Param">PJMedia_Codec_Param</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#PJMedia_Codec_Param_Info">PJMedia_Codec_Param_Info</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#PJMedia_Codec_Param_Setting">PJMedia_Codec_Param_Setting</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#PJMedia_Port">PJMedia_Port</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#PJMedia_Snd_Dev_Info">PJMedia_Snd_Dev_Info</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#PJ_Time_Val">PJ_Time_Val</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Pj_Pool">Pj_Pool</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Pj_Pool_Factory">Pj_Pool_Factory</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Pjmedia_Endpt">Pjmedia_Endpt</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Pjsip_Cred_Info">Pjsip_Cred_Info</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Pjsip_Endpoint">Pjsip_Endpoint</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Pjsip_Event">Pjsip_Event</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Pjsip_Rx_Data">Pjsip_Rx_Data</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Transport_Config">Transport_Config</a>
</font></dt><dt><font face="helvetica, arial"><a href="_pjsua.html#Transport_Info">Transport_Info</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Acc_Config">class <strong>Acc_Config</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Acc <a href="#Config">Config</a> objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>allow_contact_rewrite</strong></dt>
<dd><tt>Re-REGISTER if behind symmetric NAT.</tt></dd>
</dl>
<dl><dt><strong>auth_initial_algorithm</strong></dt>
<dd><tt>Specify algorithm in empty initial authorization header.</tt></dd>
</dl>
<dl><dt><strong>auth_initial_send</strong></dt>
<dd><tt>Send empty initial authorization header.</tt></dd>
</dl>
<dl><dt><strong>cred_info</strong></dt>
<dd><tt>Array of credentials. If registration is desired, normally there should be at least one credential specified, to successfully authenticate against the service provider. More credentials can be specified, for example when the requests are expected to be challenged by the proxies in the route set.</tt></dd>
</dl>
<dl><dt><strong>force_contact</strong></dt>
<dd><tt>Optional URI to be put as Contact for this account. It is recommended that this field is left empty, so that the value will be calculated automatically based on the transport address.</tt></dd>
</dl>
<dl><dt><strong>id</strong></dt>
<dd><tt>The full SIP URL for the account. The value can take name address or URL format, and will look something like 'sip:account@serviceprovider'. This field is mandatory.</tt></dd>
</dl>
<dl><dt><strong>ka_data</strong></dt>
<dd><tt>Keep-alive data.</tt></dd>
</dl>
<dl><dt><strong>ka_interval</strong></dt>
<dd><tt>Keep-alive interval.</tt></dd>
</dl>
<dl><dt><strong>pidf_tuple_id</strong></dt>
<dd><tt>PIDF tuple id.</tt></dd>
</dl>
<dl><dt><strong>priority</strong></dt>
<dd><tt>Account priority, which is used to control the order of matching incoming/outgoing requests. The higher the number means the higher the priority is, and the account will be matched first.</tt></dd>
</dl>
<dl><dt><strong>proxy</strong></dt>
<dd><tt>Optional URI of the proxies to be visited for all outgoing requests that are using this account (REGISTER, INVITE, etc). Application need to specify these proxies if the service provider requires that requests destined towards its network should go through certain proxies first (for example, border controllers).</tt></dd>
</dl>
<dl><dt><strong>publish_enabled</strong></dt>
<dd><tt>Publish presence?</tt></dd>
</dl>
<dl><dt><strong>reg_timeout</strong></dt>
<dd><tt>Optional interval for registration, in seconds. If the value is zero, default interval will be used (PJSUA_REG_INTERVAL, 55 seconds).</tt></dd>
</dl>
<dl><dt><strong>reg_uri</strong></dt>
<dd><tt>This is the URL to be put in the request URI for the registration, and will look something like 'sip:serviceprovider'. This field should be specified if registration is desired. If the value is empty, no account registration will be performed.</tt></dd>
</dl>
<dl><dt><strong>require_100rel</strong></dt>
<dd><tt>Require reliable provisional response.</tt></dd>
</dl>
<dl><dt><strong>srtp_secure_signaling</strong></dt>
<dd><tt>Specify if SRTP requires secure signaling to be used.</tt></dd>
</dl>
<dl><dt><strong>transport_id</strong></dt>
<dd><tt>Optionally bind this account to specific transport. This normally is not a good idea, as account should be able to send requests using any available transports according to the destination. But some application may want to have explicit control over the transport to use, so in that case it can set this field.</tt></dd>
</dl>
<dl><dt><strong>use_srtp</strong></dt>
<dd><tt>Specify SRTP usage.</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2e340><dd><tt>T.<a href="#Acc_Config-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Acc_Info">class <strong>Acc_Info</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Acc Info objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>acc_uri</strong></dt>
<dd><tt>Account URI</tt></dd>
</dl>
<dl><dt><strong>expires</strong></dt>
<dd><tt>An up to date expiration interval for account registration session.</tt></dd>
</dl>
<dl><dt><strong>has_registration</strong></dt>
<dd><tt>Flag to tell whether this account has registration setting (reg_uri is not empty).</tt></dd>
</dl>
<dl><dt><strong>id</strong></dt>
<dd><tt>The account ID.</tt></dd>
</dl>
<dl><dt><strong>is_default</strong></dt>
<dd><tt>Flag to indicate whether this is the default account.</tt></dd>
</dl>
<dl><dt><strong>online_status</strong></dt>
<dd><tt>Presence online status for this account.</tt></dd>
</dl>
<dl><dt><strong>online_status_text</strong></dt>
<dd><tt>Presence online status text.</tt></dd>
</dl>
<dl><dt><strong>status</strong></dt>
<dd><tt>Last registration status code. If status code is zero, the account is currently not registered. Any other value indicates the SIP status code of the registration.</tt></dd>
</dl>
<dl><dt><strong>status_text</strong></dt>
<dd><tt>String describing the registration status.</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2e400><dd><tt>T.<a href="#Acc_Info-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Buddy_Config">class <strong>Buddy_Config</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Buddy <a href="#Config">Config</a> objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>subscribe</strong></dt>
<dd><tt>Specify whether presence subscription should start immediately.</tt></dd>
</dl>
<dl><dt><strong>uri</strong></dt>
<dd><tt>TBuddy URL or name address.</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2e4c0><dd><tt>T.<a href="#Buddy_Config-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Buddy_Info">class <strong>Buddy_Info</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Buddy Info objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>activity</strong></dt>
<dd><tt>Activity type.</tt></dd>
</dl>
<dl><dt><strong>contact</strong></dt>
<dd><tt>Buddy's Contact, only available when presence subscription has been established to the buddy.</tt></dd>
</dl>
<dl><dt><strong>id</strong></dt>
<dd><tt>The buddy ID.</tt></dd>
</dl>
<dl><dt><strong>monitor_pres</strong></dt>
<dd><tt>Flag to indicate that we should monitor the presence information for this buddy (normally yes, unless explicitly disabled).</tt></dd>
</dl>
<dl><dt><strong>status</strong></dt>
<dd><tt>Buddy's online status.</tt></dd>
</dl>
<dl><dt><strong>status_text</strong></dt>
<dd><tt>Text to describe buddy's online status.</tt></dd>
</dl>
<dl><dt><strong>uri</strong></dt>
<dd><tt>The full URI of the buddy, as specified in the configuration.</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2e580><dd><tt>T.<a href="#Buddy_Info-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Call_Info">class <strong>Call_Info</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Call Info objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>acc_id</strong></dt>
<dd><tt>The account ID where this call belongs.</tt></dd>
</dl>
<dl><dt><strong>call_id</strong></dt>
<dd><tt>Dialog Call-ID string</tt></dd>
</dl>
<dl><dt><strong>conf_slot</strong></dt>
<dd><tt>The conference port number for the call</tt></dd>
</dl>
<dl><dt><strong>connect_duration</strong></dt>
<dd><tt>Up-to-date call connected duration(zero when call is not established)</tt></dd>
</dl>
<dl><dt><strong>id</strong></dt>
<dd><tt>Call identification</tt></dd>
</dl>
<dl><dt><strong>last_status</strong></dt>
<dd><tt>Last status code heard, which can be used as cause code</tt></dd>
</dl>
<dl><dt><strong>last_status_text</strong></dt>
<dd><tt>The reason phrase describing the status.</tt></dd>
</dl>
<dl><dt><strong>local_contact</strong></dt>
<dd><tt>Local Contact</tt></dd>
</dl>
<dl><dt><strong>local_info</strong></dt>
<dd><tt>Local URI</tt></dd>
</dl>
<dl><dt><strong>media_dir</strong></dt>
<dd><tt>Media direction</tt></dd>
</dl>
<dl><dt><strong>media_status</strong></dt>
<dd><tt>Call media status.</tt></dd>
</dl>
<dl><dt><strong>remote_contact</strong></dt>
<dd><tt>Remote Contact</tt></dd>
</dl>
<dl><dt><strong>remote_info</strong></dt>
<dd><tt>Remote URI</tt></dd>
</dl>
<dl><dt><strong>role</strong></dt>
<dd><tt>Initial call role (UAC == caller)</tt></dd>
</dl>
<dl><dt><strong>state</strong></dt>
<dd><tt>Call state</tt></dd>
</dl>
<dl><dt><strong>state_text</strong></dt>
<dd><tt>Text describing the state</tt></dd>
</dl>
<dl><dt><strong>total_duration</strong></dt>
<dd><tt>Total call duration, including set-up time</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2ec40><dd><tt>T.<a href="#Call_Info-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Callback">class <strong>Callback</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>This structure describes application callback to receive various event notifications from PJSUA-API<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>on_buddy_state</strong></dt>
<dd><tt>Notify application when the buddy state has changed. Application may then query the buddy into to get the details.</tt></dd>
</dl>
<dl><dt><strong>on_call_media_state</strong></dt>
<dd><tt>Notify application when media state in the call has changed. Normal application would need to implement this callback, e.g. to connect the call's media to sound device.</tt></dd>
</dl>
<dl><dt><strong>on_call_replace_request</strong></dt>
<dd><tt>Notify application about incoming INVITE with Replaces header. Application may reject the request by setting non-2xx code.</tt></dd>
</dl>
<dl><dt><strong>on_call_replaced</strong></dt>
<dd><tt>Notify application that an existing call has been replaced with a new call. This happens when PJSUA-API receives incoming INVITE request with Replaces header. After this callback is called, normally PJSUA-API will disconnect old_call_id and establish new_call_id.</tt></dd>
</dl>
<dl><dt><strong>on_call_state</strong></dt>
<dd><tt>Notify application when invite state has changed. Application may then query the call info to get the detail call states.</tt></dd>
</dl>
<dl><dt><strong>on_call_transfer_request</strong></dt>
<dd><tt>Notify application on call being transfered. Application can decide to accept/reject transfer request by setting the code (default is 200). When this callback is not defined, the default behavior is to accept the transfer.</tt></dd>
</dl>
<dl><dt><strong>on_call_transfer_status</strong></dt>
<dd><tt>Notify application of the status of previously sent call transfer request. Application can monitor the status of the call transfer request, for example to decide whether to terminate existing call.</tt></dd>
</dl>
<dl><dt><strong>on_dtmf_digit</strong></dt>
<dd><tt>Notify application upon receiving incoming DTMF digit.</tt></dd>
</dl>
<dl><dt><strong>on_incoming_call</strong></dt>
<dd><tt>Notify application on incoming call.</tt></dd>
</dl>
<dl><dt><strong>on_pager</strong></dt>
<dd><tt>Notify application on incoming pager (i.e. MESSAGE request). Argument call_id will be -1 if MESSAGE request is not related to an existing call.</tt></dd>
</dl>
<dl><dt><strong>on_pager_status</strong></dt>
<dd><tt>Notify application about the delivery status of outgoing pager request.</tt></dd>
</dl>
<dl><dt><strong>on_reg_state</strong></dt>
<dd><tt>Notify application when registration status has changed. Application may then query the account info to get the registration details.</tt></dd>
</dl>
<dl><dt><strong>on_typing</strong></dt>
<dd><tt>Notify application about typing indication.</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2d8c0><dd><tt>T.<a href="#Callback-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Codec_Info">class <strong>Codec_Info</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Codec Info objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>codec_id</strong></dt>
<dd><tt>Codec unique identification.</tt></dd>
</dl>
<dl><dt><strong>priority</strong></dt>
<dd><tt>Codec priority (integer 0-255).</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2e640><dd><tt>T.<a href="#Codec_Info-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Conf_Port_Info">class <strong>Conf_Port_Info</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Conf Port Info objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>bits_per_sample</strong></dt>
<dd><tt>Bits per sample</tt></dd>
</dl>
<dl><dt><strong>channel_count</strong></dt>
<dd><tt>Number of channels.</tt></dd>
</dl>
<dl><dt><strong>clock_rate</strong></dt>
<dd><tt>Clock rate</tt></dd>
</dl>
<dl><dt><strong>listeners</strong></dt>
<dd><tt>Array of listeners (in other words, ports where this port is transmitting to</tt></dd>
</dl>
<dl><dt><strong>name</strong></dt>
<dd><tt>Port name</tt></dd>
</dl>
<dl><dt><strong>samples_per_frame</strong></dt>
<dd><tt>Samples per frame</tt></dd>
</dl>
<dl><dt><strong>slot_id</strong></dt>
<dd><tt>Conference port number.</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2e700><dd><tt>T.<a href="#Conf_Port_Info-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Config">class <strong>Config</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt><a href="#Config">Config</a> <a href="__builtin__.html#object">object</a><br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>cb</strong></dt>
<dd><tt>Application callback.</tt></dd>
</dl>
<dl><dt><strong>max_calls</strong></dt>
<dd><tt>Maximum calls to support (default: 4)</tt></dd>
</dl>
<dl><dt><strong>nameserver</strong></dt>
<dd><tt>IP address of the nameserver.</tt></dd>
</dl>
<dl><dt><strong>outbound_proxy</strong></dt>
<dd><tt>SIP URL of the outbound proxy (optional)</tt></dd>
</dl>
<dl><dt><strong>stun_domain</strong></dt>
<dd><tt>Domain of the STUN server (optional). STUN server will be resolved using DNS SRV resolution only when nameserver is configured. Alternatively, if DNS SRV resolution for STUN is not desired, application can specify the STUN server hostname or IP address in stun_host attribute.</tt></dd>
</dl>
<dl><dt><strong>stun_host</strong></dt>
<dd><tt>Hostname or IP address of the STUN server (optional).</tt></dd>
</dl>
<dl><dt><strong>thread_cnt</strong></dt>
<dd><tt>Number of worker threads. Normally application will want to have at least one worker thread, unless when it wants to poll the library periodically, which in this case the worker thread can be set to zero.</tt></dd>
</dl>
<dl><dt><strong>user_agent</strong></dt>
<dd><tt>User agent string (default empty)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2d980><dd><tt>T.<a href="#Config-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Logging_Config">class <strong>Logging_Config</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Logging <a href="#Config">Config</a> objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>cb</strong></dt>
<dd><tt>Optional callback function to be called to write log to application specific device. This function will be called forlog messages on input verbosity level.</tt></dd>
</dl>
<dl><dt><strong>console_level</strong></dt>
<dd><tt>Verbosity level for console. Value 4 is reasonable.</tt></dd>
</dl>
<dl><dt><strong>decor</strong></dt>
<dd><tt>Log decoration</tt></dd>
</dl>
<dl><dt><strong>level</strong></dt>
<dd><tt>Input verbosity level. Value 5 is reasonable.</tt></dd>
</dl>
<dl><dt><strong>log_filename</strong></dt>
<dd><tt>Optional log filename</tt></dd>
</dl>
<dl><dt><strong>msg_logging</strong></dt>
<dd><tt>Log incoming and outgoing SIP message? Yes!</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2da40><dd><tt>T.<a href="#Logging_Config-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Media_Config">class <strong>Media_Config</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Media <a href="#Config">Config</a> objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>audio_frame_ptime</strong></dt>
<dd><tt>Audio frame length in milliseconds.</tt></dd>
</dl>
<dl><dt><strong>channel_count</strong></dt>
<dd><tt>Specify channel count (default 1).</tt></dd>
</dl>
<dl><dt><strong>clock_rate</strong></dt>
<dd><tt>Clock rate to be applied to the conference bridge. If value is zero, default clock rate will be used (16KHz).</tt></dd>
</dl>
<dl><dt><strong>ec_options</strong></dt>
<dd><tt>Echo canceller options (see pjmedia_echo_create())</tt></dd>
</dl>
<dl><dt><strong>ec_tail_len</strong></dt>
<dd><tt>Echo canceller tail length, in miliseconds.</tt></dd>
</dl>
<dl><dt><strong>enable_ice</strong></dt>
<dd><tt>Enable ICE.</tt></dd>
</dl>
<dl><dt><strong>enable_turn</strong></dt>
<dd><tt>Enable TURN.</tt></dd>
</dl>
<dl><dt><strong>has_ioqueue</strong></dt>
<dd><tt>Specify whether the media manager should manage its own ioqueue for the RTP/RTCP sockets. If yes, ioqueue will be created and at least one worker thread will be created too. If no, the RTP/RTCP sockets will share the same ioqueue as SIP sockets, and no worker thread is needed.</tt></dd>
</dl>
<dl><dt><strong>ilbc_mode</strong></dt>
<dd><tt>iLBC mode (20 or 30).</tt></dd>
</dl>
<dl><dt><strong>jb_max</strong></dt>
<dd><tt>Jitter buffer maximum size in milliseconds.</tt></dd>
</dl>
<dl><dt><strong>jb_min</strong></dt>
<dd><tt>Jitter buffer minimum size in milliseconds.</tt></dd>
</dl>
<dl><dt><strong>max_media_ports</strong></dt>
<dd><tt>Specify maximum number of media ports to be created in the conference bridge. Since all media terminate in the bridge (calls, file player, file recorder, etc), the value must be large enough to support all of them. However, the larger the value, the more computations are performed.</tt></dd>
</dl>
<dl><dt><strong>no_vad</strong></dt>
<dd><tt>Disable VAD?</tt></dd>
</dl>
<dl><dt><strong>ptime</strong></dt>
<dd><tt>Specify default ptime.</tt></dd>
</dl>
<dl><dt><strong>quality</strong></dt>
<dd><tt>The media quality also sets speex codec quality/complexity to the number.</tt></dd>
</dl>
<dl><dt><strong>rx_drop_pct</strong></dt>
<dd><tt>Percentage of RTP packet to drop in RX direction (to simulate packet lost).</tt></dd>
</dl>
<dl><dt><strong>snd_auto_close_time</strong></dt>
<dd><tt>Sound idle time before it's closed.</tt></dd>
</dl>
<dl><dt><strong>snd_clock_rate</strong></dt>
<dd><tt>Specify different clock rate of sound device, otherwise 0.</tt></dd>
</dl>
<dl><dt><strong>thread_cnt</strong></dt>
<dd><tt>Specify the number of worker threads to handle incoming RTP packets. A value of one is recommended for most applications.</tt></dd>
</dl>
<dl><dt><strong>turn_conn_type</strong></dt>
<dd><tt>Specify TURN connection type.</tt></dd>
</dl>
<dl><dt><strong>turn_passw</strong></dt>
<dd><tt>Specify the TURN password.</tt></dd>
</dl>
<dl><dt><strong>turn_passwd_type</strong></dt>
<dd><tt>Specify TURN password type.</tt></dd>
</dl>
<dl><dt><strong>turn_realm</strong></dt>
<dd><tt>Specify the TURN realm.</tt></dd>
</dl>
<dl><dt><strong>turn_server</strong></dt>
<dd><tt>Specify the TURN server.</tt></dd>
</dl>
<dl><dt><strong>turn_username</strong></dt>
<dd><tt>Specify the TURN username.</tt></dd>
</dl>
<dl><dt><strong>tx_drop_pct</strong></dt>
<dd><tt>Percentage of RTP packet to drop in TX direction (to simulate packet lost).</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2dbc0><dd><tt>T.<a href="#Media_Config-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Msg_Data">class <strong>Msg_Data</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>msg_data objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>content_type</strong></dt>
<dd><tt>MIME type of optional message body.</tt></dd>
</dl>
<dl><dt><strong>hdr_list</strong></dt>
<dd><tt>Additional message headers as linked list of strings.</tt></dd>
</dl>
<dl><dt><strong>msg_body</strong></dt>
<dd><tt>Optional message body.</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2db00><dd><tt>T.<a href="#Msg_Data-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="PJMedia_Codec_Param">class <strong>PJMedia_Codec_Param</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>PJMedia Codec Param objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>info</strong></dt>
<dd><tt>The 'info' part of codec param describes the capability of the codec, and the value should NOT be changed by application.</tt></dd>
</dl>
<dl><dt><strong>setting</strong></dt>
<dd><tt>The 'setting' part of codec param describes various settings to be applied to the codec. When the codec param is retrieved from the codec or codec factory, the values of these will be filled by the capability of the codec. Any features that are supported by the codec (e.g. vad or plc) will be turned on, so that application can query which capabilities are supported by the codec. Application may change the settings here before instantiating the codec/stream.</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2eac0><dd><tt>T.<a href="#PJMedia_Codec_Param-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="PJMedia_Codec_Param_Info">class <strong>PJMedia_Codec_Param_Info</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>PJMedia Codec Param Info objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>avg_bps</strong></dt>
<dd><tt>Average bandwidth in bits/sec</tt></dd>
</dl>
<dl><dt><strong>channel_cnt</strong></dt>
<dd><tt>Channel count</tt></dd>
</dl>
<dl><dt><strong>clock_rate</strong></dt>
<dd><tt>Sampling rate in Hz</tt></dd>
</dl>
<dl><dt><strong>frm_ptime</strong></dt>
<dd><tt>Base frame ptime in msec.</tt></dd>
</dl>
<dl><dt><strong>pcm_bits_per_sample</strong></dt>
<dd><tt>Bits/sample in the PCM side</tt></dd>
</dl>
<dl><dt><strong>pt</strong></dt>
<dd><tt>Payload type</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2e940><dd><tt>T.<a href="#PJMedia_Codec_Param_Info-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="PJMedia_Codec_Param_Setting">class <strong>PJMedia_Codec_Param_Setting</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>PJMedia Codec Param Setting objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>cng</strong></dt>
<dd><tt>Comfort Noise Generator</tt></dd>
</dl>
<dl><dt><strong>dec_fmtp_mode</strong></dt>
<dd><tt>Mode param in fmtp (def:0)</tt></dd>
</dl>
<dl><dt><strong>enc_fmtp_mode</strong></dt>
<dd><tt>Mode param in fmtp (def:0)</tt></dd>
</dl>
<dl><dt><strong>frm_per_pkt</strong></dt>
<dd><tt>Number of frames per packet</tt></dd>
</dl>
<dl><dt><strong>penh</strong></dt>
<dd><tt>Perceptual Enhancement</tt></dd>
</dl>
<dl><dt><strong>plc</strong></dt>
<dd><tt>Packet loss concealment</tt></dd>
</dl>
<dl><dt><strong>reserved</strong></dt>
<dd><tt>Reserved, must be zero</tt></dd>
</dl>
<dl><dt><strong>vad</strong></dt>
<dd><tt>Voice Activity Detector</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2ea00><dd><tt>T.<a href="#PJMedia_Codec_Param_Setting-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="PJMedia_Port">class <strong>PJMedia_Port</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>pjmedia_port objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2e7c0><dd><tt>T.<a href="#PJMedia_Port-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="PJMedia_Snd_Dev_Info">class <strong>PJMedia_Snd_Dev_Info</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>PJMedia Snd Dev Info objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>default_samples_per_sec</strong></dt>
<dd><tt>Default sampling rate.</tt></dd>
</dl>
<dl><dt><strong>input_count</strong></dt>
<dd><tt>Max number of input channels</tt></dd>
</dl>
<dl><dt><strong>name</strong></dt>
<dd><tt>Device name</tt></dd>
</dl>
<dl><dt><strong>output_count</strong></dt>
<dd><tt>Max number of output channels</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2e880><dd><tt>T.<a href="#PJMedia_Snd_Dev_Info-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="PJ_Time_Val">class <strong>PJ_Time_Val</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>PJ Time Val objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>msec</strong></dt>
<dd><tt>The milliseconds fraction of the time</tt></dd>
</dl>
<dl><dt><strong>sec</strong></dt>
<dd><tt>The seconds part of the time</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2eb80><dd><tt>T.<a href="#PJ_Time_Val-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Pj_Pool">class <strong>Pj_Pool</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>pj_pool_t objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2de00><dd><tt>T.<a href="#Pj_Pool-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Pj_Pool_Factory">class <strong>Pj_Pool_Factory</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>pj_pool_factory objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2e040><dd><tt>T.<a href="#Pj_Pool_Factory-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Pjmedia_Endpt">class <strong>Pjmedia_Endpt</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>pjmedia_endpt objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2df80><dd><tt>T.<a href="#Pjmedia_Endpt-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Pjsip_Cred_Info">class <strong>Pjsip_Cred_Info</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>PJSIP credential information<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>data</strong></dt>
<dd><tt>The data, which can be a plaintext password or a hashed digest, depending on the value of data_type</tt></dd>
</dl>
<dl><dt><strong>data_type</strong></dt>
<dd><tt>Type of data</tt></dd>
</dl>
<dl><dt><strong>realm</strong></dt>
<dd><tt>Realm</tt></dd>
</dl>
<dl><dt><strong>scheme</strong></dt>
<dd><tt>Scheme</tt></dd>
</dl>
<dl><dt><strong>username</strong></dt>
<dd><tt>User name</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2e100><dd><tt>T.<a href="#Pjsip_Cred_Info-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Pjsip_Endpoint">class <strong>Pjsip_Endpoint</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>pjsip_endpoint objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2dec0><dd><tt>T.<a href="#Pjsip_Endpoint-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Pjsip_Event">class <strong>Pjsip_Event</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>pjsip_event <a href="__builtin__.html#object">object</a><br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2dc80><dd><tt>T.<a href="#Pjsip_Event-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Pjsip_Rx_Data">class <strong>Pjsip_Rx_Data</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>pjsip_rx_data <a href="__builtin__.html#object">object</a><br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2dd40><dd><tt>T.<a href="#Pjsip_Rx_Data-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Transport_Config">class <strong>Transport_Config</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Transport setting<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>bound_addr</strong></dt>
<dd><tt>Optional address where the socket should be bound to. This option SHOULD only be used to selectively bind the socket to particular interface (instead of 0.0.0.0), and SHOULD NOT be used to set the published address of a transport (the public_addr field should be used for that purpose).</tt></dd>
</dl>
<dl><dt><strong>port</strong></dt>
<dd><tt>UDP port number to bind locally. This setting MUST be specified even when default port is desired. If the value is zero, the transport will be bound to any available port, and application can query the port by querying the transport info.</tt></dd>
</dl>
<dl><dt><strong>public_addr</strong></dt>
<dd><tt>Optional address to advertise as the address of this transport. Application can specify any address or hostname for this field, for example it can point to one of the interface address in the system, or it can point to the public address of a NAT router where port mappings have been configured for the application.</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2e1c0><dd><tt>T.<a href="#Transport_Config-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</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> <br>
<font color="#000000" face="helvetica, arial"><a name="Transport_Info">class <strong>Transport_Info</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Transport Info objects<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>addr</strong></dt>
<dd><tt>Published address (or transport address name).</tt></dd>
</dl>
<dl><dt><strong>flag</strong></dt>
<dd><tt>Transport flag (see ##pjsip_transport_flags_e).</tt></dd>
</dl>
<dl><dt><strong>id</strong></dt>
<dd><tt>PJSUA transport identification.</tt></dd>
</dl>
<dl><dt><strong>info</strong></dt>
<dd><tt>Transport string info/description.</tt></dd>
</dl>
<dl><dt><strong>port</strong></dt>
<dd><tt>Published port number.</tt></dd>
</dl>
<dl><dt><strong>type</strong></dt>
<dd><tt>Transport type.</tt></dd>
</dl>
<dl><dt><strong>type_name</strong></dt>
<dd><tt>Transport type name.</tt></dd>
</dl>
<dl><dt><strong>usage_count</strong></dt>
<dd><tt>Current number of objects currently referencing this transport.</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0xb7c2e280><dd><tt>T.<a href="#Transport_Info-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-acc_add"><strong>acc_add</strong></a>(...)</dt><dd><tt>int, int _pjsua.acc_add (_pjsua.<a href="#Acc_Config">Acc_Config</a> cfg, int is_default) Add a new account to pjsua. PJSUA must have been initialized (with pjsua_init()) before calling this function.</tt></dd></dl>
<dl><dt><a name="-acc_add_local"><strong>acc_add_local</strong></a>(...)</dt><dd><tt>int,int _pjsua.acc_add_local (int tid, int is_default) Add a local account. A local account is used to identify local endpoint instead of a specific user, and for this reason, a transport ID is needed to obtain the local address information.</tt></dd></dl>
<dl><dt><a name="-acc_config_default"><strong>acc_config_default</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Acc_Config">Acc_Config</a> _pjsua.acc_config_default () Call this function to initialize account config with default values.</tt></dd></dl>
<dl><dt><a name="-acc_create_uac_contact"><strong>acc_create_uac_contact</strong></a>(...)</dt><dd><tt>string _pjsua.acc_create_uac_contact (PyObj_pj_pool pool, int acc_id, string uri) Create a suitable URI to be put as Contact based on the specified target URI for the specified account.</tt></dd></dl>
<dl><dt><a name="-acc_create_uas_contact"><strong>acc_create_uas_contact</strong></a>(...)</dt><dd><tt>string _pjsua.acc_create_uas_contact (PyObj_pj_pool pool, int acc_id, PyObj_pjsip_rx_data rdata) Create a suitable URI to be put as Contact based on the information in the incoming request.</tt></dd></dl>
<dl><dt><a name="-acc_del"><strong>acc_del</strong></a>(...)</dt><dd><tt>int _pjsua.acc_del (int acc_id) Delete account.</tt></dd></dl>
<dl><dt><a name="-acc_enum_info"><strong>acc_enum_info</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Acc_Info">Acc_Info</a>[] _pjsua.acc_enum_info () Enum accounts info.</tt></dd></dl>
<dl><dt><a name="-acc_find_for_incoming"><strong>acc_find_for_incoming</strong></a>(...)</dt><dd><tt>int _pjsua.acc_find_for_incoming (PyObj_pjsip_rx_data rdata) This is an internal function to find the most appropriate account to be used to handle incoming calls.</tt></dd></dl>
<dl><dt><a name="-acc_find_for_outgoing"><strong>acc_find_for_outgoing</strong></a>(...)</dt><dd><tt>int _pjsua.acc_find_for_outgoing (string url) This is an internal function to find the most appropriate account to used to reach to the specified URL.</tt></dd></dl>
<dl><dt><a name="-acc_get_count"><strong>acc_get_count</strong></a>(...)</dt><dd><tt>int _pjsua.acc_get_count () Get number of current accounts.</tt></dd></dl>
<dl><dt><a name="-acc_get_default"><strong>acc_get_default</strong></a>(...)</dt><dd><tt>int _pjsua.acc_get_default () Get default account.</tt></dd></dl>
<dl><dt><a name="-acc_get_info"><strong>acc_get_info</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Acc_Info">Acc_Info</a> _pjsua.acc_get_info (int acc_id) Get account information.</tt></dd></dl>
<dl><dt><a name="-acc_is_valid"><strong>acc_is_valid</strong></a>(...)</dt><dd><tt>int _pjsua.acc_is_valid (int acc_id) Check if the specified account ID is valid.</tt></dd></dl>
<dl><dt><a name="-acc_modify"><strong>acc_modify</strong></a>(...)</dt><dd><tt>int _pjsua.acc_modify (int acc_id, _pjsua.<a href="#Acc_Config">Acc_Config</a> cfg) Modify account information.</tt></dd></dl>
<dl><dt><a name="-acc_set_default"><strong>acc_set_default</strong></a>(...)</dt><dd><tt>int _pjsua.acc_set_default (int acc_id) Set default account to be used when incoming and outgoing requests doesn't match any accounts.</tt></dd></dl>
<dl><dt><a name="-acc_set_online_status"><strong>acc_set_online_status</strong></a>(...)</dt><dd><tt>int _pjsua.<a href="#-acc_set_online_status2">acc_set_online_status2</a>(int acc_id, int is_online) Modify account's presence status to be advertised to remote/presence subscribers.</tt></dd></dl>
<dl><dt><a name="-acc_set_online_status2"><strong>acc_set_online_status2</strong></a>(...)</dt><dd><tt>int _pjsua.acc_set_online_status (int acc_id, int is_online, int activity_id, string activity_text) Modify account's presence status to be advertised to remote/presence subscribers.</tt></dd></dl>
<dl><dt><a name="-acc_set_registration"><strong>acc_set_registration</strong></a>(...)</dt><dd><tt>int _pjsua.acc_set_registration (int acc_id, int renew) Update registration or perform unregistration.</tt></dd></dl>
<dl><dt><a name="-acc_set_transport"><strong>acc_set_transport</strong></a>(...)</dt><dd><tt>Lock transport to use the specified transport</tt></dd></dl>
<dl><dt><a name="-buddy_add"><strong>buddy_add</strong></a>(...)</dt><dd><tt>int,int _pjsua.buddy_add (_pjsua.<a href="#Buddy_Config">Buddy_Config</a> cfg) Add new buddy.</tt></dd></dl>
<dl><dt><a name="-buddy_config_default"><strong>buddy_config_default</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Buddy_Config">Buddy_Config</a> _pjsua.buddy_config_default () Set default values to the buddy config.</tt></dd></dl>
<dl><dt><a name="-buddy_del"><strong>buddy_del</strong></a>(...)</dt><dd><tt>int _pjsua.buddy_del (int buddy_id) Delete buddy.</tt></dd></dl>
<dl><dt><a name="-buddy_get_info"><strong>buddy_get_info</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Buddy_Info">Buddy_Info</a> _pjsua.buddy_get_info (int buddy_id) Get detailed buddy info.</tt></dd></dl>
<dl><dt><a name="-buddy_is_valid"><strong>buddy_is_valid</strong></a>(...)</dt><dd><tt>int _pjsua.buddy_is_valid (int buddy_id) Check if buddy ID is valid.</tt></dd></dl>
<dl><dt><a name="-buddy_subscribe_pres"><strong>buddy_subscribe_pres</strong></a>(...)</dt><dd><tt>int _pjsua.buddy_subscribe_pres (int buddy_id, int subscribe) Enable/disable buddy's presence monitoring.</tt></dd></dl>
<dl><dt><a name="-call_answer"><strong>call_answer</strong></a>(...)</dt><dd><tt>int _pjsua.call_answer (int call_id, int code, string reason, _pjsua.<a href="#Msg_Data">Msg_Data</a> msg_data) Send response to incoming INVITE request.</tt></dd></dl>
<dl><dt><a name="-call_dial_dtmf"><strong>call_dial_dtmf</strong></a>(...)</dt><dd><tt>int _pjsua.call_dial_dtmf (int call_id, string digits) Send DTMF digits to remote using <a href="http://www.rfc-editor.org/rfc/rfc2833.txt">RFC 2833</a> payload formats.</tt></dd></dl>
<dl><dt><a name="-call_dump"><strong>call_dump</strong></a>(...)</dt><dd><tt>int _pjsua.call_dump (int call_id, int with_media, int maxlen, string indent) Dump call and media statistics to string.</tt></dd></dl>
<dl><dt><a name="-call_get_conf_port"><strong>call_get_conf_port</strong></a>(...)</dt><dd><tt>int _pjsua.call_get_conf_port (int call_id) Get the conference port identification associated with the call.</tt></dd></dl>
<dl><dt><a name="-call_get_count"><strong>call_get_count</strong></a>(...)</dt><dd><tt>int _pjsua.call_get_count () Get number of currently active calls.</tt></dd></dl>
<dl><dt><a name="-call_get_info"><strong>call_get_info</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Call_Info">Call_Info</a> _pjsua.call_get_info (int call_id) Obtain detail information about the specified call.</tt></dd></dl>
<dl><dt><a name="-call_get_max_count"><strong>call_get_max_count</strong></a>(...)</dt><dd><tt>int _pjsua.call_get_max_count () Get maximum number of calls configured in pjsua.</tt></dd></dl>
<dl><dt><a name="-call_get_user_data"><strong>call_get_user_data</strong></a>(...)</dt><dd><tt>int _pjsua.call_get_user_data (int call_id) Get user data attached to the call.</tt></dd></dl>
<dl><dt><a name="-call_hangup"><strong>call_hangup</strong></a>(...)</dt><dd><tt>int _pjsua.call_hangup (int call_id, int code, string reason, _pjsua.<a href="#Msg_Data">Msg_Data</a> msg_data) Hangup call by using method that is appropriate according to the call state.</tt></dd></dl>
<dl><dt><a name="-call_hangup_all"><strong>call_hangup_all</strong></a>(...)</dt><dd><tt>void _pjsua.call_hangup_all () Terminate all calls.</tt></dd></dl>
<dl><dt><a name="-call_has_media"><strong>call_has_media</strong></a>(...)</dt><dd><tt>int _pjsua.call_has_media (int call_id) Check if call has an active media session.</tt></dd></dl>
<dl><dt><a name="-call_is_active"><strong>call_is_active</strong></a>(...)</dt><dd><tt>int _pjsua.call_is_active (int call_id) Check if the specified call has active INVITE session and the INVITE session has not been disconnected.</tt></dd></dl>
<dl><dt><a name="-call_make_call"><strong>call_make_call</strong></a>(...)</dt><dd><tt>int,int _pjsua.call_make_call (int acc_id, string dst_uri, int options,int user_data, _pjsua.<a href="#Msg_Data">Msg_Data</a> msg_data) Make outgoing call to the specified URI using the specified account.</tt></dd></dl>
<dl><dt><a name="-call_reinvite"><strong>call_reinvite</strong></a>(...)</dt><dd><tt>int _pjsua.call_reinvite (int call_id, int unhold, _pjsua.<a href="#Msg_Data">Msg_Data</a> msg_data) Send re-INVITE (to release hold).</tt></dd></dl>
<dl><dt><a name="-call_send_im"><strong>call_send_im</strong></a>(...)</dt><dd><tt>int _pjsua.call_send_im (int call_id, string mime_type, string content,_pjsua.<a href="#Msg_Data">Msg_Data</a> msg_data, int user_data) Send instant messaging inside INVITE session.</tt></dd></dl>
<dl><dt><a name="-call_send_request"><strong>call_send_request</strong></a>(...)</dt><dd><tt>Send arbitrary request</tt></dd></dl>
<dl><dt><a name="-call_send_typing_ind"><strong>call_send_typing_ind</strong></a>(...)</dt><dd><tt>int _pjsua.call_send_typing_ind (int call_id, int is_typing, _pjsua.<a href="#Msg_Data">Msg_Data</a> msg_data) Send IM typing indication inside INVITE session.</tt></dd></dl>
<dl><dt><a name="-call_set_hold"><strong>call_set_hold</strong></a>(...)</dt><dd><tt>int _pjsua.call_set_hold (int call_id, _pjsua.<a href="#Msg_Data">Msg_Data</a> msg_data) Put the specified call on hold.</tt></dd></dl>
<dl><dt><a name="-call_set_user_data"><strong>call_set_user_data</strong></a>(...)</dt><dd><tt>int _pjsua.call_set_user_data (int call_id, int user_data) Attach application specific data to the call.</tt></dd></dl>
<dl><dt><a name="-call_update"><strong>call_update</strong></a>(...)</dt><dd><tt>Send UPDATE</tt></dd></dl>
<dl><dt><a name="-call_xfer"><strong>call_xfer</strong></a>(...)</dt><dd><tt>int _pjsua.call_xfer (int call_id, string dest, _pjsua.<a href="#Msg_Data">Msg_Data</a> msg_data) Initiate call transfer to the specified address. This function will send REFER request to instruct remote call party to initiate a new INVITE session to the specified destination/target.</tt></dd></dl>
<dl><dt><a name="-call_xfer_replaces"><strong>call_xfer_replaces</strong></a>(...)</dt><dd><tt>int _pjsua.call_xfer_replaces (int call_id, int dest_call_id, int options, _pjsua.<a href="#Msg_Data">Msg_Data</a> msg_data) Initiate attended call transfer. This function will send REFER request to instruct remote call party to initiate new INVITE session to the URL of dest_call_id. The party at dest_call_id then should 'replace' the callwith us with the new call from the REFER recipient.</tt></dd></dl>
<dl><dt><a name="-codec_get_param"><strong>codec_get_param</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#PJMedia_Codec_Param">PJMedia_Codec_Param</a> _pjsua.codec_get_param (string id) Get codec parameters</tt></dd></dl>
<dl><dt><a name="-codec_set_param"><strong>codec_set_param</strong></a>(...)</dt><dd><tt>int _pjsua.codec_set_param (string id, _pjsua.<a href="#PJMedia_Codec_Param">PJMedia_Codec_Param</a> param) Set codec parameters.</tt></dd></dl>
<dl><dt><a name="-codec_set_priority"><strong>codec_set_priority</strong></a>(...)</dt><dd><tt>int _pjsua.codec_set_priority (string id, int priority) Change codec priority.</tt></dd></dl>
<dl><dt><a name="-conf_add_port"><strong>conf_add_port</strong></a>(...)</dt><dd><tt>int, int _pjsua.conf_add_port (_pjsua.<a href="#Pj_Pool">Pj_Pool</a> pool, _pjsua.<a href="#PJMedia_Port">PJMedia_Port</a> port) Add arbitrary media port to PJSUA's conference bridge. Application can use this function to add the media port that it creates. For media ports that are created by PJSUA-LIB (such as calls, file player, or file recorder), PJSUA-LIB will automatically add the port to the bridge.</tt></dd></dl>
<dl><dt><a name="-conf_connect"><strong>conf_connect</strong></a>(...)</dt><dd><tt>int _pjsua.conf_connect (int source, int sink) Establish unidirectional media flow from souce to sink. One source may transmit to multiple destinations/sink. And if multiple sources are transmitting to the same sink, the media will be mixed together. Source and sink may refer to the same ID, effectively looping the media. If bidirectional media flow is desired, application needs to call this function twice, with the second one having the arguments reversed.</tt></dd></dl>
<dl><dt><a name="-conf_disconnect"><strong>conf_disconnect</strong></a>(...)</dt><dd><tt>int _pjsua.conf_disconnect (int source, int sink) Disconnect media flow from the source to destination port.</tt></dd></dl>
<dl><dt><a name="-conf_get_active_ports"><strong>conf_get_active_ports</strong></a>(...)</dt><dd><tt>int _pjsua.conf_get_active_ports () Get current number of active ports in the bridge.</tt></dd></dl>
<dl><dt><a name="-conf_get_max_ports"><strong>conf_get_max_ports</strong></a>(...)</dt><dd><tt>int _pjsua.conf_get_max_ports () Get maxinum number of conference ports.</tt></dd></dl>
<dl><dt><a name="-conf_get_port_info"><strong>conf_get_port_info</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Conf_Port_Info">Conf_Port_Info</a> _pjsua.conf_get_port_info (int id) Get information about the specified conference port</tt></dd></dl>
<dl><dt><a name="-conf_remove_port"><strong>conf_remove_port</strong></a>(...)</dt><dd><tt>int _pjsua.conf_remove_port (int id) Remove arbitrary slot from the conference bridge. Application should only call this function if it registered the port manually.</tt></dd></dl>
<dl><dt><a name="-config_default"><strong>config_default</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Config">Config</a> _pjsua.config_default (). Use this function to initialize pjsua config.</tt></dd></dl>
<dl><dt><a name="-create"><strong>create</strong></a>(...)</dt><dd><tt>int _pjsua.create (void) Instantiate pjsua application. Application must call this function before calling any other functions, to make sure that the underlying libraries are properly initialized. Once this function has returned success, application must call pjsua_destroy() before quitting.</tt></dd></dl>
<dl><dt><a name="-destroy"><strong>destroy</strong></a>(...)</dt><dd><tt>int _pjsua.destroy (void) Destroy pjsua This function must be called once PJSUA is created. To make it easier for application, application may call this function several times with no danger.</tt></dd></dl>
<dl><dt><a name="-dump"><strong>dump</strong></a>(...)</dt><dd><tt>Dump application state</tt></dd></dl>
<dl><dt><a name="-enum_accs"><strong>enum_accs</strong></a>(...)</dt><dd><tt>int[] _pjsua.enum_accs () Enum accounts all account ids.</tt></dd></dl>
<dl><dt><a name="-enum_buddies"><strong>enum_buddies</strong></a>(...)</dt><dd><tt>int[] _pjsua.enum_buddies () Enum buddy IDs.</tt></dd></dl>
<dl><dt><a name="-enum_calls"><strong>enum_calls</strong></a>(...)</dt><dd><tt>int[] _pjsua.enum_calls () Get maximum number of calls configured in pjsua.</tt></dd></dl>
<dl><dt><a name="-enum_codecs"><strong>enum_codecs</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Codec_Info">Codec_Info</a>[] _pjsua.enum_codecs () Enum all supported codecs in the system.</tt></dd></dl>
<dl><dt><a name="-enum_conf_ports"><strong>enum_conf_ports</strong></a>(...)</dt><dd><tt>int[] _pjsua.enum_conf_ports () Enumerate all conference ports.</tt></dd></dl>
<dl><dt><a name="-enum_snd_devs"><strong>enum_snd_devs</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#PJMedia_Snd_Dev_Info">PJMedia_Snd_Dev_Info</a>[] _pjsua.enum_snd_devs (int count) Enum sound devices.</tt></dd></dl>
<dl><dt><a name="-get_buddy_count"><strong>get_buddy_count</strong></a>(...)</dt><dd><tt>int _pjsua.get_buddy_count () Get total number of buddies.</tt></dd></dl>
<dl><dt><a name="-get_ec_tail"><strong>get_ec_tail</strong></a>(...)</dt><dd><tt>int _pjsua.get_ec_tail () Get current echo canceller tail length.</tt></dd></dl>
<dl><dt><a name="-get_pjmedia_endpt"><strong>get_pjmedia_endpt</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Pjmedia_Endpt">Pjmedia_Endpt</a> _pjsua.get_pjmedia_endpt (void) Internal function to get media endpoint instance. Only valid after pjsua_init() is called.</tt></dd></dl>
<dl><dt><a name="-get_pjsip_endpt"><strong>get_pjsip_endpt</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Pjsip_Endpoint">Pjsip_Endpoint</a> _pjsua.get_pjsip_endpt (void) Internal function to get SIP endpoint instance of pjsua, which is needed for example to register module, create transports, etc. Probably is only valid after pjsua_init() is called.</tt></dd></dl>
<dl><dt><a name="-get_pool_factory"><strong>get_pool_factory</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Pj_Pool_Factory">Pj_Pool_Factory</a> _pjsua.get_pool_factory (void) Internal function to get PJSUA pool factory. Only valid after pjsua_init() is called.</tt></dd></dl>
<dl><dt><a name="-get_snd_dev"><strong>get_snd_dev</strong></a>(...)</dt><dd><tt>int, int _pjsua.get_snd_dev () Get currently active sound devices. If sound devices has not been created (for example when pjsua_start() is not called), it is possible that the function returns PJ_SUCCESS with -1 as device IDs.</tt></dd></dl>
<dl><dt><a name="-handle_events"><strong>handle_events</strong></a>(...)</dt><dd><tt>int _pjsua.handle_events (int msec_timeout) Poll pjsua for events, and if necessary block the caller thread for the specified maximum interval (in miliseconds) Parameters: msec_timeout: Maximum time to wait, in miliseconds. Returns: The number of events that have been handled during the poll. Negative value indicates error, and application can retrieve the error as (err = -return_value).</tt></dd></dl>
<dl><dt><a name="-im_send"><strong>im_send</strong></a>(...)</dt><dd><tt>int _pjsua.im_send (int acc_id, string to, string mime_type, string content, _pjsua.<a href="#Msg_Data">Msg_Data</a> msg_data, int user_data) Send instant messaging outside dialog, using the specified account for route set and authentication.</tt></dd></dl>
<dl><dt><a name="-im_typing"><strong>im_typing</strong></a>(...)</dt><dd><tt>int _pjsua.im_typing (int acc_id, string to, int is_typing, _pjsua.<a href="#Msg_Data">Msg_Data</a> msg_data) Send typing indication outside dialog.</tt></dd></dl>
<dl><dt><a name="-init"><strong>init</strong></a>(...)</dt><dd><tt>int _pjsua.init (_pjsua.<a href="#Config">Config</a> obj_ua_cfg, _pjsua.<a href="#Logging_Config">Logging_Config</a> log_cfg, _pjsua.<a href="#Media_Config">Media_Config</a> media_cfg) Initialize pjsua with the specified settings. All the settings are optional, and the default values will be used when the config is not specified. Parameters: obj_ua_cfg : User agent configuration; log_cfg : Optional logging configuration; media_cfg : Optional media configuration.</tt></dd></dl>
<dl><dt><a name="-logging_config_default"><strong>logging_config_default</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Logging_Config">Logging_Config</a> _pjsua.logging_config_default () Use this function to initialize logging config.</tt></dd></dl>
<dl><dt><a name="-media_config_default"><strong>media_config_default</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Media_Config">Media_Config</a> _pjsua.media_config_default (). Use this function to initialize media config.</tt></dd></dl>
<dl><dt><a name="-msg_data_init"><strong>msg_data_init</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Msg_Data">Msg_Data</a> void _pjsua.msg_data_init () Initialize message data</tt></dd></dl>
<dl><dt><a name="-parse_simple_uri"><strong>parse_simple_uri</strong></a>(...)</dt><dd><tt>Parse URI</tt></dd></dl>
<dl><dt><a name="-perror"><strong>perror</strong></a>(...)</dt><dd><tt>void _pjsua.perror (string sender, string title, int status) Display error message for the specified error code. Parameters: sender: The log sender field; title: Message title for the error; status: Status code.</tt></dd></dl>
<dl><dt><a name="-player_create"><strong>player_create</strong></a>(...)</dt><dd><tt>int, int _pjsua.player_create (string filename, int options) Create a file player, and automatically connect this player to the conference bridge.</tt></dd></dl>
<dl><dt><a name="-player_destroy"><strong>player_destroy</strong></a>(...)</dt><dd><tt>int _pjsua.player_destroy (int id) Close the file, remove the player from the bridge, and free resources associated with the file player.</tt></dd></dl>
<dl><dt><a name="-player_get_conf_port"><strong>player_get_conf_port</strong></a>(...)</dt><dd><tt>int _pjsua.player_get_conf_port (int) Get conference port ID associated with player.</tt></dd></dl>
<dl><dt><a name="-player_set_pos"><strong>player_set_pos</strong></a>(...)</dt><dd><tt>int _pjsua.player_set_pos (int id, int samples) Set playback position.</tt></dd></dl>
<dl><dt><a name="-pool_create"><strong>pool_create</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Pj_Pool">Pj_Pool</a> _pjsua.pool_create (string name, int init_size, int increment) Create memory pool Parameters: name: Optional pool name; init_size: Initial size of the pool; increment: Increment size.</tt></dd></dl>
<dl><dt><a name="-pres_dump"><strong>pres_dump</strong></a>(...)</dt><dd><tt>void _pjsua.pres_dump (int verbose) Dump presence subscriptions to log file.</tt></dd></dl>
<dl><dt><a name="-reconfigure_logging"><strong>reconfigure_logging</strong></a>(...)</dt><dd><tt>int _pjsua.reconfigure_logging (_pjsua.<a href="#Logging_Config">Logging_Config</a> c) Application can call this function at any time (after pjsua_create(), of course) to change logging settings. Parameters: c: Logging configuration.</tt></dd></dl>
<dl><dt><a name="-recorder_create"><strong>recorder_create</strong></a>(...)</dt><dd><tt>int, int _pjsua.recorder_create (string filename, int enc_type, int enc_param, int max_size, int options) Create a file recorder, and automatically connect this recorder to the conference bridge. The recorder currently supports recording WAV file, and on Windows, MP3 file. The type of the recorder to use is determined by the extension of the file (e.g. '.wav' or '.mp3').</tt></dd></dl>
<dl><dt><a name="-recorder_destroy"><strong>recorder_destroy</strong></a>(...)</dt><dd><tt>int _pjsua.recorder_destroy (int id) Destroy recorder (this will complete recording).</tt></dd></dl>
<dl><dt><a name="-recorder_get_conf_port"><strong>recorder_get_conf_port</strong></a>(...)</dt><dd><tt>int _pjsua.recorder_get_conf_port (int id) Get conference port associated with recorder.</tt></dd></dl>
<dl><dt><a name="-set_ec"><strong>set_ec</strong></a>(...)</dt><dd><tt>int _pjsua.set_ec (int tail_ms, int options) Configure the echo canceller tail length of the sound port.</tt></dd></dl>
<dl><dt><a name="-set_no_snd_dev"><strong>set_no_snd_dev</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#PJMedia_Port">PJMedia_Port</a> _pjsua.set_no_snd_dev () Disconnect the main conference bridge from any sound devices, and let application connect the bridge to it's own sound device/master port.</tt></dd></dl>
<dl><dt><a name="-set_null_snd_dev"><strong>set_null_snd_dev</strong></a>(...)</dt><dd><tt>int _pjsua.set_null_snd_dev () Set pjsua to use null sound device. The null sound device only provides the timing needed by the conference bridge, and will not interract with any hardware.</tt></dd></dl>
<dl><dt><a name="-set_snd_dev"><strong>set_snd_dev</strong></a>(...)</dt><dd><tt>int _pjsua.set_snd_dev (int capture_dev, int playback_dev) Select or change sound device. Application may call this function at any time to replace current sound device.</tt></dd></dl>
<dl><dt><a name="-start"><strong>start</strong></a>(...)</dt><dd><tt>int _pjsua.start (void) Application is recommended to call this function after all initialization is done, so that the library can do additional checking set up additional</tt></dd></dl>
<dl><dt><a name="-strerror"><strong>strerror</strong></a>(...)</dt><dd><tt>Get error message</tt></dd></dl>
<dl><dt><a name="-thread_register"><strong>thread_register</strong></a>(...)</dt><dd><tt>int _pjsua.<a href="#-thread_register">thread_register</a>(string name, int[] desc)</tt></dd></dl>
<dl><dt><a name="-transport_close"><strong>transport_close</strong></a>(...)</dt><dd><tt>void _pjsua.transport_close (_pjsua.Transport_ID id, int force) Close the transport. If transport is forcefully closed, it will be immediately closed, and any pending transactions that are using the transport may not terminate properly. Otherwise, the system will wait until all transactions are closed while preventing new users from using the transport, and will close the transport when it is safe to do so.</tt></dd></dl>
<dl><dt><a name="-transport_config_default"><strong>transport_config_default</strong></a>(...)</dt><dd><tt>_pjsua.<a href="#Transport_Config">Transport_Config</a> _pjsua.transport_config_default () Call this function to initialize UDP config with default values.</tt></dd></dl>
<dl><dt><a name="-transport_create"><strong>transport_create</strong></a>(...)</dt><dd><tt>int, int _pjsua.transport_create (int type, _pjsua.<a href="#Transport_Config">Transport_Config</a> cfg) Create SIP transport.</tt></dd></dl>
<dl><dt><a name="-transport_enum_transports"><strong>transport_enum_transports</strong></a>(...)</dt><dd><tt>int[] _pjsua.enum_transports () Enumerate all transports currently created in the system.</tt></dd></dl>
<dl><dt><a name="-transport_get_info"><strong>transport_get_info</strong></a>(...)</dt><dd><tt>void _pjsua.transport_get_info (_pjsua.Transport_ID id, _pjsua.<a href="#Transport_Info">Transport_Info</a> info) Get information about transports.</tt></dd></dl>
<dl><dt><a name="-transport_set_enable"><strong>transport_set_enable</strong></a>(...)</dt><dd><tt>void _pjsua.transport_set_enable (_pjsua.Transport_ID id, int enabled) Disable a transport or re-enable it. By default transport is always enabled after it is created. Disabling a transport does not necessarily close the socket, it will only discard incoming messages and prevent the transport from being used to send outgoing messages.</tt></dd></dl>
<dl><dt><a name="-verify_sip_url"><strong>verify_sip_url</strong></a>(...)</dt><dd><tt>int _pjsua.verify_sip_url (string c_url) Verify that valid SIP url is given Parameters: c_url: The URL, as NULL terminated string.</tt></dd></dl>