Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 10:46, 29 August 2007.

TSS000713 - Creating video and VoIP calls

From Forum Nokia Wiki


Subject:

Creating video and VoIP calls

TSS000713

 

Platform(s): Device(s), SW version(s):
S60 3rd Edition
S60 3rd Edition, FP1
 

Category:

Symbian C++

Subcategory:

Networking, Telephony

Description:

It is possible to initiate video and Internet telephony (VoIP) calls with the AIW Service Handler API, included in the Extensions plug-in package for S60 3rd Edition SDKs.
Video call
The following example code demonstrates how to initiate a video call.
    MakeAiwCallL( _L("+3581234567"), _L("Firstname Lastname"), EAiwVideo);
    // EAiwForcedVideo doesn’t show dialogs
    // MakeAiwCallL( _L("+3581234567"), _L("Firstname Lastname"), EAiwForcedVideo);
    void MakeAiwCallL( const TDesC& aNumber, const TDesC& aName, TAiwCallType aCallType )
        {
        // Create AIW service handler
        CAiwServiceHandler* serviceHandler = CAiwServiceHandler::NewLC();
        // Create AIW interest
        RCriteriaArray interest;
        CleanupClosePushL( interest );
        CAiwCriteriaItem* criteria =
            CAiwCriteriaItem::NewLC( KAiwCmdCall, KAiwCmdCall, _L8( "*" ) );       
        const TUid KUidAiwBase = { KAiwClassBase };
        criteria->SetServiceClass( KUidAiwBase );
        User::LeaveIfError( interest.Append( criteria ) );
        // Attach to AIW interest
        serviceHandler->AttachL( interest );
        // Create AIW param package
        TAiwDialDataV1 data;
        TAiwDialDataV1Pckg dataPckg( data );
        iNameBuffer = aName.Left( iNameBuffer.MaxLength() );
        data.SetName( iNameBuffer );
        iTelNumber = aNumber.Left( iTelNumber.MaxLength() );
        data.SetTelephoneNumber( iTelNumber );
        data.SetCallType( aCallType );
        data.SetWindowGroup( CCoeEnv::Static()->RootWin().Identifier() );       
        CAiwGenericParamList& paramList = serviceHandler->InParamListL();
        TPtrC8 ptr;
        ptr.Set( dataPckg );
        TAiwVariant variant( ptr );
        TAiwGenericParam param( EGenericParamCallDialDataV1, variant );
        paramList.AppendL( param );
        // Execute AIW command
        serviceHandler->ExecuteServiceCmdL( KAiwCmdCall,
                                            paramList,
                                            serviceHandler->OutParamListL() );
        // destroy criteria, interest, and serviceHandler
        CleanupStack::PopAndDestroy( 3 );
        }   
VoIP call
Using the above function, it is possible to initiate a VoIP call as follows:
    MakeAiwCallL( _L("user@sip.server.com"),
                  _L("Firstname Lastname"),
                  EAiwVoIPCall );
See also:
Extensions plug-in package for S60 3rd Edition SDK for Symbian OS, for C++, Maintenance Release
Extensions plug-in package for S60 3rd Edition SDK for Symbian OS, for C++, supporting Feature Pack 1

Creation date:

July 4, 2007

Last modified:

-
Related Discussions
Thread Thread Starter Forum Replies Last Post
Can anyone tell me the difference between 6682,6681,6680? yaringal Mobile Java General 7 2005-12-02 14:20
voip call via PhoneClientDialAPI morost VoIP 0 2007-07-26 16:18
[moved] asterisk and VoIP micuccio VoIP 8 2008-06-15 16:40
SIP default profile setting weirdness snarfer VoIP 6 2008-06-04 07:49
Voice call does not come to device while using GPRS cartman_ume Symbian Networking & Messaging 7 2007-03-16 08:30
 
Powered by MediaWiki