Changeset 4609 for pjproject/trunk/pjsip-apps/src/python/_pjsua.c
- Timestamp:
- Oct 2, 2013 3:19:54 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/python/_pjsua.c
r4422 r4609 132 132 */ 133 133 static void cb_on_incoming_call(pjsua_acc_id acc_id, pjsua_call_id call_id, 134 pjsip_rx_data *rdata) 135 { 136 PJ_UNUSED_ARG(rdata); 137 134 pjsip_rx_data *rdata) 135 { 138 136 if (PyCallable_Check(g_obj_callback->on_incoming_call)) { 139 PyObj ect*obj;140 137 PyObj_pjsip_rx_data *obj; 138 141 139 ENTER_PYTHON(); 142 143 obj = Py_BuildValue(""); 144 145 PyObject_CallFunction( 146 g_obj_callback->on_incoming_call, 147 "iiO", 148 acc_id, 149 call_id, 150 obj, 151 NULL 152 ); 140 141 obj = (PyObj_pjsip_rx_data*) 142 PyObj_pjsip_rx_data_new(&PyTyp_pjsip_rx_data, 143 NULL, NULL); 144 PyObj_pjsip_rx_data_import(obj, rdata); 145 146 PyObject_CallFunction( 147 g_obj_callback->on_incoming_call, 148 "iiO", 149 acc_id, 150 call_id, 151 obj, 152 NULL 153 ); 153 154 154 155 Py_DECREF(obj); … … 4454 4455 if (PyType_Ready(&PyTyp_pjsip_cred_info) < 0) 4455 4456 return; 4457 PyTyp_pjsip_rx_data.tp_new = PyType_GenericNew; 4458 if (PyType_Ready(&PyTyp_pjsip_rx_data) < 0) 4459 return; 4456 4460 4457 4461 /* LIB TRANSPORT */ … … 4536 4540 PyModule_AddObject(m, "Pjsip_Cred_Info", 4537 4541 (PyObject *)&PyTyp_pjsip_cred_info 4542 ); 4543 4544 Py_INCREF(&PyTyp_pjsip_rx_data); 4545 PyModule_AddObject(m, "Pjsip_Rx_Data", 4546 (PyObject *)&PyTyp_pjsip_rx_data 4538 4547 ); 4539 4548
Note: See TracChangeset
for help on using the changeset viewer.