|
ChannelResourceOriginatingPhoneNumber Property |
This is the CallerID number sent with an oubound call when a
Dial is executed.
Namespace:
VoiceElements.Client
Assembly:
VoiceElementsClient (in VoiceElementsClient.dll) Version: 8.6.1.1
Syntax public string OriginatingPhoneNumber { get; set; }
Public Property OriginatingPhoneNumber As String
Get
Set
public:
property String^ OriginatingPhoneNumber {
String^ get ();
void set (String^ value);
}
member OriginatingPhoneNumber : string with get, set
Property Value
Type:
StringRemarks
This the number of the outbound caller id that will show on the call recipient's phone. Modifying the this field allows you to change the number that is displayed on the users phone. This is useful if you would like to make sure that your customers only call back the number that is specified for this value.
For more detail on CallerID, see
Caller ID Information.
You Cannot Control the Name Field
You may find that many applications would like to change the name field of the CallerID. However, this is managed by the carriers, who have databases that map the numbers to names. These are called CNAM records.
If you are not showing the correct name on outbound calls, you will need to contact your carrier to change the name.
Examples
The example below shows a chunk of code that sets the outbound caller ID number, dials a call and then switches based on the
Dial Result.
public void DialOut()
{
TelephonyServer m_TelephonyServer = new TelephonyServer();
ChannelResource m_ChannelResource = m_TelephonyServer.GetChannel();
string m_PhoneNumber = "2135551212";
m_ChannelResource.OriginatingPhoneNumber = "8675309";
DialResult dialResult = m_ChannelResource.Dial(m_PhoneNumber);
switch (dialResult)
{
case DialResult.Connected:
break;
case DialResult.NoAnswer:
break;
case DialResult.Busy:
break;
default:
break;
}
}
Public Sub DialOut()
Dim m_TelephonyServer As New TelephonyServer()
Dim m_ChannelResource As ChannelResource = m_TelephonyServer.GetChannel()
Dim m_PhoneNumber As String = "2135551212"
m_ChannelResource.OriginatingPhoneNumber = "8675309";
Dim dialResult__1 As DialResult = m_ChannelResource.Dial(m_PhoneNumber)
Select Case dialResult__1
Case DialResult.Connected
Exit Select
Case DialResult.NoAnswer
Exit Select
Case DialResult.Busy
Exit Select
Case Else
Exit Select
End Select
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