fix by Martin: screening caller-ids with jokers shall work now.
authorSuper User <root@isdn.jolly.ten>
Tue, 2 Oct 2007 08:15:37 +0000 (10:15 +0200)
committerSuper User <root@isdn.jolly.ten>
Tue, 2 Oct 2007 08:15:37 +0000 (10:15 +0200)
README
apppbx.cpp

diff --git a/README b/README
index 90b0ffb..0338a33 100644 (file)
--- a/README
+++ b/README
@@ -370,4 +370,5 @@ Lates changes
 - Added join/release jingle options for partylines
 - Fixed bug that did not release reserved channels, so interface run out of
   channels.
+- Bugfixes...
 
index 6641b31..f4fa4c9 100644 (file)
@@ -309,9 +309,9 @@ void EndpointAppPBX::screen(int out, char *id, int idsize, int *type, int *prese
                        SCPY(suffix, strchr(ifscreen->match,'%') - ifscreen->match + id);
                        UNCPY(id, ifscreen->result, idsize);
                        id[idsize-1] = '\0';
-                       if (strchr(ifscreen->result,'%'))
+                       if (strchr(id,'%'))
                        {
-                               *strchr(ifscreen->result,'%') = '\0';
+                               *strchr(id,'%') = '\0';
                                UNCAT(id, suffix, idsize);
                                id[idsize-1] = '\0';
                        }