summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-02-14 15:50:46 +0000
committerBenny Prijono <bennylp@teluu.com>2008-02-14 15:50:46 +0000
commitcfb548dc3cbdb8b5b48e18a9331d0c4f26ad8d80 (patch)
treeb430a70a79b5d28bb060d0466833d502813efa73
parent8f5a509e7e127f09876d5e16ce2dbb91e278d6d4 (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
-rw-r--r--pjsip-apps/build/pjsip_apps.dsw15
-rw-r--r--pjsip-apps/src/py_pjsua/py_pjsua.c4
2 files changed, 17 insertions, 2 deletions
diff --git a/pjsip-apps/build/pjsip_apps.dsw b/pjsip-apps/build/pjsip_apps.dsw
index ebc52ccd..021ce149 100644
--- a/pjsip-apps/build/pjsip_apps.dsw
+++ b/pjsip-apps/build/pjsip_apps.dsw
@@ -63,6 +63,18 @@ Package=<4>
###############################################################################
+Project: "libsrtp"="..\..\third_party\build\srtp\libsrtp.dsp" - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
Project: "pjlib"="..\..\pjlib\build\pjlib.dsp" - Package Owner=<4>
Package=<5>
@@ -275,6 +287,9 @@ Package=<4>
Begin Project Dependency
Project_Dep_Name libspeex
End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name libsrtp
+ End Project Dependency
}}}
###############################################################################
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