[freeside-commits] branch master updated. d9880fb208858d882d02462bba4c3c57db3b377c

Ivan Kohler ivan at freeside.biz
Wed May 11 12:02:27 PDT 2022


The branch, master has been updated
       via  d9880fb208858d882d02462bba4c3c57db3b377c (commit)
      from  ccdb2852a82946d7a9dca13345a390c31ea18d27 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d9880fb208858d882d02462bba4c3c57db3b377c
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed May 11 12:02:26 2022 -0700

    fix disposition, add clid, RT#81941

diff --git a/FS/FS/cdr/broadsoft22.pm b/FS/FS/cdr/broadsoft22.pm
index 3334a9e76..92a0b9dbf 100644
--- a/FS/FS/cdr/broadsoft22.pm
+++ b/FS/FS/cdr/broadsoft22.pm
@@ -62,7 +62,7 @@ use FS::cdr qw( _cdr_date_parser_maker _cdr_min_parser_maker );
     # 12: answerIndicator
     sub {
       my( $cdr, $data ) = @_;
-      $cdr->disposition( lc($data) eq 'yes' ? 'ANSWERED' : 'NO ANSWER');
+      $cdr->disposition( $data =~ /^yes/i ? 'ANSWERED' : 'NO ANSWER');
     },
 
     # 13: answerTime
@@ -120,7 +120,12 @@ use FS::cdr qw( _cdr_date_parser_maker _cdr_min_parser_maker );
     # 47: callingPartyCategory
     #
     # Also... cols 48 - 448 see Broadsoft documentation
-    skip(111), #35-145 inclusive
+    skip(87), #35-121 inclusive
+
+    #122: otherPartyName
+    'clid',
+
+    skip(23), #123-145 inclusive
 
     # 146: chargedNumber
     'charged_party',

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cdr/broadsoft22.pm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list