Groups > Symbian > Symbian EPOC connect > Re: series 80 data call




series 80 data call

series 80 data call
Mon, 4 Sep 2006 19:08:14 +0530
Hi All,


I am not able to make a data call in Nokia 9300 using using RCall::Dial().

request for dial fails with -6 that is KErrArgument.

The same code is working fine in Series 60 and UIQ devices.
Can Anybody help me in the same?

The code snippet is as follows:



#include "DataCallMaker.h"

// SYSTEM INCLUDE
#include <eikenv.h>
#include "IrObexDll.pan"

// CONSTANTS

_LIT16 (KPhoneTsy, "phonetsy.tsy");
_LIT16 (KLogFile, "c:\\some.txt");



EXPORT_C CDataCallMaker* CDataCallMaker::NewL(MDataCallObserver& aObs)
{
CDataCallMaker* obj = new (ELeave) CDataCallMaker(aObs);
CleanupStack::PushL(obj);
obj->ConstructL();
CleanupStack::Pop(obj);
return obj;
}


CDataCallMaker::CDataCallMaker(MDataCallObserver& aObs)
: CActive(EPriorityStandard), // Standard priority
iState(ENone),
iObs(aObs)
{
CActiveScheduler::Add(this); // Add to scheduler
}

void CDataCallMaker::ConstructL()
{
isConnected = EFalse;
isCommOpened = EFalse;
}



