Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class TestTransfer
[Fact]
public void TransferTest()
{
var expected = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Response> <Transfer transferCallerId=\"Anonymous\" transferCallerDisplayName=\"test\" callTimeout=\"30\" transferCompleteUrl=\"http://test.com\" transferCompleteMethod=\"POST\" transferCompleteFallbackUrl=\"http://fallbackTest.com\" transferCompleteFallbackMethod=\"POST\" username=\"username\" password=\"password\" fallbackUsername=\"fallbackUsername\" fallbackPassword=\"fallbackPassword\" tag=\"test\" diversionTreatment=\"none\" diversionReason=\"user-busy\" privacy=\"true\"> <PhoneNumber>+15551234567</PhoneNumber> <SipUri uui=\"abc123\">sip:1-999-123-4567@voip-provider.example.net</SipUri> </Transfer></Response>";
var expected = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Response> <Transfer transferCallerId=\"Anonymous\" transferCallerDisplayName=\"test\" callTimeout=\"30\" transferCompleteUrl=\"http://test.com\" transferCompleteMethod=\"POST\" transferCompleteFallbackUrl=\"http://fallbackTest.com\" transferCompleteFallbackMethod=\"POST\" username=\"username\" password=\"password\" fallbackUsername=\"fallbackUsername\" fallbackPassword=\"fallbackPassword\" tag=\"test\" diversionTreatment=\"none\" diversionReason=\"user-busy\" privacy=\"true\" requestedAttestationLevel=\"A\" identity=\"abc.def.ghi;info=&lt;https://cert.example.com/cert.pem&gt;;alg=ES256;ppt=&quot;shaken&quot;\"> <PhoneNumber>+15551234567</PhoneNumber> <SipUri uui=\"abc123\">sip:1-999-123-4567@voip-provider.example.net</SipUri> </Transfer></Response>";

var phoneNumber = new PhoneNumber();
phoneNumber.Number = "+15551234567";
Expand All @@ -35,6 +35,8 @@ public void TransferTest()
transfer.DiversionTreatment = "none";
transfer.DiversionReason = "user-busy";
transfer.Privacy = true;
transfer.RequestedAttestationLevel = "A";
transfer.Identity = "abc.def.ghi;info=<https://cert.example.com/cert.pem>;alg=ES256;ppt=\"shaken\"";
transfer.PhoneNumbers = new PhoneNumber[] { phoneNumber };
transfer.SipUris = new SipUri[] { sipUri };

Expand All @@ -44,4 +46,3 @@ public void TransferTest()
}
}
}

12 changes: 12 additions & 0 deletions src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ public string PrivacyAsText
set { }
}

/// <summary>
/// (optional) The STIR/SHAKEN attestation level to sign the transferred call with: A, B, or C. Only applies to accounts using the Hosted Signing Service.
/// </summary>
[XmlAttribute("requestedAttestationLevel")]
public string RequestedAttestationLevel { get; set; }

/// <summary>
/// (optional) A SIP Identity header value (PASSporT) signed by the customer, sent unmodified on the transferred call.
/// </summary>
[XmlAttribute("identity")]
public string Identity { get; set; }

/// <summary>
/// Phone numbers to attempt to transfer the call to.
/// </summary>
Expand Down
Loading