diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-12-11 11:03:21 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-12-11 11:03:21 +0000 |
commit | e0c99c6af3297030d0618cadbcb2067672fd2c1e (patch) | |
tree | 6d0d27342e1f2fa38ff6812e9a0579a25c2678f3 /pjsip-apps/src/python/_pjsua.c | |
parent | eb5756d2c401568e24c448776cc1a914b57b80b0 (diff) |
Ticket #681: Bugs in sending and receiving instant messages in Python wrapper (thanks Johan Risberg for the patches)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2374 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/python/_pjsua.c')
-rw-r--r-- | pjsip-apps/src/python/_pjsua.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pjsip-apps/src/python/_pjsua.c b/pjsip-apps/src/python/_pjsua.c index 77c4bb73..a84796fa 100644 --- a/pjsip-apps/src/python/_pjsua.c +++ b/pjsip-apps/src/python/_pjsua.c @@ -2137,6 +2137,8 @@ static PyObject *py_pjsua_im_send(PyObject *pSelf, PyObject *pArgs) to = PyString_ToPJ(pTo); content = PyString_ToPJ(pContent); + pjsua_msg_data_init(&msg_data); + if (pMsgData != Py_None) { PyObj_pjsua_msg_data *omd; @@ -2179,6 +2181,8 @@ static PyObject *py_pjsua_im_typing(PyObject *pSelf, PyObject *pArgs) to = PyString_ToPJ(pTo); + pjsua_msg_data_init(&msg_data); + if (pMsgData != Py_None) { PyObj_pjsua_msg_data *omd; |