Changeset 934 for pjproject/trunk/pjsip-apps/src/py_pjsua/py_pjsua.c
- Timestamp:
- Feb 7, 2007 8:18:35 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/py_pjsua/py_pjsua.c
r928 r934 63 63 if (PyCallable_Check(obj_logging_init)) 64 64 { 65 //PyObject_CallFunction(obj_logging_init,"iSi",level,data,len); 66 //printf("level : %d data : %s len : %d\n",level, data, len); 65 67 66 PyObject_CallFunctionObjArgs( 68 67 obj_logging_init, Py_BuildValue("i",level), … … 1895 1894 return NULL; 1896 1895 } 1897 /*printf("name : %s\n",name); 1898 printf("init : %d\n", init_size); 1899 printf("increment : %d\n", increment);*/ 1896 1900 1897 p = pjsua_pool_create(name, init_size, increment); 1901 1898 pool = (pj_pool_Object *)PyType_GenericNew(&pj_pool_Type, NULL, NULL); … … 2135 2132 } 2136 2133 status = pjsua_start(); 2137 //printf("status %d\n",status);2134 2138 2135 return Py_BuildValue("i",status); 2139 2136 } … … 2151 2148 } 2152 2149 status = pjsua_destroy(); 2153 //printf("status %d\n",status);2150 2154 2151 return Py_BuildValue("i",status); 2155 2152 } … … 2168 2165 } 2169 2166 ret = pjsua_handle_events(msec); 2170 //printf("return %d\n",ret);2167 2171 2168 return Py_BuildValue("i",ret); 2172 2169 } … … 2185 2182 } 2186 2183 status = pjsua_verify_sip_url(url); 2187 //printf("status %d\n",status);2184 2188 2185 return Py_BuildValue("i",status); 2189 2186 } … … 3326 3323 } 3327 3324 status = pjsua_transport_set_enable(id, enabled); 3328 //printf("status %d\n",status);3325 3329 3326 return Py_BuildValue("i",status); 3330 3327 } … … 3343 3340 } 3344 3341 status = pjsua_transport_close(id, force); 3345 //printf("status %d\n",status);3342 3346 3343 return Py_BuildValue("i",status); 3347 3344 } … … 5393 5390 "Bits per sample" 5394 5391 }, 5395 /*{5392 { 5396 5393 "listener_cnt", T_INT, 5397 5394 offsetof(conf_port_info_Object, listener_cnt), 0, 5398 5395 "Number of listeners in the array." 5399 }, */5396 }, 5400 5397 { 5401 5398 "listeners", T_OBJECT_EX, … … 6304 6301 str.ptr = PyString_AsString(filename); 6305 6302 str.slen = strlen(PyString_AsString(filename)); 6306 strparam.ptr = PyString_AsString(enc_param); 6307 strparam.slen = strlen(PyString_AsString(enc_param)); 6308 status = pjsua_recorder_create 6303 if (enc_param != Py_None) 6304 { 6305 strparam.ptr = PyString_AsString(enc_param); 6306 strparam.slen = strlen(PyString_AsString(enc_param)); 6307 status = pjsua_recorder_create 6309 6308 (&str, enc_type, NULL, max_size, options, &p_id); 6310 6309 } else { 6310 status = pjsua_recorder_create 6311 (&str, enc_type, NULL, max_size, options, &p_id); 6312 } 6311 6313 return Py_BuildValue("ii", status, p_id); 6312 6314 } … … 7258 7260 pj_pool_release(pool); 7259 7261 } else { 7262 7260 7263 status = pjsua_call_make_call(acc_id, &dst_uri, 7261 7264 options, (void*)user_data, NULL, &call_id); 7262 7265 } 7263 7266 7264 7267 return Py_BuildValue("ii",status, call_id); 7268 7265 7269 } 7266 7270 … … 7485 7489 } else { 7486 7490 7487 status = pjsua_call_answer(call_id, code, reason, NULL); 7491 status = pjsua_call_answer(call_id, code, reason, NULL); 7492 7488 7493 } 7489 7494
Note: See TracChangeset
for help on using the changeset viewer.