EXPORT_C void CDataCallMaker::Connect()
{
if (!isConnected)
{
//c


plz help.

BR

Post Reply
Re: series 80 data call
Tue, 5 Sep 2006 10:28:15 +0530
Plz tell me where i am wrong.


#include "DataCallMaker.h"

// SYSTEM INCLUDE
#include <eikenv.h>
#include "IrObexDll.pan"

// CONSTANTS

_LIT16 (KPhoneTsy, "phonetsy.tsy");
_LIT16 (KLogFile, "c:\\some.txt");



EXPORT_C CDataCallMaker* CDataCallMaker::NewL(MDataCallObserver& aObs)
{
CDataCallMaker* obj = new (ELeave) CDataCallMaker(aObs);
CleanupStack::PushL(obj);
obj->ConstructL();
CleanupStack::Pop(obj);
return obj;
}


CDataCallMaker::CDataCallMaker(MDataCallObserver& aObs)
: CActive(EPriorityStandard), // Standard priority
iState(ENone),
iObs(aObs)
{
CActiveScheduler::Add(this); // Add to scheduler
}

void CDataCallMaker::ConstructL()
{
isConnected = EFalse;
isCommOpened = EFalse;
}



EXPORT_C void CDataCallMaker::Connect()
{
if (!isConnected)
{
//connect to telephony server
User::LeaveIfError(iTelServer.Connect());
User::LeaveIfError(iTelServer.LoadPhoneModule(KPhoneTsy));

//enumerate the phone
TInt numberOfPhone;
User::LeaveIfError(iTelServer.EnumeratePhones(numberOfPhone));
if (numberOfPhone < 1)
Panic(EDataCallNoPhone);

//get info about the first available phone
RTelServer::TPhoneInfo phoneInfo;
User::LeaveIfError(iTelServer.GetPhoneInfo(0,phoneInfo));
//open the phone
User::LeaveIfError (iPhone.Open(iTelServer,phoneInfo.iName));

//get the info about the line
TInt numberOfLines;
User::LeaveIfError(iPhone.EnumerateLines(numberOfLines));

if (numberOfLines < 2)
Panic(EDataCallNoLines);

RPhone::TLineInfo lineInfo;
//line 2 is for data
User::LeaveIfError(iPhone.GetLineInfo(2, lineInfo));

User::LeaveIfError(iDataLine.Open(iPhone, lineInfo.iName));
isConnected = ETrue;
}
}


EXPORT_C void CDataCallMaker::OpenCall(const TDesC& aNumber)
{
if (isConnected)
{
iState = EConnecting;
iDataCall.OpenNewCall(iDataLine, iCallName);
iDataCall.Dial(iStatus,aNumber);
iObs.DCConnecting();
SetActive();
}
}


BR

Post Reply
Re: series 80 data call
Thu, 7 Sep 2006 11:23:34 +0530
Hi All,

 Anybody have any idea about this problem.

Any kind of help appreciate.

BR






"DM" <DM@wirelessindia.com> wrote in message 
news:w98S4gK0GHA.1380@UKCOL01WWEB01.symbian.intra...
>
> Plz tell me where i am wrong.
>
>
> #include "DataCallMaker.h"
>
> // SYSTEM INCLUDE
> #include <eikenv.h>
> #include "IrObexDll.pan"
>
> // CONSTANTS
>
> _LIT16 (KPhoneTsy, "phonetsy.tsy");
> _LIT16 (KLogFile, "c:\\some.txt");
>
>
>
> EXPORT_C CDataCallMaker* CDataCallMaker::NewL(MDataCallObserver& aObs)
> {
> CDataCallMaker* obj = new (ELeave) CDataCallMaker(aObs);
> CleanupStack::PushL(obj);
> obj->ConstructL();
> CleanupStack::Pop(obj);
> return obj;
> }
>
>
> CDataCallMaker::CDataCallMaker(MDataCallObserver& aObs)
> : CActive(EPriorityStandard), // Standard priority
> iState(ENone),
> iObs(aObs)
> {
> CActiveScheduler::Add(this); // Add to scheduler
> }
>
> void CDataCallMaker::ConstructL()
> {
> isConnected = EFalse;
> isCommOpened = EFalse;
> }
>
>
>
> EXPORT_C void CDataCallMaker::Connect()
> {
> if (!isConnected)
> {
> //connect to telephony server
> User::LeaveIfError(iTelServer.Connect());
> User::LeaveIfError(iTelServer.LoadPhoneModule(KPhoneTsy));
>
> //enumerate the phone
> TInt numberOfPhone;
> User::LeaveIfError(iTelServer.EnumeratePhones(numberOfPhone));
> if (numberOfPhone < 1)
> Panic(EDataCallNoPhone);
>
> //get info about the first available phone
> RTelServer::TPhoneInfo phoneInfo;
> User::LeaveIfError(iTelServer.GetPhoneInfo(0,phoneInfo));
> //open the phone
> User::LeaveIfError (iPhone.Open(iTelServer,phoneInfo.iName));
>
> //get the info about the line
> TInt numberOfLines;
> User::LeaveIfError(iPhone.EnumerateLines(numberOfLines));
>
> if (numberOfLines < 2)
> Panic(EDataCallNoLines);
>
> RPhone::TLineInfo lineInfo;
> //line 2 is for data
> User::LeaveIfError(iPhone.GetLineInfo(2, lineInfo));
>
> User::LeaveIfError(iDataLine.Open(iPhone, lineInfo.iName));
> isConnected = ETrue;
> }
> }
>
>
> EXPORT_C void CDataCallMaker::OpenCall(const TDesC& aNumber)
> {
> if (isConnected)
> {
> iState = EConnecting;
> iDataCall.OpenNewCall(iDataLine, iCallName);
> iDataCall.Dial(iStatus,aNumber);
> iObs.DCConnecting();
> SetActive();
> }
> }
>
>
> BR
>
> 

Post Reply
Re: series 80 data call
Mon, 11 Sep 2006 23:22:52 -000
How big is the telephone number you are passing in? The example TSY checks
that its non-zero and returns KErrArgument if it is.

"DM" <DM@wirelessindia.com> wrote in message
news:w98S4gK0GHA.1380@UKCOL01WWEB01.symbian.intra...
>
> Plz tell me where i am wrong.
>
>
> #include "DataCallMaker.h"
>
> // SYSTEM INCLUDE
> #include <eikenv.h>
> #include "IrObexDll.pan"
>
> // CONSTANTS
>
> _LIT16 (KPhoneTsy, "phonetsy.tsy");
> _LIT16 (KLogFile, "c:\\some.txt");
>
>
>
> EXPORT_C CDataCallMaker* CDataCallMaker::NewL(MDataCallObserver& aObs)
> {
> CDataCallMaker* obj = new (ELeave) CDataCallMaker(aObs);
> CleanupStack::PushL(obj);
> obj->ConstructL();
> CleanupStack::Pop(obj);
> return obj;
> }
>
>
> CDataCallMaker::CDataCallMaker(MDataCallObserver& aObs)
> : CActive(EPriorityStandard), // Standard priority
> iState(ENone),
> iObs(aObs)
> {
> CActiveScheduler::Add(this); // Add to scheduler
> }
>
> void CDataCallMaker::ConstructL()
> {
> isConnected = EFalse;
> isCommOpened = EFalse;
> }
>
>
>
> EXPORT_C void CDataCallMaker::Connect()
> {
> if (!isConnected)
> {
> //connect to telephony server
> User::LeaveIfError(iTelServer.Connect());
> User::LeaveIfError(iTelServer.LoadPhoneModule(KPhoneTsy));
>
> //enumerate the phone
> TInt numberOfPhone;
> User::LeaveIfError(iTelServer.EnumeratePhones(numberOfPhone));
> if (numberOfPhone < 1)
> Panic(EDataCallNoPhone);
>
> //get info about the first available phone
> RTelServer::TPhoneInfo phoneInfo;
> User::LeaveIfError(iTelServer.GetPhoneInfo(0,phoneInfo));
> //open the phone
> User::LeaveIfError (iPhone.Open(iTelServer,phoneInfo.iName));
>
> //get the info about the line
> TInt numberOfLines;
> User::LeaveIfError(iPhone.EnumerateLines(numberOfLines));
>
> if (numberOfLines < 2)
> Panic(EDataCallNoLines);
>
> RPhone::TLineInfo lineInfo;
> //line 2 is for data
> User::LeaveIfError(iPhone.GetLineInfo(2, lineInfo));
>
> User::LeaveIfError(iDataLine.Open(iPhone, lineInfo.iName));
> isConnected = ETrue;
> }
> }
>
>
> EXPORT_C void CDataCallMaker::OpenCall(const TDesC& aNumber)
> {
> if (isConnected)
> {
> iState = EConnecting;
> iDataCall.OpenNewCall(iDataLine, iCallName);
> iDataCall.Dial(iStatus,aNumber);
> iObs.DCConnecting();
> SetActive();
> }
> }
>
>
> BR
>
>

Post Reply
Re: series 80 data call
Thu, 14 Sep 2006 10:18:54 +053
Hi,

Sorry for  late. Thanx for  reply.

I used 10 digit mobile Number.

I am dialing  following number- 9833381525

BR
DM





"Hamish Willee" <hamish_w@tpg.com.au> wrote in message 
news:SBgd%23lf1GHA.1380@UKCOL01WWEB01.symbian.intra...
> How big is the telephone number you are passing in? The example TSY checks
> that its non-zero and returns KErrArgument if it is.
>
> "DM" <DM@wirelessindia.com> wrote in message
> news:w98S4gK0GHA.1380@UKCOL01WWEB01.symbian.intra...
>>
>> Plz tell me where i am wrong.
>>
>>
>> #include "DataCallMaker.h"
>>
>> // SYSTEM INCLUDE
>> #include <eikenv.h>
>> #include "IrObexDll.pan"
>>
>> // CONSTANTS
>>
>> _LIT16 (KPhoneTsy, "phonetsy.tsy");
>> _LIT16 (KLogFile, "c:\\some.txt");
>>
>>
>>
>> EXPORT_C CDataCallMaker* CDataCallMaker::NewL(MDataCallObserver&
aObs)
>> {
>> CDataCallMaker* obj = new (ELeave) CDataCallMaker(aObs);
>> CleanupStack::PushL(obj);
>> obj->ConstructL();
>> CleanupStack::Pop(obj);
>> return obj;
>> }
>>
>>
>> CDataCallMaker::CDataCallMaker(MDataCallObserver& aObs)
>> : CActive(EPriorityStandard), // Standard priority
>> iState(ENone),
>> iObs(aObs)
>> {
>> CActiveScheduler::Add(this); // Add to scheduler
>> }
>>
>> void CDataCallMaker::ConstructL()
>> {
>> isConnected = EFalse;
>> isCommOpened = EFalse;
>> }
>>
>>
>>
>> EXPORT_C void CDataCallMaker::Connect()
>> {
>> if (!isConnected)
>> {
>> //connect to telephony server
>> User::LeaveIfError(iTelServer.Connect());
>> User::LeaveIfError(iTelServer.LoadPhoneModule(KPhoneTsy));
>>
>> //enumerate the phone
>> TInt numberOfPhone;
>> User::LeaveIfError(iTelServer.EnumeratePhones(numberOfPhone));
>> if (numberOfPhone < 1)
>> Panic(EDataCallNoPhone);
>>
>> //get info about the first available phone
>> RTelServer::TPhoneInfo phoneInfo;
>> User::LeaveIfError(iTelServer.GetPhoneInfo(0,phoneInfo));
>> //open the phone
>> User::LeaveIfError (iPhone.Open(iTelServer,phoneInfo.iName));
>>
>> //get the info about the line
>> TInt numberOfLines;
>> User::LeaveIfError(iPhone.EnumerateLines(numberOfLines));
>>
>> if (numberOfLines < 2)
>> Panic(EDataCallNoLines);
>>
>> RPhone::TLineInfo lineInfo;
>> //line 2 is for data
>> User::LeaveIfError(iPhone.GetLineInfo(2, lineInfo));
>>
>> User::LeaveIfError(iDataLine.Open(iPhone, lineInfo.iName));
>> isConnected = ETrue;
>> }
>> }
>>
>>
>> EXPORT_C void CDataCallMaker::OpenCall(const TDesC& aNumber)
>> {
>> if (isConnected)
>> {
>> iState = EConnecting;
>> iDataCall.OpenNewCall(iDataLine, iCallName);
>> iDataCall.Dial(iStatus,aNumber);
>> iObs.DCConnecting();
>> SetActive();
>> }
>> }
>>
>>
>> BR
>>
>>
>
> 

Post Reply
about | contact