The video call and VoIP call functions were required for a 3rd Mr project in March. At that time, the project team planned to ask Nokia people to implement the call. The final situation was unknown. Today, I happened to see the implementation method in the Nokia documentation library, which is a little tricky. The document was created on July 4, 2007, almost one year later.
The implementation method is as follows:
It is possible to initiate video and Internet telephony (VoIP) callwith the aiw service handler API, encoded 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
Link: http://forum.nokia.com/document/Forum_Nokia_Technical_Library/contents/FNTL/Creating_video_and_VoIP_calls.htm