| CONTACT | DEVELOPER CENTER | PARTNERS | SITEMAP
GO
Useful Links
  • Search Helpweb
    
    

Dialogic Support Helpweb

Dialogic® Diva® SDK

Using FaxHeadLine (Diva Component API)

In fax applications, there are several properties of a call object that control fax behaviour, incuding FaxHeadLine.

This is used in the VB 6 sample "OutgoingFax" (Basic\samples\VisualBasic\Outgoing_Fax) like this:
VB 6:
'create a call object    
Set FaxCall = CreateObject("DivaSDK.DivaCall")          
'set the fax headline for the call    
FaxCall.FaxHeadLine = "Diva Server SDK: Sent by Simple Fax Sample"    
VB 2005:
'create a call object    
Dim FaxCall As DivaCall = New DivaCall()
'set the fax headline for the call    
FaxCall.FaxHeadLine = "Diva Server SDK: Sent by Simple Fax Sample"    
C#:
// create a call object    
DivaCall FaxCall = (DivaCall) new DivaCall();
// set the fax headline for the call    
FaxCall.FaxHeadLine = "Diva Server SDK: Sent by Simple Fax Sample";    
Creating the call object does not make a call. This needs to be done explicitly later in the application using the 'object.Connect' function/method: VB 6:
retVal = FaxCall.Connect(PhoneNumber.Text, DivaCallType_Fax)    
If (retVal = DivaResultSuccess) Then
VB 2005:
Dim retval As DivaResultCodes
retVal = FaxCall.Connect(PhoneNumber.Text, DivaCallTypes.DivaCallType_Fax)    
If (retVal = DivaResultCodes.DivaResultSuccess) Then
C#:
DivaResultCodes retval;
retVal = FaxCall.Connect(PhoneNumber.Text, DivaCallTypes.DivaCallType_Fax);   
if (retVal == DivaResultCodes.DivaResultSuccess) 
    {
The fax headline cannot be changed once the fax call has been established, so you have to set FaxHeadLine before you issue the 'Connect'.

For example, if you add some code like this after the 'if' statement above:
FaxCall.FaxHeadLine = "This fax headline does not appear" 
this does not cause a runtime error, but is simply ignored. The received fax will still have the original FaxHeadLine text.



Feedback

Please rate the usefulness of this page:  

0 - not useful at all
1 - potentially useful
2 - quite useful
3 - very useful
4 - exactly the information I needed     

Please enter a comment about this page: