Fix detection of called/calling numbers when there is no calling number.
PR: ports/91284 Submitted by: Torfinn Ingolfsen <tingo@start.no> Approved by: possamai@xs4all.nl (maintainer, timeout 5 weeks)
This commit is contained in:
parent
a449cba66c
commit
e3c905d837
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155747
2 changed files with 28 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= callid
|
||||
PORTVERSION= 1.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= http://www.xs4all.nl/~possamai/callid/
|
||||
|
||||
|
|
27
misc/callid/files/patch-src_call-logd
Normal file
27
misc/callid/files/patch-src_call-logd
Normal file
|
@ -0,0 +1,27 @@
|
|||
--- sbin/call-logd.orig Tue Jan 3 22:45:53 2006
|
||||
+++ sbin/call-logd 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 ''){
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue