|
ChannelResourceTransferredData Property |
Namespace:
VoiceElements.Client
Assembly:
VoiceElementsClient (in VoiceElementsClient.dll) Version: 8.6.1.1
Syntax public string TransferredData { get; }
Public ReadOnly Property TransferredData As String
Get
public:
property String^ TransferredData {
String^ get ();
}
member TransferredData : string with get
Property Value
Type:
StringRemarks
The application transfer feature is extremely powerful when used correctly. You may have separate code bases running on separate systems and move calls between them at any time using the
Transfer Application Method.
In this case, another application has invoked the
Transfer Application Method. At that point, this "target application" will receive a
New Call event
for the
DNIS specified by the transferring application and for which the target is
registered.
How to get the Transfer Data
Along with the new call comes the data
stored in the Transfer Data Property for the call in this application. Being an arbitrary string, you can use delimiters to pass many data fields like phone number, caller id, data already received from the caller, or anything to help the target application process the call.
Simply get the property, parse and handle it as you would like.
Examples
The example below shows the code in a
New Call event that receives the call sent from the sample code shown in:
Transfer Application Method.
static void s_TelephonyServer_NewCall(object sender, VoiceElements.Client.NewCallEventArgs callArgs)
{
string m_Dnis = callArgs.ChannelResource.Dnis;
if (m_Dnis == "4155551212")
{
string m_Data = callArgs.ChannelResource.TransferData;
string[] m_DataArray = m_Data.Split(',');
string PhoneNumber = m_DataArray[0];
string CallType = m_DataArray[1];
string CallStatus = m_DataArray[2];
}
}
Private Shared Sub s_TelephonyServer_NewCall(sender As Object, callArgs As VoiceElements.Client.NewCallEventArgs)
Dim m_Dnis As String = callArgs.ChannelResource.Dnis
If m_Dnis = "2135551212" Then
Dim m_Data As String = callArgs.ChannelResource.TransferData
Dim m_DataArray As String() = m_Data.Split(","C)
Dim PhoneNumber As String = m_DataArray(0)
Dim CallType As String = m_DataArray(1)
Dim CallStatus As String = m_DataArray(2)
End If
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also