diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-02-14 15:50:46 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-02-14 15:50:46 +0000 |
commit | cfb548dc3cbdb8b5b48e18a9331d0c4f26ad8d80 (patch) | |
tree | b430a70a79b5d28bb060d0466833d502813efa73 /pjsip-apps/src/py_pjsua | |
parent | 8f5a509e7e127f09876d5e16ce2dbb91e278d6d4 (diff) |
Ticket #477: DTMF digit callback error in Python
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1797 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/py_pjsua')
-rw-r--r-- | pjsip-apps/src/py_pjsua/py_pjsua.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjsip-apps/src/py_pjsua/py_pjsua.c b/pjsip-apps/src/py_pjsua/py_pjsua.c index 22814245..1ac5c8f5 100644 --- a/pjsip-apps/src/py_pjsua/py_pjsua.c +++ b/pjsip-apps/src/py_pjsua/py_pjsua.c @@ -152,7 +152,7 @@ static void cb_on_call_media_state(pjsua_call_id call_id) */ static void cb_on_dtmf_digit(pjsua_call_id call_id, int digit) { - if (PyCallable_Check(g_obj_callback->on_call_media_state)) + if (PyCallable_Check(g_obj_callback->on_dtmf_digit)) { char digit_str[10]; @@ -161,7 +161,7 @@ static void cb_on_dtmf_digit(pjsua_call_id call_id, int digit) pj_ansi_snprintf(digit_str, sizeof(digit_str), "%c", digit); PyObject_CallFunctionObjArgs( - g_obj_callback->on_call_media_state, + g_obj_callback->on_dtmf_digit, Py_BuildValue("i",call_id), PyString_FromString(digit_str), NULL |