summaryrefslogtreecommitdiffstats
path: root/apppbx.cpp
diff options
context:
space:
mode:
authorSuper User2007-10-02 10:15:37 +0200
committerSuper User2007-10-02 10:15:37 +0200
commit2075e1ab39620dbc2affefbeb4e77ee7dbf176e9 (patch)
tree19c4fce5215f5f5d4662cd376d3b8fc5380a795e /apppbx.cpp
parentsome small conference jingle fixes (diff)
downloadlcr-2075e1ab39620dbc2affefbeb4e77ee7dbf176e9.tar.gz
lcr-2075e1ab39620dbc2affefbeb4e77ee7dbf176e9.tar.xz
lcr-2075e1ab39620dbc2affefbeb4e77ee7dbf176e9.zip
fix by Martin: screening caller-ids with jokers shall work now.
Diffstat (limited to 'apppbx.cpp')
-rw-r--r--apppbx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/apppbx.cpp b/apppbx.cpp
index 6641b31..f4fa4c9 100644
--- a/apppbx.cpp
+++ b/apppbx.cpp
@@ -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';
}