Guest

Preview Tool

Cisco Bug: CSCuj20216 - Unregister of IPhone fails in manual mode

Last Modified

Aug 06, 2017

Products (1)

  • Cisco Hosted Collaboration Solution (HCS)

Known Affected Releases

8.1(1)ER6

Description (partial)

Symptom:
Details:
Can't unregister a phone.

[16:02:14] Peter Gibbs: Okay, the error is:
"File does not exist:  at
/var/www/usm/perl/bvsmbatch/ipt_driver_PBX_CUCM_9.1.x.pl line 7319"
[16:02:49] Peter Gibbs: This corresponds to the following code in sub
driver_associatedisassociateuserphone:
[16:02:58] Peter Gibbs:     if ($devicename =~ m/^(TCT|TAB)/)
    {
        my $vendorxml;
        ($subresult,$submessage,$vendorxml)
            =
get_merged_phone_vendorconfig($dbh,$ProviderName,$mac,$ippbxchosen,$devicename);
        if ($subresult ne "Y") { return ($subresult,$submessage); };

        my $xs = new XML::Simple(noattr => 1);
        my $VOSSvendorConfig = $xs->XMLin($vendorxml);
        $VOSSvendorConfig->{'cucmCtiUserName'} = $ownerUserId;

        $xml .= $xs->XMLout($VOSSvendorConfig, RootName => "vendorConfig");
    }
[16:03:39] Peter Gibbs: The call to XMLin decides that $vendorxml does not
contain an XML string, so it assumes it must be a file name, and tries to open
it
[16:04:02] Peter Gibbs: From the error message we see that the filename was
blank
[16:04:59] Peter Gibbs: So $vendorxml as returned from
get_merged_phone_vendorconfig is an empty string (or undefined)
[16:05:30] Jako Heiberg: ok .. so is this a bug or some data related problem?
[16:08:50] Peter Gibbs: Well it is a bug in that we shouldn't crash. There is
deliberate code to return an empty string for vendorxml in certain
circumstances, so that needs to be catered for.
[16:10:40] Peter Gibbs: Is this manual mode or live?
[16:10:47] Jako Heiberg: manual mode
[16:11:05] Jako Heiberg: however .. it was added in live mode
[16:11:43] Peter Gibbs: The whole merge doesn't make sense in manual mode
[16:12:05] Jako Heiberg: so should it be fine if run in live mode?
[16:12:27] Jako Heiberg: I'll ask Jo to set up the live call manager and try
running it again
[16:12:32] Peter Gibbs: Well we all normally run in manual mode in without
problems, so there is something wrong
[16:12:43] Jako Heiberg: right ... so I shall ask for them to raise a bug?
[16:13:38] Peter Gibbs: I think so - this needs a bit more investgation, and
there is definitely a bug in that we sometimes send back a blank string, which
will cause a problem

Conditions:
Details:
Can't unregister a phone.

[16:02:14] Peter Gibbs: Okay, the error is:
"File does not exist:  at
/var/www/usm/perl/bvsmbatch/ipt_driver_PBX_CUCM_9.1.x.pl line 7319"
[16:02:49] Peter Gibbs: This corresponds to the following code in sub
driver_associatedisassociateuserphone:
[16:02:58] Peter Gibbs:     if ($devicename =~ m/^(TCT|TAB)/)
    {
        my $vendorxml;
        ($subresult,$submessage,$vendorxml)
            =
get_merged_phone_vendorconfig($dbh,$ProviderName,$mac,$ippbxchosen,$devicename);
        if ($subresult ne "Y") { return ($subresult,$submessage); };

        my $xs = new XML::Simple(noattr => 1);
        my $VOSSvendorConfig = $xs->XMLin($vendorxml);
        $VOSSvendorConfig->{'cucmCtiUserName'} = $ownerUserId;

        $xml .= $xs->XMLout($VOSSvendorConfig, RootName => "vendorConfig");
    }
[16:03:39] Peter Gibbs: The call to XMLin decides that $vendorxml does not
contain an XML string, so it assumes it must be a file name, and tries to open
it
[16:04:02] Peter Gibbs: From the error message we see that the filename was
blank
[16:04:59] Peter Gibbs: So $vendorxml as returned from
get_merged_phone_vendorconfig is an empty string (or undefined)
[16:05:30] Jako Heiberg: ok .. so is this a bug or some data related problem?
[16:08:50] Peter Gibbs: Well it is a bug in that we shouldn't crash. There is
deliberate code to return an empty string for vendorxml in certain
circumstances, so that needs to be catered for.
[16:10:40] Peter Gibbs: Is this manual mode or live?
[16:10:47] Jako Heiberg: manual mode
[16:11:05] Jako Heiberg: however .. it was added in live mode
[16:11:43] Peter Gibbs: The whole merge doesn't make sense in manual mode
[16:12:05] Jako Heiberg: so should it be fine if run in live mode?
[16:12:27] Jako Heiberg: I'll ask Jo to set up the live call manager and try
running it again
[16:12:32] Peter Gibbs: Well we all normally run in manual mode in without
problems, so there is something wrong
[16:12:43] Jako Heiberg: right ... so I shall ask for them to raise a bug?
[16:13:38] Peter Gibbs: I think so - this needs a bit more investgation, and
there is definitely a bug in that we sometimes send back a blank string, which
will cause a problem
Bug details contain sensitive information and therefore require a Cisco.com account to be viewed.

Bug Details Include

  • Full Description (including symptoms, conditions and workarounds)
  • Status
  • Severity
  • Known Fixed Releases
  • Related Community Discussions
  • Number of Related Support Cases
Bug information is viewable for customers and partners who have a service contract. Registered users can view up to 200 bugs per month without a service contract.