From edfbf51af1838f944cb755c37a8396020f5f8df8 Mon Sep 17 00:00:00 2001 From: Nicolas Asanov Date: Tue, 20 Oct 2026 17:10:05 -0400 Subject: [PATCH 1/4] feat(VAPI-3321): add attestationLevel and identity attributes to Transfer verb --- .../Unit/Model/Bxml/TestTransfer.cs | 20 ++++++++++++++++++- .../Model/Bxml/Verbs/Transfer.cs | 12 +++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs b/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs index 30bdf903..a75684ae 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs @@ -10,7 +10,7 @@ public class TestTransfer [Fact] public void TransferTest() { - var expected = " +15551234567 sip:1-999-123-4567@voip-provider.example.net "; + var expected = " +15551234567 sip:1-999-123-4567@voip-provider.example.net "; var phoneNumber = new PhoneNumber(); phoneNumber.Number = "+15551234567"; @@ -35,6 +35,7 @@ public void TransferTest() transfer.DiversionTreatment = "none"; transfer.DiversionReason = "user-busy"; transfer.Privacy = true; + transfer.AttestationLevel = "A"; transfer.PhoneNumbers = new PhoneNumber[] { phoneNumber }; transfer.SipUris = new SipUri[] { sipUri }; @@ -42,6 +43,23 @@ public void TransferTest() var actual = response.ToBXML(); Assert.Equal(expected, actual.Replace("\n","").Replace("\r","")); } + + [Fact] + public void TransferIdentityTest() + { + var expected = " +15551234567 "; + + var phoneNumber = new PhoneNumber(); + phoneNumber.Number = "+15551234567"; + + var transfer = new Transfer(); + transfer.Identity = "abc.def.ghi;info=;alg=ES256;ppt=\"shaken\""; + transfer.PhoneNumbers = new PhoneNumber[] { phoneNumber }; + + var response = new Response(transfer); + var actual = response.ToBXML(); + Assert.Equal(expected, actual.Replace("\n","").Replace("\r","")); + } } } diff --git a/src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs b/src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs index 5dbbb6ac..b9056034 100644 --- a/src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs +++ b/src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs @@ -127,6 +127,18 @@ public string PrivacyAsText set { } } + /// + /// (optional) STIR/SHAKEN attestation level Bandwidth signs the transferred call at: "A", "B", or "C". Applies only to US outbound calls on accounts using the Hosted Signing Service. Cannot be combined with Identity. + /// + [XmlAttribute("attestationLevel")] + public string AttestationLevel { get; set; } + + /// + /// (optional) A SIP Identity header value (PASSporT) signed off-platform, passed through unmodified. Cannot be combined with AttestationLevel. + /// + [XmlAttribute("identity")] + public string Identity { get; set; } + /// /// Phone numbers to attempt to transfer the call to. /// From 3125645d97d8becae2785455fd4dacb9b8a47db0 Mon Sep 17 00:00:00 2001 From: Nicolas Asanov Date: Tue, 3 Nov 2026 12:10:44 -0500 Subject: [PATCH 2/4] VAPI-4422 Tighten Attestation Level and Identity Docs --- src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs b/src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs index b9056034..81037603 100644 --- a/src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs +++ b/src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs @@ -128,13 +128,13 @@ public string PrivacyAsText } /// - /// (optional) STIR/SHAKEN attestation level Bandwidth signs the transferred call at: "A", "B", or "C". Applies only to US outbound calls on accounts using the Hosted Signing Service. Cannot be combined with Identity. + /// (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. /// [XmlAttribute("attestationLevel")] public string AttestationLevel { get; set; } /// - /// (optional) A SIP Identity header value (PASSporT) signed off-platform, passed through unmodified. Cannot be combined with AttestationLevel. + /// (optional) A SIP Identity header value (PASSporT) signed by the customer, sent unmodified on the transferred call. /// [XmlAttribute("identity")] public string Identity { get; set; } From 6c08fa63cf6b1e0aa33a3c2761e29c9dea10df8a Mon Sep 17 00:00:00 2001 From: Nicolas Asanov Date: Wed, 11 Nov 2026 11:33:40 -0500 Subject: [PATCH 3/4] refactor(VAPI-4422): rename Transfer attestationLevel to requestedAttestationLevel --- src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs | 4 ++-- src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs b/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs index a75684ae..b3e45702 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs @@ -10,7 +10,7 @@ public class TestTransfer [Fact] public void TransferTest() { - var expected = " +15551234567 sip:1-999-123-4567@voip-provider.example.net "; + var expected = " +15551234567 sip:1-999-123-4567@voip-provider.example.net "; var phoneNumber = new PhoneNumber(); phoneNumber.Number = "+15551234567"; @@ -35,7 +35,7 @@ public void TransferTest() transfer.DiversionTreatment = "none"; transfer.DiversionReason = "user-busy"; transfer.Privacy = true; - transfer.AttestationLevel = "A"; + transfer.RequestedAttestationLevel = "A"; transfer.PhoneNumbers = new PhoneNumber[] { phoneNumber }; transfer.SipUris = new SipUri[] { sipUri }; diff --git a/src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs b/src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs index 81037603..68a69eef 100644 --- a/src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs +++ b/src/Bandwidth.Standard/Model/Bxml/Verbs/Transfer.cs @@ -130,8 +130,8 @@ public string PrivacyAsText /// /// (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. /// - [XmlAttribute("attestationLevel")] - public string AttestationLevel { get; set; } + [XmlAttribute("requestedAttestationLevel")] + public string RequestedAttestationLevel { get; set; } /// /// (optional) A SIP Identity header value (PASSporT) signed by the customer, sent unmodified on the transferred call. From 74ce6e2f8f69b46386fbeac2861af6a9a48b888f Mon Sep 17 00:00:00 2001 From: Nicolas Asanov Date: Wed, 11 Nov 2026 11:44:09 -0500 Subject: [PATCH 4/4] test(VAPI-4422): fold Transfer attestation and identity into existing tests --- .../Unit/Model/Bxml/TestTransfer.cs | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs b/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs index b3e45702..838de951 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestTransfer.cs @@ -10,7 +10,7 @@ public class TestTransfer [Fact] public void TransferTest() { - var expected = " +15551234567 sip:1-999-123-4567@voip-provider.example.net "; + var expected = " +15551234567 sip:1-999-123-4567@voip-provider.example.net "; var phoneNumber = new PhoneNumber(); phoneNumber.Number = "+15551234567"; @@ -36,25 +36,9 @@ public void TransferTest() transfer.DiversionReason = "user-busy"; transfer.Privacy = true; transfer.RequestedAttestationLevel = "A"; - transfer.PhoneNumbers = new PhoneNumber[] { phoneNumber }; - transfer.SipUris = new SipUri[] { sipUri }; - - var response = new Response(transfer); - var actual = response.ToBXML(); - Assert.Equal(expected, actual.Replace("\n","").Replace("\r","")); - } - - [Fact] - public void TransferIdentityTest() - { - var expected = " +15551234567 "; - - var phoneNumber = new PhoneNumber(); - phoneNumber.Number = "+15551234567"; - - var transfer = new Transfer(); transfer.Identity = "abc.def.ghi;info=;alg=ES256;ppt=\"shaken\""; transfer.PhoneNumbers = new PhoneNumber[] { phoneNumber }; + transfer.SipUris = new SipUri[] { sipUri }; var response = new Response(transfer); var actual = response.ToBXML(); @@ -62,4 +46,3 @@ public void TransferIdentityTest() } } } -