hi,

no peer calling me without CLID gets through privacymanager here.

1.
with the SVN head revision, entering 0...7.. is rejected immediately.

2.
using this patch

--- app_privacy.c.us    2007-08-03 21:49:08.000000000 +0200
+++ app_privacy.c       2007-08-04 06:50:43.000000000 +0200
@@ -129,18 +129,13 @@

                /*Ask for 10 digit number, give 3 attempts*/
                for (retries = 0; retries < maxretries; retries++) {
-                       if (!res)
-                               res = opbx_streamfile(chan, "privacy-prompt", 
chan->language);
-                       if (!res)
-                               res = opbx_waitstream(chan, "");
-
                        if (!res )
-                               res = opbx_readstring(chan, phone, 
sizeof(phone) - 1, /* digit timeout ms */ 3200, /* first digit timeout */ 5000, 
"#");
+                               res = opbx_app_getdata(chan, "privacy-prompt", 
phone, sizeof(phone), 30000);

                        if (res < 0)
                                break;

-                       /*Make sure we get at least digits*/
+                       /*Make sure we get at least our minimum of digits*/
                        if (strlen(phone) >= minlength )
                                break;
                        else {

does not help either, it just rejects later after entering the whole # str, 
however, all other apps use opbx_app_getdata() succesfully for interfacing to 
DTMF, vm works..

BTW, the opbx_app_getdata(); doc in the .h misses info about the retval, 
assuming 0 on success.

Benjamin send me a intl. version for crosstesting but i cant see any difference 
in code for DTMF reading.

where could be the problem?

y
tom


_______________________________________________
Callweaver-dev mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-dev

Reply via email to