mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +00:00
Added objects back to xStatus lost in merge and fixed regex pattern for extracting phone number.
Added formatting call to room phone number when displayed on header
This commit is contained in:
@@ -1290,7 +1290,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
{
|
{
|
||||||
if (CodecStatus.Status.SIP.Registration.Count > 0)
|
if (CodecStatus.Status.SIP.Registration.Count > 0)
|
||||||
{
|
{
|
||||||
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, "Unable to extract phone number from string: '{0}'", CodecStatus.Status.SIP.Registration[0].URI.Value);
|
||||||
|
|||||||
@@ -1112,6 +1112,26 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class Primary
|
||||||
|
{
|
||||||
|
public URI URI { get; set; }
|
||||||
|
|
||||||
|
public Primary()
|
||||||
|
{
|
||||||
|
URI = new URI();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class AlternateURI
|
||||||
|
{
|
||||||
|
public Primary Primary { get; set; }
|
||||||
|
|
||||||
|
public AlternateURI()
|
||||||
|
{
|
||||||
|
Primary = new Primary();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public class Authentication
|
public class Authentication
|
||||||
{
|
{
|
||||||
public string Value { get; set; }
|
public string Value { get; set; }
|
||||||
@@ -1193,6 +1213,11 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
public Reason3 Reason { get; set; }
|
public Reason3 Reason { get; set; }
|
||||||
public Status10 Status { get; set; }
|
public Status10 Status { get; set; }
|
||||||
public URI3 URI { get; set; }
|
public URI3 URI { get; set; }
|
||||||
|
|
||||||
|
public Registration()
|
||||||
|
{
|
||||||
|
URI = new URI3();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Secure
|
public class Secure
|
||||||
@@ -1207,6 +1232,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
|
|
||||||
public class SIP
|
public class SIP
|
||||||
{
|
{
|
||||||
|
public AlternateURI AlternateURI { get; set; }
|
||||||
public Authentication Authentication { get; set; }
|
public Authentication Authentication { get; set; }
|
||||||
public CallForward CallForward { get; set; }
|
public CallForward CallForward { get; set; }
|
||||||
public Mailbox Mailbox { get; set; }
|
public Mailbox Mailbox { get; set; }
|
||||||
@@ -1214,6 +1240,12 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
public List<Registration> Registration { get; set; }
|
public List<Registration> Registration { get; set; }
|
||||||
public Secure Secure { get; set; }
|
public Secure Secure { get; set; }
|
||||||
public Verified Verified { get; set; }
|
public Verified Verified { get; set; }
|
||||||
|
|
||||||
|
public SIP()
|
||||||
|
{
|
||||||
|
AlternateURI = new AlternateURI();
|
||||||
|
Registration = new List<Registration>();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Mode7
|
public class Mode7
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
void Codec_IsReady()
|
void Codec_IsReady()
|
||||||
{
|
{
|
||||||
TriList.SetString(UIStringJoin.RoomPhoneText, Codec.CodecInfo.PhoneNumber);
|
TriList.SetString(UIStringJoin.RoomPhoneText, GetFormattedDialString(Codec.CodecInfo.PhoneNumber));
|
||||||
TriList.SetString(UIStringJoin.RoomSipText, Codec.CodecInfo.SipUri);
|
TriList.SetString(UIStringJoin.RoomSipText, Codec.CodecInfo.SipUri);
|
||||||
|
|
||||||
if(Parent.HeaderButtonsAreSetUp)
|
if(Parent.HeaderButtonsAreSetUp)
|
||||||
|
|||||||
Reference in New Issue
Block a user