diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-01-31 20:53:31 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-01-31 20:53:31 +0000 |
commit | 10961f86b5142d327b6327072b29172046451b2c (patch) | |
tree | 76414f5a9daca185335b288f70472b87081f1211 /pjsip-apps | |
parent | 04da64eb0c96aa556b3ab7e02b44b26cb9efedd1 (diff) |
Updated PJSUA-API docs for Python and some bug fixes in Python module
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@918 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps')
-rw-r--r-- | pjsip-apps/src/py_pjsua/py_pjsua.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pjsip-apps/src/py_pjsua/py_pjsua.c b/pjsip-apps/src/py_pjsua/py_pjsua.c index 15908d69..b0fa0615 100644 --- a/pjsip-apps/src/py_pjsua/py_pjsua.c +++ b/pjsip-apps/src/py_pjsua/py_pjsua.c @@ -7181,11 +7181,11 @@ static PyObject *py_pjsua_call_make_call pool = pjsua_pool_create("pjsua", 4000, 4000); translate_hdr(pool, &msg_data.hdr_list, omd->hdr_list); status = pjsua_call_make_call(acc_id, &dst_uri, - options, &user_data, &msg_data, &call_id); + options, (void*)user_data, &msg_data, &call_id); pj_pool_release(pool); } else { status = pjsua_call_make_call(acc_id, &dst_uri, - options, &user_data, NULL, &call_id); + options, (void*)user_data, NULL, &call_id); } return Py_BuildValue("ii",status, call_id); @@ -7338,7 +7338,7 @@ static PyObject *py_pjsua_call_set_user_data return NULL; } - status = pjsua_call_set_user_data(call_id, &user_data); + status = pjsua_call_set_user_data(call_id, (void*)user_data); return Py_BuildValue("i", status); @@ -7351,7 +7351,7 @@ static PyObject *py_pjsua_call_get_user_data (PyObject *pSelf, PyObject *pArgs) { int call_id; - int * user_data; + void * user_data; if (!PyArg_ParseTuple(pArgs, "i", &call_id)) @@ -7362,7 +7362,7 @@ static PyObject *py_pjsua_call_get_user_data user_data = pjsua_call_get_user_data(call_id); - return Py_BuildValue("i", *user_data); + return Py_BuildValue("i", (int)user_data); } /* |