diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-04-24 13:54:59 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-04-24 13:54:59 -0700 |
commit | f6d64a9f735b666e876cf1a42e5ca16169ba7870 (patch) | |
tree | 91d55c803a800d67776c20473383003a1899e007 /FS/FS/svc_pbx.pm | |
parent | 196d15248930f3e54811a8b46b5ede47db678e19 (diff) |
add options to bill or not based on cdr_calltype, like the ones on cdr_type
Diffstat (limited to 'FS/FS/svc_pbx.pm')
-rw-r--r-- | FS/FS/svc_pbx.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/FS/FS/svc_pbx.pm b/FS/FS/svc_pbx.pm index 4182a13..66e51da 100644 --- a/FS/FS/svc_pbx.pm +++ b/FS/FS/svc_pbx.pm @@ -292,7 +292,9 @@ to allow title to indicate a range of IP addresses. =item begin, end: Start and end of date range, as unix timestamp. -=item cdrtypenum: Only return CDRs with this type number. +=item cdrtypenum: Only return CDRs with this type. + +=item calltypenum: Only return CDRs with this call type. =back @@ -310,6 +312,9 @@ sub psearch_cdrs { if ($options{'cdrtypenum'}) { $hash{'cdrtypenum'} = $options{'cdrtypenum'}; } + if ($options{'calltypenum'}) { + $hash{'calltypenum'} = $options{'calltypenum'}; + } my $for_update = $options{'for_update'} ? 'FOR UPDATE' : ''; |