Update debug messages for SIP phone number extraction

This commit is contained in:
Neil Dorin
2017-10-24 13:00:46 -06:00
parent 88a60b06e6
commit dc36386c0d

View File

@@ -1293,11 +1293,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
var match = Regex.Match(CodecStatus.Status.SIP.Registration[0].URI.Value, @"(\d+)"); // extract numbers only var match = Regex.Match(CodecStatus.Status.SIP.Registration[0].URI.Value, @"(\d+)"); // extract numbers only
if (match.Success) if (match.Success)
{ {
Debug.Console(1, "Unable to extract phone number from string: '{0}'", CodecStatus.Status.SIP.Registration[0].URI.Value); Debug.Console(1, "Extracted phone number as '{0}' from string '{1}'", match.Groups[1].Value, CodecStatus.Status.SIP.Registration[0].URI.Value);
return match.Groups[1].Value; return match.Groups[1].Value;
} }
else else
{
Debug.Console(1, "Unable to extract phone number from string: '{0}'", CodecStatus.Status.SIP.Registration[0].URI.Value);
return string.Empty; return string.Empty;
}
} }
else else
{ {