mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 20:47:04 +00:00
fix(CiscoSparkCodec): Solves exception when in SipUri getter
This commit is contained in:
parent
0867d08c5a
commit
397a5b1794
1 changed files with 4 additions and 2 deletions
|
|
@ -1880,17 +1880,19 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (CodecStatus.Status.SIP != null && CodecStatus.Status.SIP.AlternateURI != null)
|
if (CodecStatus.Status.SIP != null && !string.IsNullOrEmpty(CodecStatus.Status.SIP.AlternateURI.Primary.URI.Value))
|
||||||
{
|
{
|
||||||
return CodecStatus.Status.SIP.AlternateURI.Primary.URI.Value;
|
return CodecStatus.Status.SIP.AlternateURI.Primary.URI.Value;
|
||||||
}
|
}
|
||||||
else if (CodecStatus.Status.UserInterface != null &&
|
else if (CodecStatus.Status.UserInterface != null &&
|
||||||
CodecStatus.Status.UserInterface.ContactInfo != null && CodecStatus.Status.UserInterface.ContactInfo != null)
|
CodecStatus.Status.UserInterface.ContactInfo != null && CodecStatus.Status.UserInterface.ContactInfo.ContactMethod != null)
|
||||||
{
|
{
|
||||||
return CodecStatus.Status.UserInterface.ContactInfo.ContactMethod[0].Number.Value;
|
return CodecStatus.Status.UserInterface.ContactInfo.ContactMethod[0].Number.Value;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue