From 2075e1ab39620dbc2affefbeb4e77ee7dbf176e9 Mon Sep 17 00:00:00 2001 From: Super User Date: Tue, 2 Oct 2007 10:15:37 +0200 Subject: [PATCH] fix by Martin: screening caller-ids with jokers shall work now. --- README | 1 + apppbx.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README b/README index 90b0ffb..0338a33 100644 --- 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... 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'; } -- 2.13.6