[freeside-commits] branch FREESIDE_4_BRANCH updated. 9bbb48d1f712802d8719985f3a6760d928721aff

Mark Wells mark at 420.am
Wed Jul 22 13:48:16 PDT 2015


The branch, FREESIDE_4_BRANCH has been updated
       via  9bbb48d1f712802d8719985f3a6760d928721aff (commit)
      from  8eeafe1ef47bdd2abd72ae9254aac10b83edd4fd (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 9bbb48d1f712802d8719985f3a6760d928721aff
Author: Mark Wells <mark at freeside.biz>
Date:   Tue Jul 21 17:41:01 2015 -0700

    Broadworks: fix incomplete changing of phone numbers, #25927

diff --git a/FS/FS/part_export/broadworks.pm b/FS/FS/part_export/broadworks.pm
index 5966867..a04a70e 100644
--- a/FS/FS/part_export/broadworks.pm
+++ b/FS/FS/part_export/broadworks.pm
@@ -41,7 +41,8 @@ number, this requires a svc_phone definition and a part_device. The "title"
 field ("external name") of the part_device must be one of the access device
 type names recognized by BroadWorks, such as "Polycom Soundpoint IP 550",
 "SNOM 320", or "Generic SIP Phone".</P>
-<P>
+<P>Each phone service must have a device linked before it will be functional.
+Until then, authentication will be denied.</P>
 END
 );
 
@@ -85,6 +86,11 @@ sub export_replace {
         newUserId => $newUserId
       );
       return $message if !$success;
+
+      if ( my $device = qsearchs('phone_device', { svcnum => $svc_new->svcnum }) ) {
+        # there's a Line/Port configured for the device, and it also needs to be renamed.
+        $error ||= $self->set_endpoint( $newUserId, $self->deviceName($device) );
+      }
     }
 
     if ( $svc_old->phonenum ne $svc_new->phonenum ) {

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

Summary of changes:
 FS/FS/part_export/broadworks.pm |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list