Date: Tue, 03 Jan 2006 23:02:45 +0100 From: Torfinn Ingolfsen <tingo@start.no> To: FreeBSD gnats submit <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/91284: patch to improve port misc/callid - improves detection of calling / called numbers Message-ID: <1136325765.48123@kg-work.kg4.no> Resent-Message-ID: <200601032210.k03MA4s9063854@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 91284 >Category: ports >Synopsis: patch to improve port misc/callid - improves detection of calling / called numbers >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 03 22:10:03 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Torfinn Ingolfsen >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: System: FreeBSD 5.4-STABLE #5: Sat Dec 31 16:54:14 CET 2005 root@kg-work.kg4.no:/usr/obj/usr/src/sys/SS51G root@kg-web2# portversion -v | grep callid callid-1.2 = up-to-date with port >Description: port callid-1.2 The script call-logd was mixing up the calling / called numbers very often. In addition, it was often confused about calls with no calling number (ie. secret number, presentation restricted / not allowed). >How-To-Repeat: Install the port misc/callid, and configure it. Try to call yourself (from your cellphone for example) both with and without presentation of number allowed. Look at the call log (web page). >Fix: This small patch seems to fix the problems for me. It would be wise that somebody else tested it as well, to verify that it doesn't introduce other problems. --- call-logd_1.2 Tue Jan 3 22:45:53 2006 +++ call-logd_new Tue Jan 3 22:51:33 2006 @@ -33,13 +33,14 @@ else{ @cpn = split(' ', $grepS); - if ($phonenr eq ''){ - $phonenr = "$cpn[3]"; - }#end if phonenr - - else{ - $msnnr = "$cpn[3]"; - }#end else + if ($cpn[0] eq "[calling") { + if ($cpn[3] ne "(type=national,") { + $phonenr = "$cpn[3]"; + } + } + if ($cpn[0] eq "[called") { + $msnnr = "$cpn[3]"; + } if ($msnnr eq ''){ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1136325765.48123>