Changeset 845 for pjproject/trunk/pjsip-apps/src/py_pjsua/pjsua.py
- Timestamp:
- Dec 4, 2006 8:33:20 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/py_pjsua/pjsua.py
r824 r845 75 75 # 76 76 77 # lib transport 78 stunc = py_pjsua.STUN_Config(); 79 py_pjsua.stun_config_default(stunc); 80 81 tc = py_pjsua.Transport_Config(); 82 py_pjsua.transport_config_default(tc); 83 84 py_pjsua.normalize_stun_config(stunc); 85 86 id = py_pjsua.Transport_ID(); 87 status = py_pjsua.transport_create(1, tc, id); 88 print "py transport create status " + `status` 89 90 t_id = id.transport_id; 91 ti = py_pjsua.Transport_Info(); 92 status = py_pjsua.transport_get_info(t_id,ti) 93 print "py transport get info status " + `status` 94 95 status = py_pjsua.transport_set_enable(t_id,1) 96 print "py transport set enable status " + `status` 97 if status != 0 : 98 py_pjsua.perror("py_pjsua","set enable",status) 99 100 101 status = py_pjsua.transport_close(t_id,1) 102 print "py transport close status " + `status` 103 if status != 0 : 104 py_pjsua.perror("py_pjsua","close",status) 105 106 # end of lib transport 107 108 # lib account 109 110 accfg = py_pjsua.Acc_Config() 111 py_pjsua.acc_config_default(accfg) 112 accid = py_pjsua.Acc_ID() 113 status = py_pjsua.acc_add(accfg, 1, accid) 114 print "py acc add status " + `status` 115 if status != 0 : 116 py_pjsua.perror("py_pjsua","add acc",status) 117 count = py_pjsua.acc_get_count() 118 print "acc count " + `count` 119 120 accid.acc_id = py_pjsua.acc_get_default() 121 122 print "acc id default " + `accid.acc_id` 123 124 # end of lib account 125 77 126 py_pjsua.perror("saya","hallo",70006) 78 127
Note: See TracChangeset
for help on using the changeset viewer.