From d6b882de303319c1be81d91d4ceba5e6fa036ec5 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Wed, 6 Mar 2013 06:00:18 +0000 Subject: Re #1630: Fixed incorrect parameter in Python wrapper. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4422 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip-apps/src/python/_pjsua.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pjsip-apps') diff --git a/pjsip-apps/src/python/_pjsua.c b/pjsip-apps/src/python/_pjsua.c index bb5d91f1..91d86041 100644 --- a/pjsip-apps/src/python/_pjsua.c +++ b/pjsip-apps/src/python/_pjsua.c @@ -3105,14 +3105,15 @@ static PyObject *py_pjsua_call_make_call(PyObject *pSelf, PyObject *pArgs) int acc_id; pj_str_t dst_uri; PyObject *pDstUri, *pMsgData, *pUserData; - unsigned options; + pjsua_call_setting option; pjsua_msg_data msg_data; int call_id; pj_pool_t *pool = NULL; PJ_UNUSED_ARG(pSelf); - if (!PyArg_ParseTuple(pArgs, "iOIOO", &acc_id, &pDstUri, &options, + pjsua_call_setting_default(&option); + if (!PyArg_ParseTuple(pArgs, "iOIOO", &acc_id, &pDstUri, &option.flag, &pUserData, &pMsgData)) { return NULL; @@ -3135,7 +3136,7 @@ static PyObject *py_pjsua_call_make_call(PyObject *pSelf, PyObject *pArgs) Py_XINCREF(pUserData); status = pjsua_call_make_call(acc_id, &dst_uri, - options, (void*)pUserData, + &option, (void*)pUserData, &msg_data, &call_id); if (pool != NULL) pj_pool_release(pool); -- cgit v1.2.3